All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Niels Ole Salscheider" <niels_ole@salscheider-online.de>
To: lartc@vger.kernel.org
Subject: [LARTC] Routing multiple conntections to the same ISP
Date: Sat, 31 Dec 2005 10:08:00 +0000	[thread overview]
Message-ID: <000e01c60df2$167f8360$eeeea8c0@OLE> (raw)


[-- 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

             reply	other threads:[~2005-12-31 10:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-31 10:08 Niels Ole Salscheider [this message]
2005-12-31 14:48 ` [LARTC] Routing multiple conntections to the same ISP Edmundo Carmona
2005-12-31 14:53 ` Martin A. Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000e01c60df2$167f8360$eeeea8c0@OLE' \
    --to=niels_ole@salscheider-online.de \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.