寫了段iptable 的script,我要把它放在那才可以,
每次開機自動執行呢?
update-rc.d iptables start 50 2 3 4 .
System startup links for /etc/init.d/Smy.sh already exist.
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT udp -- anywhere anywhere udp spt:domain
ACCEPT tcp -- anywhere anywhere tcp spt:www
ACCEPT tcp -- anywhere anywhere tcp spt:telnet
ACCEPT tcp -- anywhere anywhere tcp dpt:6891
ACCEPT tcp -- anywhere anywhere tcp dpt:1863
ACCEPT tcp -- anywhere anywhere tcp dpt:6881
Chain FORWARD (policy DROP)
target prot opt source destination
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN tcpmss match 1400:1536 TCPMSS clamp to PMTU
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT udp -- anywhere anywhere udp spt:domain
ACCEPT tcp -- anywhere anywhere tcp spt:www
ACCEPT tcp -- anywhere anywhere tcp spt:telnet
ACCEPT tcp -- anywhere anywhere tcp dpt:6891
ACCEPT tcp -- anywhere anywhere tcp dpt:1863
ACCEPT tcp -- anywhere anywhere tcp dpt:6881
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Anonymous 寫:請問一下
還有,我之前有設定過了,現在如果再下一次指令,會顯示
- 代碼: 選擇全部
System startup links for /etc/init.d/Smy.sh already exist.
這樣有辦法再設定一次嗎?
因為,我的iptable 好像是有被執行到,但是總是不太一樣
謝謝
正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客