All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Taylor, Grant" <gtaylor@riverviewtech.net>
To: netfilter@lists.netfilter.org
Subject: Re: Help: iptables NAT broken with pppoe
Date: Mon, 09 May 2005 00:56:13 -0500	[thread overview]
Message-ID: <427EFB7D.8010503@riverviewtech.net> (raw)
In-Reply-To: <1115496014l.3549l.0l@antares.localdomain>

> Fist, thanks a lot for your reply!

You are quite welcome.

>> I'm not sure why it's happening but your PMac G4 system is sending 
>> reset  packets in response to the responses from the server.
> 
> 
> Ouch! That's indeed very strange. I can only repeat that it *did* work  
> using isdn, so apparently there is some pppoe related porblem?

I'm not doubting you that it did work, though I have NO idea why it is not working at the moment.  You might want to try (re)posting your question to a different mail list (suggestions any one?) or see if any one else on this list might be able to help you more than I can.  (Any one care to jump in here and take over where I'm coming up short?)

>> Have you tried  using an SNAT rule temporarily on your POSTROUTING 
>> chain  to see if the problem is with the MASQUERADE rule?
> 
> Same effect - replaced the masquerade rule by

Just one comment "Hmmmm....".

> ppp0ip=84.44.130.37
> iptables -t nat -A POSTROUTING -s 192.168.42.0/24 -o ppp0 -j SNAT \
> - --to-source $ppp0ip
> 
> but tcpdump still reports
> 
> 21:50:33.986790 IP 84.44.130.37.49224 > 213.95.27.115.80: S 3806917882:3806917882(0) win 65535 <mss 1452,nop,wscale 0,nop,nop,timestamp 380633236 0>
> 21:50:34.047457 IP 213.95.27.115.80 > 84.44.130.37.49224: S 118817856:118817856(0) ack 3806917883 win 5792 <mss 1460,nop,nop,timestamp  1571974157 380633236,nop,wscale 2>
> 21:50:34.047558 IP 84.44.130.37.49224 > 213.95.27.115.80: R 3806917883:3806917883(0) win 0

*nod*

> The modules ipt_MASQUERADE and iptable_nat *are* loaded, btw.
> 
>> Also, what is your "echo 2 > /proc/sys/net/ipv4/ip_dynaddr" doing for  
>> you?
> 
> I don't see any messages in /var/log messages or in dmesg, if you mean  
> that. Or did I miss your point here? I found some howto where they 
> stated  this would be necessary...

Ok.  I've never heard or seen reference to /proc/sys/net/ipv4/ip_dynaddr before and I'm not sure what its purpose is let alone that it is requried.  Does any one have any more information on what it is and what its purpose is?

>> You might want to check to make sure that reverse path filtering
>> is not turned on by default.  You might also want to turn on verbose  
>> routing messages to see if there is any thing useful being reported.
> 
> Hmmm, can you tell me how I actually check reverse path filtering and 
> turn  debugging on? Sorry, I'm neither a iptables nor a kernel guru :-/

Take a look at /proc/sys/net/ipv4/conf/<device|all|default>/rp_filter to see if it is "1" or "0".  As I understand it reverse path filter(ing) is a kernel level filter feature that will only allow traffic with a specific source address to come in on the interface that it is connected to.  This would explain why you might be getting the reset packet if reverse path filtering is turned on on your eth0 device.

> Thanks a lot for your help,

No problem.  :)


  reply	other threads:[~2005-05-09  5:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-06 16:36 Help: iptables NAT broken with pppoe Albrecht Dreß
2005-05-07  6:12 ` Taylor, Grant
2005-05-07 20:00   ` Albrecht Dreß
2005-05-09  5:56     ` Taylor, Grant [this message]
2005-05-09 14:08       ` Jason Opperisano
2005-05-09 18:37       ` Albrecht Dreß
2005-05-09 18:43         ` Taylor, Grant
2005-05-10 10:31           ` Andy Furniss
2005-05-10 10:36             ` Andy Furniss
2005-05-10 11:02             ` Albrecht =?unknown-8bit?q?Dre=DF?=
2005-05-10 13:19               ` Andy Furniss
2005-05-11 17:00           ` Albrecht Dreß
2005-05-11 18:39             ` Taylor, Grant
2005-05-10  3:00       ` R. DuFresne

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=427EFB7D.8010503@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --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.