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.
Trying to set up a router, I like to do one thing at a time though, so here's my question: Forgetting about security, and NAT for right now, All I want to do is have my PC's on the internal side of the router be able to ping the modem.
The setup is:
DSL-Modem(192.168.1.254)---->(192.168.1.1)eth0/Gentoo\eth1(192.168.0.1)---->switch--->PC's(192.168.0.x)
Im sure my kernel looks good, I know that /proc/sys/net/ipv4/ip_forward is set to "1", and is so everytime I boot, I know the iptables config file in /etc/conf.d/iptables has ip forwarding enabled.
With all that said, these basic rules should allow me to ping the router correct?
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
I dont see why I would need anything else to just ping the router. Please tell me if Im missing something or you see something wrong. RIght now its timing out every time.
Originally posted by arrruken
Im sure my kernel looks good, I know that /proc/sys/net/ipv4/ip_forward is set to "1", and is so everytime I boot, I know the iptables config file in /etc/conf.d/iptables has ip forwarding enabled.
I know, is there anything else that would cause this not to work?
Well that worked for some reason, I didnt think I would need NAT to just ping, but I guess I did. I really appreciate the help.
Now that that is working, am I gonna need this line:
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
Or better question, would I have any problems with any services on the PC's right now?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.