Loading

随笔分类 -  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 指定能上公网的出口网卡名称 阅读全文
posted @ 2021-12-06 21:21 Outsrkem 阅读(554) 评论(0) 推荐(0)
摘要:相关文件 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 阅读全文
posted @ 2019-07-14 11:28 Outsrkem 阅读(1040) 评论(0) 推荐(0)
摘要:iptables默认规则 阅读全文
posted @ 2019-07-13 11:54 Outsrkem 阅读(3580) 评论(1) 推荐(0)
摘要:* 开启SSH服务端口 ``` iptables -A INPUT -p tcp --dport 22 -j ACCEPT iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT ``` * 开启80端口,并发数大于10时,拒绝对其提供服务 ``` iptabl 阅读全文
posted @ 2019-07-13 09:44 Outsrkem 阅读(384) 评论(0) 推荐(0)
摘要:更改 Firewall 为 iptables rpm -q firewalld rpm -e --nodeps firewalld yum -y install iptables-services systemctl start iptables systemctl enable iptables 阅读全文
posted @ 2019-07-12 13:23 Outsrkem 阅读(324) 评论(0) 推荐(0)