[lkml]   [2001]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: iproute2, portfw oddities (2.2.19 ppp)
Valentijn Sessink wrote:

> The ppp's all could have a "default route" to the Internet, only the ISP
> filters source addresses, so you cannot possibly send a ppp0 IP-address
> through ppp1 or vice versa.
> Now policy routing seemed the correct solution for this and I tried this
> for ppp1:
> # ip ru list
> 0: from all lookup local
> 1001: from lookup ppp1
> 32766: from all lookup main
> 32767: from all lookup default
> # ip route list table ppp1
> default dev ppp1 scope link
> This works, as I can ping the ppp1 address from the outside. (which
> could not be done before).
> Unfortunately, when I try to put a portfw rule on top of this, things go
> wrong:
> # ipmasqadm portfw -a -P tcp -L 80 -R 80
> Strangely, this results in packets from being renamed
> *but being directed via ppp0*: tcpdump ppp0 sees packets
> coming from IP address

I'm guessing that the IP address mangling is happening after deciding which
device to send the packet out of.

However, I'm not an expert on routing, so lets see what the real gurus say.

Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email:
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:17    [W:0.074 / U:2.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site