PDA

View Full Version : FC4 Apache LAN Problem


rwhite7890
2005-06-26, 10:24 PM CDT
I am using FC4 64. I just installed Apache, and it is listening on port 7474. I can access this from my own computer as localhost:7474 and also from my private IP address: 192.168.0.103:7474. This is as expected.

I can not access the server from anyone else on my LAN. This shouldn't be happening. I'm wondering if maybe I have a firewall up that doesn't accept any incoming TCP connections? Is this possible? How do I check it and then turn it off?

I have my router configured correctly and I have it so people can look at my site from over the internet. Any advice?

Thanks

wso_angel
2005-06-26, 10:54 PM CDT
try to configure you firewall and open 7474:tcp port
================================================== =====================================
try to use the ip to visite you web ,if not allowed ,that's because you firewall:)

rwhite7890
2005-06-26, 10:58 PM CDT
try to configure you firewall and open 7474:tcp port
================================================== =====================================
try to use the ip to visite you web ,if not allowed ,that's because you firewall:)

Yeah, thats what I was asking on how to do? I don't know how to do that. Any help?

Marcuccio
2005-06-27, 02:03 AM CDT
Hi,
to see if you have some active firewall rules type:

iptables -L

If the output is similar to:

Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination

then you have not any rules implemented.
If the output is different you can disable your firewall with:
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

But pay attention: in this way you will completely disable your firewall! For more info : www.netfilter.org

brianmsu80
2005-06-27, 02:12 AM CDT
service iptables status (is it "Firewall is stopped." or running?)
If running post your:
iptables -L

To open port 7474 to "your LAN":
iptables -I INPUT -p tcp -s 192.168.0.103/24 --dport 7474 -j ACCEPT
service iptables save
service iptables restart
service httpd restart

brianmsu80
2005-06-27, 02:20 AM CDT
typo i'm sorry...(actually a copy+pasto)
iptables -I INPUT -p tcp -s 192.168.0.0/24 --dport 7474 -j ACCEPT