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.
Ok hoping someone can help me, I have little hair left after this one...
I have a home network set up with a Redhat 8 box and 3 client PCs. The redhat box has eth0 connected to the cable modem for Internet and eth1 as the LAN which goes to a hub.
I have IP tables setup for NAT with Masquerading and forwards are accepted from eth1. Inputs are also always accepted from eth1. Output policy is ACCEPT, except for netbios stuff on eth0 which is dropped.
The problem is that client machines can use the internet no problem through the server, but the server can not use the internet itself?!? Pages and things keep timing out etc. Cannot ping using name or IP. My mailserver on the box can receive mail but cannot send at all (DNS failiure).
Does sound weird. If the clients can get webpages thru the server, then iptables' FORWARD rules are passing traffic. If the mailserver receives (I guess you mean from the internet?) the the INPUT rules are accepting, at least on port 25. Do your INPUT rules allow related packets, to allow for DNS and ping responses? How about posting the iptables rules you're using?
Solved! Got a response on another forum. If anyone else has the same problem, you just need to add the following to IPtables to allow responses back in the input chain:
iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
OK... glad it's solved. I was worried about this rule in INPUT - first, it seems to allow everything from everywhere. second, it can't be working. Or I misunderstood the rule.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.