iptables設定問題 - Linux

Table of Contents

各位前輩好:
以下是我目前的iptable設定,但不知為什麼無法開啟127.0.0.1的首頁呢?
apache也有重新啟動了
謝謝各位前輩指導

Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:www

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

--

All Comments

Noah avatarNoah2011-07-04
先關閉iptables再測試以確認是否為iptables的問題
Freda avatarFreda2011-07-07
1. service iptables stop
Quanna avatarQuanna2011-07-12
2. service httpd start
3. pstree -pu | grep httpd
4. netstat -anp | grep 80
Barb Cronin avatarBarb Cronin2011-07-16
先關防火牆 啟動httpd 查看網路開啟port
排除httpd 問題再去調整iptables
5. 把SELINUX 關閉 測試看看
Edith avatarEdith2011-07-20
樓上二位前輩,我用Ubuntu,好像不能直接關閉iptables
Frederic avatarFrederic2011-07-23
不能關閉就下 iptables -t filter -F
Bennie avatarBennie2011-07-28
查了網路,Ubuntu預設是沒有防火牆和selinux的~我裝server
Xanthe avatarXanthe2011-08-01
t大,這是把我下的2條規則都清了~
Elvira avatarElvira2011-08-02
因我是為了要測試這2條規則在input 設為drop下能否啟動web
Margaret avatarMargaret2011-08-03
你可以先清掉,再下那兩條規則。要不然常常先被擋了
Caroline avatarCaroline2011-08-06
對了,我很嫩 XD RHCE 年齡才一星期多一點 還是別亂回
Necoo avatarNecoo2011-08-10
aa-status 有apache2的內容嗎?