我用 debootstrap 直接安裝 debian sid
但安裝完後發現沒有 /etc/init.d/iptables
dpkg -L iptables 也找不到
用 apt-file search /etc/init.d/iptables 也找不到
請問一下 /etc/init.d/iptables 是在哪個套件中?
該套件到 sid 就消失了嗎?
版主: mufa
# Now for a short question and answer session:
#
# Q: You concocted this init.d setup, but you do not like it?
# A: I was pretty much hounded into providing it. I do not like it.
# Don't use it. Use /etc/network/interfaces, use /etc/network/*.d/
# scripts use /etc/ppp/ip-*.d/ script. Create your own custom
# init.d script -- no need to even name it iptables. Use ferm,
# ipmasq, ipmenu, guarddog, firestarter, or one of the many other
# firewall configuration tools available. Do not use the init.d
# script.
kanru 寫:你得到他了
引用還保存在我電腦的 /etc/default/iptables 中的一段:
- 代碼: 選擇全部
# Now for a short question and answer session:
#
# Q: You concocted this init.d setup, but you do not like it?
# A: I was pretty much hounded into providing it. I do not like it.
# Don't use it. Use /etc/network/interfaces, use /etc/network/*.d/
# scripts use /etc/ppp/ip-*.d/ script. Create your own custom
# init.d script -- no need to even name it iptables. Use ferm,
# ipmasq, ipmenu, guarddog, firestarter, or one of the many other
# firewall configuration tools available. Do not use the init.d
# script.
Tetralet 寫:亂入一下:
iptables 的設定檔是放在 /var/lib/iptables 裡哦∼∼
d2207197 寫:呵∼我知道
以許就是覺得放那不好
d2207197 寫:iptables-save 怎麼用阿??
沒用過,呵呵
d2207197 寫:iptables-save 剛剛看了一下 /etc/init.d/iptables
try try 看 iptables-save
看來 iptables-save 是沒有所謂的預設存放路徑喔
iptables-save 只是產生目前 iptables rule 的設定檔
至於存在哪裡,是在 /etc/init.d/iptables 中另外定義變數
$iptables_save -c > "$ruleset"
而 ruleset 就是要輸出的檔案,在此 script 中是
ruleset="${libdir}/$@",也就是在 /etc/lib/iptables 中
正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客