From: Andre Bender <andre.bender@gmx.de>
To: netfilter@lists.netfilter.org
Subject: Routing via multiple active PPP devices
Date: Mon, 06 Mar 2006 08:34:48 +0100 [thread overview]
Message-ID: <440BE618.4000604@gmx.de> (raw)
Hi,
for a mobile application we are using multiple internet connections
(mostly ppp) to achive a high aviability. Normaly there are at least two
open connections (e.g. eth0 and ppp0). Assuming the default route is set
correct for use with eth0.
The software I'm writing is opening various sockets and binding them to
the devices. Sending via eth0 is working flawlesly but sending via ppp0
does not send at all.
Setup:
eth0 Link encap:Ethernet HWaddr 00:D0:93:07:D5:BE
inet addr:192.168.255.157 Bcast:192.168.255.255
Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
ppp0 Link encap:Point-Point Protocol
inet addr:80.187.43.97 P-t-P:192.168.202.1
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
Destination Gateway Genmask Flags Iface
192.168.202.1 * 255.255.255.255 UH ppp0
192.168.252.0 * 255.255.252.0 U eth0
default 192.168.252.1 0.0.0.0 UG eth0
My Question is: How do to setup route/iptables so a packet sent via a
socket bound to eth0 is sent via eth0 and a packet sent on ppp0 is sent
there?
I guess it has something to do with source routing but I couldn't figure
out from the examples found on the net.
TIA
Andre
next reply other threads:[~2006-03-06 7:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-06 7:34 Andre Bender [this message]
2006-03-07 16:43 ` Routing via multiple active PPP devices Martijn Lievaart
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=440BE618.4000604@gmx.de \
--to=andre.bender@gmx.de \
--cc=netfilter@lists.netfilter.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.