iptables使用
Abstract
# ubuntu系统
ubuntu默认没有安装iptables,需要手动安装 apt-get install iptables, 默认没有配置文件,需要通过iptables-save > /etc/network/iptables.up.
ubuntu系统
ubuntu默认没有安装iptables,需要手动安装 apt-get install iptables, 默认没有配置文件,需要通过iptables-save > /etc/network/iptables.up.rules 来生成,iptables配置文件路径及文件名建议为/etc/network/iptables.up.rules,因为执行iptables-apply默认指向该文件,也可以通过-w参数指定文件,Ubuntu 没有重启iptables的命令,执行iptables-apply生效
常用命令
iptables-restore < /
Login required to read the rest of the content
登录 to comment~
Guess you like
Recommended articles