• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Switch to Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Steem Proposals 
  • Developer Portal 
  • Steem Bluepaper 
  • SMT Whitepaper 
  • Steem Whitepaper 
  • Privacy Policy
  • Terms of Service
Homeby Witness Moecki
LoginSign up

Debian系统iptables防火墙规则保存

elvisw (25)in #debian • 7 years ago (edited)

#iptables规则保存(Debian)

root身份登陆

iptables-save > /etc/iptables
touch /etc/network/if-pre-up.d/iptables
chmod +x /etc/network/if-pre-up.d/iptables
nano /etc/network/if-pre-up.d/iptables

将以下内容粘贴至iptables文件中

#!/bin/sh
/sbin/iptables-restore < /etc/iptables
#cn #linux #iptables #network
7 years ago in #debian by elvisw (25)
$0.00
    1 vote
    • + elvisw
    Reply 0