From: "Sébastien Bernard" <sbernard@nerim.net>
Cc: netfilter-devel@lists.netfilter.org, netfilter@lists.netfilter.org
Subject: Re: pppoe with NAT not working
Date: Fri, 21 Oct 2005 19:13:11 +0200 [thread overview]
Message-ID: <435921A7.6050703@nerim.net> (raw)
In-Reply-To: <23027.::ffff:195.115.41.103.1129902602.squirrel@webmail.nerim.net>
Sébastien Bernard a écrit :
>Hi,
>I got a real big headache.
>
>My DSL provider a few ago upgraded my line and for this changed the BAS my
>box used to connect with.
>
>I had to reconfigure the ppp configuration.
>Before, I was using :
>pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"
>It ceased working.
>
>The new configuration is using the rp-pppoe.so plugin as :
>plugin /usr/lib/pppd/2.4.3/rp-pppoe.so
>
>Since this modification, I'm not able to do any NAT or MASQUERADE with my
>gateway.
>My network architecture is :
>
>Private lan (192.168.x.x) => GW (public fixed address) => DSl Modem =>
>Internet
>
>When any machine on the private LAN try make a connection to an outside
>address, the connection made is ok.
>
>The three-way handshake is OK with the packets correctly NATED.
>
>When the outside peer tries to send data to the internal peer, the Gateway
>sends a reset back to it without breaking the connection inside of course.
>
>It looks like the netfilters didn't accept the incoming packets with
>payload as part of the nated connection.
>
>I had a look to the ip_conntrak connection and the faulty connection is
>correctly tracked, with an entry.
>
>I don't really understand what is happenning.
>
>The configuration is nothing special and could resumed as :
>iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to-source <public address>
>
>This was working before and I didn't touch anything to the configuration
>but the public address that changed when I moved to a speedier DSL line.
>
>If anyone could propose an explaination ...
>
> Seb
>
>
I figured out the problem.
NAT is not working with the rp-pppoe.so plugin.
I moved back to the
pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"
Which worked now (go figure...).
And NAT is working again.
Any reason for this ?
next parent reply other threads:[~2005-10-21 17:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <23027.::ffff:195.115.41.103.1129902602.squirrel@webmail.nerim.net>
2005-10-21 17:13 ` Sébastien Bernard [this message]
2005-10-21 18:46 ` pppoe with NAT not working Sven Schuster
2005-10-30 15:30 ` Patrick McHardy
2005-10-21 13:50 Sébastien Bernard
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=435921A7.6050703@nerim.net \
--to=sbernard@nerim.net \
--cc=netfilter-devel@lists.netfilter.org \
--cc=netfilter@lists.netfilter.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.