AllenStone
08-11-2001, 03:01 AM
I am trying to run an apache web server on RH7.1 via a cable modem. At one point, I was able to get to it from the outside, but I can't now. I have the domain name pointing to my IP, so I know that's not the problem. Besides, last week I could get the site sometimes - sometimes it worked and sometimes it didn't. I can ping the site with both www.mysite.com (http://www.mysite.com) and the IP address (internally and from the Internet).
I ran a port scan and it shows port 80 being open on the internal network, but it doesn't show it open from outside the network. I know all the web files are in the right place cause I can go to www.mysite.com (http://www.mysite.com) from the internal network.
I flushed the ipchains and entered the following:
echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -A forward -i eth0 -j MASQ
ipchains -P forward DENY
/etc/rc.d/init.d/xinetd restart
I can get out fine from my internal network and can see the website internally, I just can't view the site from the Internet.
Also, I know I need to get a better firewall and probably use IPTABLES, but I'm just trying to get this site up fairly fast in order to get some pictures to my friends.
I think I need a definition to open up port 80, but I can't find a simple one. Any ideas?
Thanks
I ran a port scan and it shows port 80 being open on the internal network, but it doesn't show it open from outside the network. I know all the web files are in the right place cause I can go to www.mysite.com (http://www.mysite.com) from the internal network.
I flushed the ipchains and entered the following:
echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -A forward -i eth0 -j MASQ
ipchains -P forward DENY
/etc/rc.d/init.d/xinetd restart
I can get out fine from my internal network and can see the website internally, I just can't view the site from the Internet.
Also, I know I need to get a better firewall and probably use IPTABLES, but I'm just trying to get this site up fairly fast in order to get some pictures to my friends.
I think I need a definition to open up port 80, but I can't find a simple one. Any ideas?
Thanks