opensuse iptables - Linux

Table of Contents

小弟系統目前是opensuse 11.3

已將iptables 匯出到 /etc/sysconfig/iptables
iptables-save >/etc/sysconfig/iptables


透過以下指令也可以啟動這個自訂的rule
iptables-restore /etc/sysconfig/iptables

問題1. 我的suse 沒有service iptables start 這個功能,請問要如何安裝?
問題2. 上述自訂的rule,reboot後不會autorun,就算寫在/etc/rc.d/boot.local裡也不行

麻煩各位高手,能否幫我解答..感謝感謝

--

All Comments

Belly avatarBelly2012-04-17
我的作法是把iptables.rule改成744,放在/etc/rc.local中
Queena avatarQueena2012-04-17
g大,但這樣能直接在不重啟系統的狀態下進行修改rule 跟啟用?
Andrew avatarAndrew2012-04-18
可以,只要執行iptables.rule這個檔案即可
Xanthe avatarXanthe2012-04-18
只要檔案開頭有iptables -F, iptables -X, iptables -Z即可