随笔分类 - Iptables防火墙
摘要:1、一台能上网的Linux机器 2、操作步骤 host-10-11 配置snat,开启路由转发 iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -o ens34 -j MASQUERADE # -s 指定内网网段 # -o 指定能上公网的出口网卡名称
阅读全文
摘要:相关文件 iptables服务配置文件 -rw . 1 root root 2374 9月 4 2017 /etc/sysconfig/iptables-config iptables规则文件 -rw 1 root root 191 10月 1 2018 /etc/sysconfig/iptable
阅读全文
摘要:* 开启SSH服务端口 ``` iptables -A INPUT -p tcp --dport 22 -j ACCEPT iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT ``` * 开启80端口,并发数大于10时,拒绝对其提供服务 ``` iptabl
阅读全文
摘要:更改 Firewall 为 iptables rpm -q firewalld rpm -e --nodeps firewalld yum -y install iptables-services systemctl start iptables systemctl enable iptables
阅读全文

浙公网安备 33010602011771号