From: "Christopher Friesen" <cfriesen@nortelnetworks.com>
To: valentyn@nospam.openoffice.nl
Cc: linux-kernel@vger.kernel.org
Subject: Re: iproute2, portfw oddities (2.2.19 ppp)
Date: Fri, 31 Aug 2001 13:22:48 -0400 [thread overview]
Message-ID: <3B8FC7E8.2710D1EC@nortelnetworks.com> (raw)
In-Reply-To: <3B8FB778.E055FBD7@openoffice.nl>
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 194.10.21.181 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 194.10.21.181 80 -R 192.168.0.133 80
>
> Strangely, this results in packets from 192.168.0.133 being renamed
> 194.10.21.181 *but being directed via ppp0*: tcpdump ppp0 sees packets
> coming from IP address 194.10.21.181.
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: cfriesen@nortelnetworks.com
next prev parent reply other threads:[~2001-08-31 17:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-31 16:12 iproute2, portfw oddities (2.2.19 ppp) Valentijn Sessink
2001-08-31 17:22 ` Christopher Friesen [this message]
2001-09-06 15:01 ` Matthew G. Marsh
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=3B8FC7E8.2710D1EC@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=valentyn@nospam.openoffice.nl \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox