Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Kevin <kmg952@bigpond.com>
To: netfilter@vger.kernel.org
Subject: Re: SYN packet "disappears"
Date: Fri, 28 Apr 2017 12:55:48 +1000	[thread overview]
Message-ID: <9574980.6JjInWLu8z@giles> (raw)
In-Reply-To: <adf6ae74-e152-a88f-d721-51f82f799534@pobox.com>

On Friday, 28 April 2017 11:00:57 AM AEST Robert White wrote:
> On 04/27/17 05:21, Kevin wrote:
> > (... DROP rules and a tun+ device but virtually no rules that ACCEPT the
> > packet so it can get into the tun+ device ...)
> So you've got these policies...
> 
> > $IPT -t filter   --policy INPUT       DROP
> > $IPT -t filter   --policy FORWARD     DROP
> > $IPT -t filter   --policy OUTPUT      DROP
> 
> And you've got these post TUN/TAP decode rules
> 
> > $IPT -A INPUT   -i tun+ -s 999.999.999.999 -j ACCEPT
> > $IPT -A FORWARD -i tun+ -s 999.999.999.999 -j ACCEPT
> > $IPT -A OUTPUT  -o tun+ -d 999.999.999.999 -j ACCEPT
> 
> But you've got no
> 
> $IPT -A INPUT -i ethX (Whatever the tunnel needs) -j ACCEPT

As I indicated in my original message, the rules I included were only the 
initial rules in my configuration. My question was not so much why my VPN was 
not working as expected by what happened to the packet. Why were the no log 
entries on the mangle and filter input chains?

As per my previous message, that has been explained. I did not know about the 
rp-filter mechanism. Those expected log entries now appear.

And, for the record, I did try with all chain policies as ACCEPT.

Cheers,
Kevin

      reply	other threads:[~2017-04-28  2:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-27  5:21 SYN packet "disappears" Kevin
2017-04-27 15:04 ` Anton Danilov
2017-04-27 15:08 ` Noel Kuntze
2017-04-27 23:15   ` Kevin
2017-04-28  1:00 ` Robert White
2017-04-28  2:55   ` Kevin [this message]

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=9574980.6JjInWLu8z@giles \
    --to=kmg952@bigpond.com \
    --cc=netfilter@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox