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 am trying to configure Iptables on Redhat Linux. Since I am very much new to Iptables I am finding it difficult to get it working even after going through the manuals of IPtables.
The setup as below.
The Internal interface eth0 – 192.168.4.x
The External interface eth1 – 192.168.2.x
The IP Address of the system is – 192.168.4.y
I have connected a system directly to the eth0 using a cross-over cable. The eth1 is directly connected to external world i.e. router (internet).
The traffic reached upto eth1. It doesn’t reach the router.
I am able to ping eth0 and eth1 from the connected system. It seems the routing or the ip forwarding is not working properly.
I have checked by disabling IPtables, but still it doesn’t work.
Can I configure it as a route?
Is there any network related configuration I need to check or make.
Also please can anyone help me in configuring the IPtables.
Are you using a adsl or dsl to connect to the internet??
if so, are you using a pppoe client?
A couple of days ago I had the same problem as you. It turned out that when I connected to the internet using adsl with a pppoe client, even thoung I was physically connected to the modem via eth0, once I started the pppoe client a device called ppp0 was created, by which I connected to the internet. So all I had to do was replace in my iptables config file eth0 for ppp0, and everything worked fine.
Maybe that will help.
my router is connected to internet through leased line which has got a fixed static ip. Also the routing at the router has been taken care properly.
I can ping to the external interface - eth1 of the linux box, but it i cannot ping to the internal interface of the router i.e i cannot ping any web site such as cisco.com
Originally posted by RajaRC my router is connected to internet through leased line which has got a fixed static ip. Also the routing at the router has been taken care properly.
I can ping to the external interface - eth1 of the linux box, but it i cannot ping to the internal interface of the router i.e i cannot ping any web site such as cisco.com
Does your router have an IP? Cause if it has, then you should specify that Ip as gateway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.