LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-18-2004, 04:46 PM   #1
paulos
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
Policy routing for multiple ppp connections


Hi all

I have a problem with policy routing, i just can get my head around,
I have two connections ppp0 and ppp1, iptables is set to nat all traffic going out.
I want anything coming from 192.168.0.3 to go out of ppp1, so have have set a rule like this

# ip rule add fro 192.168.0.3 lookup t1

then i set the route in t1 like so

# ip route add default via 'P-t-P Address' table paulo

it just wont work, if i add the same route to the default table it works fine.
 
Old 06-20-2004, 02:02 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
this is just a stab cause i can't test it
(i'm not using iproute2 like it looks like you might be -- so possibly ignore)


route add iphost2 ppp1
route add -host 192.168.0.3 gw iphost2
 
  


Reply



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
help with policy based routing GaijinPunch Linux - Networking 4 06-19-2005 06:35 PM
pppoe: multiple ppp connections? nic777 Linux - Networking 3 03-21-2005 03:53 AM
Multiple Connections... Routing issue? Suse 9.1 exabrial Linux - Networking 0 07-15-2004 05:10 PM
[help] RH Network Routing Policy princenux Linux - Networking 1 07-04-2004 10:34 AM
Routing issue with multiple ppp connections eejut Linux - Networking 5 12-02-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration