Can't connect to website unless opened on server first
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Can't connect to website unless opened on server first
I am running an apache web server on a Suse 10.0 machine.
Used Yast to configure the vhosts.
I noticed external/Lan machines can't connect to my websites unless at leat one of the website is loaded into Konqueror/firefox on the server, then all websites are accessible for a period of a time.
Then after a few minutes external/Lan machines can't connect anymore, and as I soon I refresh the website loaded in Konqueror/firefox, they can connect again.
Suse machine is behind a router DI-624 with the rule for the virtual sever Http (TCP 80) enabled
I am not sure where the problem is, if it's apache/suse or the router.
Where can I find them?
Sposedly /etc/sysconfig/iptables on RH*L-compatible systems.
Just notice on boot I get a message in the line of "ip6tables not support state matching, extended ip6tables disabled" Is that related?
Spose not. chkconfig --level 2345 ip6tables off if you cant stand it.
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
I am not that familiar with your distro, but in most iptables is located in /etc/sysconfig. There might be a couple of other things to look at also. Check to make sure that ipchains isn't running. IP tables and ipchains are mutually exclusive. The other thing might be to look at ip6tables and see if it is running. For instance fedora has it available, but since the rest of the world hasn't changed over to IP6 yet, it won't do much good to try and run it (especially if you have an IP4 type IP address (i.e. 123.456.789.012). Take a look at those things and you can google for a tremendous amount of info on setting up iptables. Take a look at these things and repost.
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
I think that you might be fighting wth multiple issues. One may be the dns. Unless you have edited your PC's hosts file to point to that server it may not connect. And I have seen issues with trying to connect to a server that exists on your private lan and you have forwarding going on in your router to forward to that private ip. Doesn't work very well because you are coming from the same private lan. I think that the connect/not being able to connect issue is firewall related like unSpawn said. When you start up the site locally you are making an established connection. It allows it, because you are local to the server (on the same host) but it appears to the firewall that it is a trusted connection. So it lets you connect. Then when you try and connect from another host, it won't let you because it is a "new"connection. Try taking a look at your rules relating to new and established connections. Then repost!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.