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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've just set up a webserver and forwarded ports 80, and 22, and I cannot access the inernet on that machine but I can connect via ssh and visit a page on the server when on a different network.
When I put the router in dmz mode I can connect to the internet properly.
Sounds like your outgoing nat is not setup. I'm guessing it was working earlier and somehow it got broken when you modified your router setup to forward ports 22 and 80 for incoming traffic. Please check your router configuration.
What exactly is your setup? You talk about setting up a server as a DMZ through your router and you can't connect from the server to the Internet? But the reverse situation works just fine? Have you tried pinging from all possible directions and see what that tells you about your connection?
Sounds like your outgoing nat is not setup. I'm guessing it was working earlier and somehow it got broken when you modified your router setup to forward ports 22 and 80 for incoming traffic. Please check your router configuration.
Evo2.
My router configuration looks fine. But you're right, it was working fine, then after I forwarded ports, it suddenly stopped working. I've pretty much looked through all my routers settings and havnt noticed anything wrong. Maybe I'm overlooking something?
What exactly is your setup? You talk about setting up a server as a DMZ through your router and you can't connect from the server to the Internet? But the reverse situation works just fine? Have you tried pinging from all possible directions and see what that tells you about your connection?
Regards,
Alunduil
Yes that's correct. I tried pinging other domains but I get "unkown host". Now when ik putmy router in dmz mode it works fine. Maybe there is some other port that needs forwarding besideds 80 and 22
What do you mean by, "put my router in DMZ mode?" Do you mean configure your server as a DMZ in the router? It seems like you simply have a DNS issue to work through regardless. So you have a router and a server and when the server is not the DMZ it can't get to the Internet, but when it is it can? What is the difference in /etc/resolv.conf in both of those cases?
What do you mean by, "put my router in DMZ mode?" Do you mean configure your server as a DMZ in the router? It seems like you simply have a DNS issue to work through regardless. So you have a router and a server and when the server is not the DMZ it can't get to the Internet, but when it is it can? What is the difference in /etc/resolv.conf in both of those cases?
Regards,
Alunduil
Yes, that's correct. There is no difference in resolv.conf whe sn I make the changes.
Would you like for me to cat /etc/resolv.conf?
Does this link (http://www.avforums.com/forums/netwo...er-before.html) have anything like what you are observing? Without more information as to what's going on I don't know how helpful I can be in troubleshooting.
Actually, I can't access the website from a different network when the computer is not in DMZ. Also, is it safe to just leave it in DMZ for the time being until I can get it fixed? What are the risks?
Any suggestions?
Last edited by vanstarr; 12-01-2009 at 01:59 AM.
Reason: Appened
Leaving it in the DMZ is just fine but be aware that you are making that particular host directly accessible from the Internet. Double check your security and everything should be just fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.