Re: how to add source level routing
Roy Marples
Tue Jan 25 20:21:54 2011
On Tue, 2011-01-25 at 19:39 +0200, nivwiz@xxxxxxxxx wrote:
> I am using dhcpcd to manage ppp0 and eth0.
> how can I achieve source level routing from eth0, so communication
> coming in to eth0 will be sent out using eth0 and not ppp0?
> # ip ro
> 98.158.112.57 via 84.109.112.1 dev eth0
> 98.158.117.129 dev ppp0 proto kernel scope link src b.b.b.b
> 192.168.14.0/24 dev br0 proto kernel scope link src 192.168.14.70
> 84.109.112.0/22 dev eth0 proto kernel scope link src a.a.a.a
> metric 203
> 127.0.0.0/8 via 127.0.0.1 dev lo
> default via 98.158.117.129 dev ppp0
> default via 84.109.112.1 dev eth0 metric 203
>
> I am asking that traffic that comes in via a.a.a.a will leave from
> that device
Generally it will. However, in the event the traffic causes an
application to open a new port on the remote client then it will go over
ppp0 as that kernel route takes precedence.
I have no idea how to instruct otherwise and really that is outside the
scope of this discussion list. Maybe contact your distribution for help?
Thanks
Roy
Archive administrator: postmaster@marples.name