Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-16-2005, 10:43 PM
|
#1
|
Member
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130
Rep:
|
help with policy based routing
I believe what I need is iproute2, but am not sure. I'm not so hot at networking.
I have my machine (A), a machine that has two NIC's (B) and another machine (C). A & B are on the same network. C is on a different one. B has two NIC's, and can talk to either network.
I basically need to rsh/telnet from my subnet to the other. I can do this now in a 2-step process. Telnet from A to B, then from B to C. I need to do it in one fell swoop though.
I read a quick tutorial on iproute2 but it didn't have any specifics on what I needed to do... or it did, and I just didn't follow. :|
Thanks
|
|
|
06-16-2005, 11:49 PM
|
#3
|
Member
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130
Original Poster
Rep:
|
I am actually about halfway through an iptables intro. Thanks. I will read up on that. I poked around the machine and it seems someone else has installed and is using iptables on machine B. I'll check w/ them to make sure I don't break nuttin.
Thanks.
|
|
|
06-17-2005, 07:45 AM
|
#4
|
Member
Registered: Aug 2004
Location: Europe
Posts: 608
Rep:
|
Actually, I think you don't even need iptables 
If networking on node B is correctly set up then all you need to turn IP forwarding on on node B:
Code:
echo "1" > /proc/sys/net/ipv4/ip_forward
and add routes from A to C through B and vice versa on the networks A and C. Manpage for route should help you with this.
|
|
|
06-19-2005, 06:35 PM
|
#5
|
Member
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130
Original Poster
Rep:
|
To be honest, it turns out it was a complete screw up on my part. There's a route already made from A to C... I had the wrong IP address for C. We don't use DHCP, and it was relocated from a satellite office. o_O
I'm planning on donig IPTables at home though, so the link is much appreciated.
|
|
|
All times are GMT -5. The time now is 11:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|