美文网首页
firewalld and iptables use

firewalld and iptables use

作者: 王哲理 | 来源:发表于2017-10-10 14:13 被阅读5次

    禁止某个ip访问

    iptables -I INPUT -s 138.138.138.138 -j DROP

    firewall  -cmd   --permanent   --add-rich-rule='rule family=ipv4   source   address="138.138.138.138"   drop'

    端口转发

    iptables   -t   nat   -A   PREROUTING   -p   tcp   --dport   80   -j   REDIRECT --to-port   8080

    相关文章

      网友评论

          本文标题:firewalld and iptables use

          本文链接:https://www.haomeiwen.com/subject/wrvvyxtx.html