From: Valentijn Sessink <valentyn+sessink@openoffice.nl>
To: linux-kernel@vger.kernel.org
Subject: iproute2, portfw oddities (2.2.19 ppp)
Date: Fri, 31 Aug 2001 18:12:40 +0200 [thread overview]
Message-ID: <3B8FB778.E055FBD7@openoffice.nl> (raw)
Hello list,
I have a machine (Pentium, 2.2.19, Debian 2.2) with an internal network
(192.168.0.x) and 4 external ppp connections (actually: pptp connections
to the ISP).
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.
Unfortunately, the ISP does not like this and drops those. However,
after issueing
ip rule add from 192.168.0.133 table ppp1
... the thing works.
This seems a bit odd. Could anyone comment on this? Please cc: my
E-mail-address, as I'm not subscribed to linux-kernel (and yes, the
"nospam" stuff works, I read it, it just seems to scare spambots :)
Best regards,
Valentijn
--
next reply other threads:[~2001-08-31 16:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-31 16:12 Valentijn Sessink [this message]
2001-08-31 17:22 ` iproute2, portfw oddities (2.2.19 ppp) Christopher Friesen
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=3B8FB778.E055FBD7@openoffice.nl \
--to=valentyn+sessink@openoffice.nl \
--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