All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benedikt Gollatz <ben@differentialschokolade.org>
To: netfilter@vger.kernel.org
Subject: Re: Problem with IPv6 tunnel
Date: Fri, 19 Jun 2009 12:18:26 +0200	[thread overview]
Message-ID: <200906191218.27220.ben@differentialschokolade.org> (raw)
In-Reply-To: <9948385e0906190131q58ba27c6ye625b662945f63ac@mail.gmail.com>

On Friday 19 June 2009, 10:31 David Balažic wrote:
> I have set up a (SixXS[1]) IPv6 tunnel on my linux router and have the
> problem, that after a while I become unavailable over IPv6 for the
> outside world.
> Then I I perform some IPv6 activity, like "ping6 ipv6.google.com" I
> become accessible again for a while.

This indeed sounds like netfilter is dropping proto-41 packets when the 
connection tracker thinks that your connection has timed out.

> A SixXS FAQ entry[2] suggests adding an iptables rule:
>  iptables -t nat -A POSTROUTING --proto ! 41 -o [Your IPv4 Interface]
> -j MASQUERADE
>
> This way I get (iptables -t nat -L ...):
>
> Chain POSTROUTING (policy ACCEPT)
> target     prot opt source               destination
> postrouting_rule  all  --  anywhere             anywhere
> MASQUERADE  all  --  anywhere             anywhere
> MASQUERADE !ipv6 --  anywhere             anywhere  # the added rule
>
> I am not an iptables expert, but to me it seems the first MASQUERADE
> rule matches all packets and the new one does not make any difference.
> Can someone confirm that ?

That's absolutely true. The rule from the FAQ is meant to replace your 
original rule, exempting proto-41 traffic from masquerading and thus 
connection tracking.

Benedikt

  parent reply	other threads:[~2009-06-19 10:18 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19  8:31 Problem with IPv6 tunnel David Balažic
2009-06-19 10:18 ` Benedikt Gollatz
2009-06-19 12:03   ` David Balažic
2009-06-19 12:13     ` Benedikt Gollatz
2009-06-19 12:57       ` David Balažic
2009-06-19 13:08         ` Benedikt Gollatz
2009-06-19 13:37           ` David Balažic
2009-06-21 13:44   ` Chris Hills
2009-06-21 13:46     ` Chris Hills
2009-07-09 15:30   ` Pascal Hambourg
2009-06-19 10:18 ` Benedikt Gollatz [this message]
2009-07-09 11:48 ` David Balažic
2009-07-09 13:06   ` David Balažic
2009-07-09 14:51     ` Benedikt Gollatz
2009-07-09 15:34       ` Pascal Hambourg
2009-07-10 11:50         ` Benedikt Gollatz
2009-07-10 13:40           ` Pascal Hambourg
2009-07-10 15:00             ` David Balažic
2009-07-10 15:30               ` Pascal Hambourg
2009-07-10 22:31                 ` David Balažic

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=200906191218.27220.ben@differentialschokolade.org \
    --to=ben@differentialschokolade.org \
    --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 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.