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.
yes, each ethernet connection has a gateway address. The thing that I am trying to make is to make all the traffic from network 172.17.0.0/24 go through this box's eth1 to the gateway 172.17.130.254. I've already tried some tricks with routing table and iptables with no results. Note that I use 192.168.1.1 as a main gateway.
The reply with the solution to this problem would be appreciated.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Thanked: 6
If I understand this you have two networks attached to the eth1 nic
172.17.0.0/24 and 172.17.130.0/24
And eth0 is 192.168.1.0/24
Then you want traffic on 172.17.0.0/24 and 172.17.130.0/24 to through eth1 to eth0
I assume this traffic is mostly internet related.
Is this correct?
Not really, Brian. There are two separate networks. 172.17.130.0/24 works perfectly without routing it through my box, since it has a router (172.17.130.254) and the link into the world. 192.168.1.0/24 is another network (the main internet connection of my box). Those two networks shouldn't work together I just want to do the packet filtering and network monitoring for 172.17.130.0/24 using my linux box. I don't want the traffic from 172.17.130.0/24 go through 192.168.1.1 router.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Thanked: 6
I understand what you are doing now. Not sure of how to do it though. To me blocking eth1 traffic going out to eth0 seems to block actually access to eth1 network. Maybe something will popout to me.
I forgot to mention that I can't change my router's IP. So rmitevs' solution doesn't work either. I have an idea how to make it using one more lan card, though. I'll let you know how will that go. Take care everyone.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.