All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Routing multiple conntections to the same ISP
@ 2005-12-31 10:08 Niels Ole Salscheider
  2005-12-31 14:48 ` Edmundo Carmona
  2005-12-31 14:53 ` Martin A. Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Niels Ole Salscheider @ 2005-12-31 10:08 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 1342 bytes --]

Hi,
 
I have established two connections to the same ISP. After that ip route list
showed this:
 
195.14.247.94 dev ppp0  proto kernel  scope link  src 81.173.141.207
195.14.247.94 dev ppp1  proto kernel  scope link  src 81.173.237.84
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.1
default via 195.14.247.94 dev ppp0

I want 192.168.0.2 to connect to the internet by ppp1 and all other
computers to connect by ppp0. So I entered following commands in the shell:
 
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables --table filter --policy FORWARD ACCEPT
 
iptables --table mangle --append PREROUTING -s 192.168.0.2 --jump MARK
--set-mark 4
ip rule add fwmark 4 table 4
 
Then I modified the main table and table 4, so that they looked like this:
 
Server:~# ip route list
195.14.247.94 dev ppp0  proto kernel  scope link  src 81.173.141.207
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.1
default via 195.14.247.94 dev ppp0

Server:~# ip route list table 4
195.14.247.94 dev ppp1  proto kernel  scope link  src 81.173.237.84
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.1
default via 195.14.247.94 dev ppp1
 
an entered ip route flush cache in the shell.
 
But after this, 192.168.0.2 could not connect to the internet anymore.
 
What is wrong with my routing tables?
 
Thanks,
 
Ole

[-- Attachment #1.2: Type: text/html, Size: 4435 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-12-31 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-31 10:08 [LARTC] Routing multiple conntections to the same ISP Niels Ole Salscheider
2005-12-31 14:48 ` Edmundo Carmona
2005-12-31 14:53 ` Martin A. Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.