项目地址:https://github.com/arloor/iptablesutils
项目作用
便捷地设置iptables流量转发规则
当域名解析的地址发生变化时,自动更新流量转发规则,不需要手动变更(适用于ddns域名)
准备
CentOS7系统
使用下面命令将系统更新一下
yum upgrade -y
yum update
用法
wget --no-check-certificate -qO natcfg.sh http://www.arloor.com/sh/iptablesUtils/natcfg.sh && bash natcfg.sh
此时按照需要,输入1-4中的任意数字,然后按照提示即可
分享:
支付宝
微信