1.先备份iptables # cp /etc/sysconfig/iptables /var/tmp 需要开80端口,指定IP和局域网 下面三行的意思: 先关闭所有的80端口 开启ip段192.168.1.0/24端的80口 开启ip段211.123.16.123/24端ip段的80口 # iptables -I INPUT -p tcp --dport 80 -j DRO
iptables防火墙 只允许某IP访问某端口、访问特定网站
猜你喜欢
转载自blog.csdn.net/www476907899/article/details/9961383
今日推荐
周排行