解除所有防火牆的指令? - Linux

By Olive
at 2017-11-23T20:01
at 2017-11-23T20:01
Table of Contents
啟動iptables,寫一個script檔如下。
就醬子給它執行下去就全打開了
# ------------- flushing ----------
echo "Cleaning up..."
iptables -F -t filter
iptables -X -t filter
iptables -Z -t filter
iptables -F -t nat
iptables -X -t nat
iptables -Z -t nat
# ------------- policies -------------
echo "Setting up policies to ACCEPT..."
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
※ 引述《sanbis (方正)》之銘言:
: 之前看到的問題
: 下什麼指令可以解除所有防火牆或是整個主機的安全措施?
: 直接停用整個 iptables 嗎?
: 但是好像還有 host 設定也會阻擋?
--
\︿_︿/
︿_(@,@)_︿
/ //( """ )\\ \
(/(/(/ \ / \)\)\)
--
就醬子給它執行下去就全打開了
# ------------- flushing ----------
echo "Cleaning up..."
iptables -F -t filter
iptables -X -t filter
iptables -Z -t filter
iptables -F -t nat
iptables -X -t nat
iptables -Z -t nat
# ------------- policies -------------
echo "Setting up policies to ACCEPT..."
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
※ 引述《sanbis (方正)》之銘言:
: 之前看到的問題
: 下什麼指令可以解除所有防火牆或是整個主機的安全措施?
: 直接停用整個 iptables 嗎?
: 但是好像還有 host 設定也會阻擋?
--
\︿_︿/
︿_(@,@)_︿
/ //( """ )\\ \
(/(/(/ \ / \)\)\)
--
Tags:
Linux
All Comments

By Odelette
at 2017-11-26T04:44
at 2017-11-26T04:44
Related Posts
怎樣讓USB隨身碟被指定為 sda , 而非sdb

By Sierra Rose
at 2017-11-23T11:33
at 2017-11-23T11:33
筆電選擇

By John
at 2017-11-21T14:25
at 2017-11-21T14:25
Ubuntu boot一下就沒空間

By Puput
at 2017-11-21T14:16
at 2017-11-21T14:16
Ubuntu boot一下就沒空間

By Michael
at 2017-11-21T13:16
at 2017-11-21T13:16
徵人安裝win10+Ubuntu雙系統 台北南港

By Edith
at 2017-11-20T22:25
at 2017-11-20T22:25