pinging linksys router from Linux box to internal network not working
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.
pinging linksys router from Linux box to internal network not working
Hi my Linux box has two ethernet cards installed. eth0 goes to the Net and eth1 to the linksys wireless router. eth1 has an ip of 192.168.1.1 and the router is 192.168.1.2. I can ping 192.168.1.1 but cannot ping the router at 192.168.1.2. I can also ping the Linux box from a laptop inside the internal network connect via wireless to the router, and can SSH into the box. Does anyone have any idea why I cannot ping the router?
From which box are you trying to ping the router? Perhaps this box from where you're trying pinging the router has output ICMP filter rules blocking it.
Is it a Linux box? You can check the iptables rules from the same box using the following command:
From which box are you trying to ping the router? Perhaps this box from where you're trying pinging the router has output ICMP filter rules blocking it.
Is it a Linux box? You can check the iptables rules from the same box using the following command:
From the Linux box. OUTPUT defaults to ACCEPT. INPUT accepts icmp-request and icmp-reply.
So is the 'Block WAN Requests' box checked in the router config ?
From the Linksys Router User Guide
Quote:
• By enabling the Block WAN Request feature, you can prevent your network
from being pinged, or detected, by other Internet users. The Block WAN
Request feature also adds another measure of security to your network by
hiding your network ports. Both functions of the Block WAN Request feature
make it more difficult for outside users to work their way into your network.
So is the 'Block WAN Requests' box checked in the router config ?
From the Linksys Router User Guide
Hmmmm I'm not sure. That may be the problem. I'll give it a look when I get home.
Ok I just read that Block WAN Requests is enabled by default, and I didn't change it so that is likely the problem. Even with that being enabled I still was unable to get Internet access from inside the private network. I think it may have something to do with the iptables_nat module not being loaded. I'll have to check that when I get home as well.
Last edited by illscience; 07-10-2008 at 08:04 AM.
Your other issue is probably related to routing.. Each router needs to know what networks are located where. and you would need to add a static routing table on the Linux box in order for information from the internet to make it back to PC's on the inside of the Linksys Router.
Lets go back to our diagram for a minute, and add some addressing...
Code:
Internet - 64.210.41.1
|
|
eth0 - Public IP Address - 64.210.41.17
Linux Box
eth1 - 192.168.1.1
|
|
|
WAN - 192.168.1.2
Linksys Router
Internal - 192.168.0.1
|
|
|
Internal network
Basically you need to add a route in the Linux box that say 'to get to 192.168.0.0 go through the next hop at address 192.168.1.2'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.