[SOLVED] Help needed: Fedora router configure problem
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 have a client at 10.0.0.2, and a router's eth1 at 10.0.0.1. In the router, net.ipv4.ip_forward = 1 in file etc/sysctl.conf has been set. Both client and router are used Fedora 13.
My problem is that it cannot ping the IP(xx.xx.xx.xx) outside the router's eth0 on internet. It looks like the router hasn't been configured correctly. I tried "iptables -t..." and "service iptables stop" .
Distribution: CentOS, RHEL, Fedora, Debian, Ubuntu, LinuxMint, Kali Linux, Raspbian
Posts: 166
Rep:
after configuring sysctl.conf, you must have run command "sysctl -p" on your router. After that check whether you able to ping router's WAN Interface IP Address? if you are able to ping it, check ping 8.8.8.8 (IP address of google dns server). if it is not successfull, You should check your iptables rule for MASQUERADE. You should have following Iptables to MASQUERADE your traffic.
#iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE ###where eth0 is your ISP side network.
Also check your client side that you must have this router machine as your default route. if you are not able to resolve google or something then check /etc/resolv.conf for DNS server.
I did it once before as your description except command "sysctl -p". This time the client cannot ping WAN interface IP of router.
Do you know a book or website of step-by-step instruction to set up the router?
Quote:
Originally Posted by kaushalpatel1982
after configuring sysctl.conf, you must have run command "sysctl -p" on your router. After that check whether you able to ping router's WAN Interface IP Address? if you are able to ping it, check ping 8.8.8.8 (IP address of google dns server). if it is not successfull, You should check your iptables rule for MASQUERADE. You should have following Iptables to MASQUERADE your traffic.
#iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE ###where eth0 is your ISP side network.
Also check your client side that you must have this router machine as your default route. if you are not able to resolve google or something then check /etc/resolv.conf for DNS server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.