NetFilter
[Top] [All Lists]

Re: packets to local addresses

To: netfilter@lists.netfilter.org
Subject: Re: packets to local addresses
From: MKS <rekordmeister@gmail.com>
Date: Sat, 7 Apr 2007 14:13:49 +0000
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tUH0o2VSl/Wjs7gh0/geT+EgdNGDC2SMFsv6UXhp1o555S2HC6kRkI/Ii+mp32/aXibd4sHBumrDl1WYwFvlf+STo5Qpg7fYQtxPBQupNeQEDs7zh6bpqHwiRej0RX+1S52BWvT+dPgbtoUftwsrMNlv3BXQYN7dzbAWfR41N6Y=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=luHuwBuQCbTPfYFJiNC7nXkM0VCaGExQeI+vkM6ginutMvgxi2H4i2omjodith3lUQwPZm5sUFZkYoWFMpI0htVui5ZePFlXE+6DwydfbVy1QvvUhKFzfCy6VjgTA4Vx3k1Yl3OI/sxWEJO27Y3DVz7Nwj0aCO0AwacrHQAEy/g=
In-reply-to: <46167157.3080409@rtij.nl>
List-archive: </pipermail/netfilter>
List-help: <mailto:netfilter-request@lists.netfilter.org?subject=help>
List-id: General discussion and user questions <netfilter.lists.netfilter.org>
List-post: <mailto:netfilter@lists.netfilter.org>
List-subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe>
List-unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe>
References: <fad2fb270704060522r4322a223g4e2e40605b3fb6a@mail.gmail.com> <46167157.3080409@rtij.nl>
Sender: netfilter-bounces@lists.netfilter.org
On 4/6/07, Martijn Lievaart <m@rtij.nl> wrote:
MKS wrote:
> Hello list
>
> I have a scenario the a computer has 2 PPP connections, where the
> computer is the ppp client.
>
> $ifconfig
>
> ppp0   inet  10.0.0.1 p-t-p  192.168.1.1 mask 255.255.255.255
>
> ppp1 inet  10.0.1.1 p-t-p 192.168.1.1 mask  255.255.255.255
>
> for testing purpuses I want packets from ppp0 to ppp1 to actually go
> over the physical connection
>
> e.g.
>
> ping  10.0.0.1 -I ppp1 should send the packet over the ppp1 (and out
> underlyging physical interface eth0) and it should arrive on the ppp0
> interface. (routing is taken care of at the ppp server)

The -I flag only changes the source address of the packets, not the
routing. And as the packet is destined for the machine itself, it goes
over the loopback interface.

What is the best way to change this behaviour, that is force "general"
packets out a specific interface. iptables route target???

Thanks
MKS


<Prev in Thread] Current Thread [Next in Thread>