LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-16-2005, 10:43 PM   #1
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Rep: Reputation: 22
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
 
Old 06-16-2005, 11:24 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
you don't need iproute2, you need iptables...

basically you just need to do port-forwarding at machine B... this way you can connect from A to C without having to log into B first...

http://www.google.com/search?hl=en&q=iptables+howto

http://www.google.com/search?hl=en&q...ort+forwarding



Last edited by win32sux; 06-16-2005 at 11:25 PM.
 
Old 06-16-2005, 11:49 PM   #3
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
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.
 
Old 06-17-2005, 07:45 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 600

Rep: Reputation: 49
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.
 
Old 06-19-2005, 06:35 PM   #5
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba System Policy, Default User Policy scooter549 Linux - General 2 02-24-2009 02:23 AM
Port based routing neos Linux - Networking 1 09-21-2005 01:15 PM
question on flow-based routing cainiao Linux - Networking 1 08-20-2004 06:50 AM
[help] RH Network Routing Policy princenux Linux - Networking 1 07-04-2004 10:34 AM
Policy routing for multiple ppp connections paulos Linux - Networking 1 06-20-2004 02:02 AM


All times are GMT -5. The time now is 12:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration