All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Amin Azez <azez@ufomechanic.net>
Cc: Jan Engelhardt <jengelh@computergmbh.de>,
	Netfilter Developer Mailing List
	<netfilter-devel@vger.kernel.org>
Subject: Re: NF [PATCH 4/4] xt_gateway
Date: Tue, 27 Nov 2007 01:19:16 +0100	[thread overview]
Message-ID: <474B6284.6010104@trash.net> (raw)
In-Reply-To: <474AF57A.3090100@ufomechanic.net>

Amin Azez wrote:
> * Patrick McHardy wrote, On 26/11/07 15:35:
>> Amin Azez wrote:
>>>
>>> Also, the match isn't REALLY strongly related to routing, which nexthop
>>> suggests, it's really a dest-mac match but where the mac address is
>>> resolved by IP each time from the neighbour table; so it's also useful
>>> against layer 3 bridges as well, where the bridge hardware is out of
>>> your control (may change) but it has the same IP address; e.g. some
>>> hotspots. Realms can't do that AFAIK;
>>>       
>> Not sure I understand - if it has an IP, its not a bridge but a
>> router. If its visible to routing in any way, realms can be used.
>>     
> layer 3 bridges work by mac spoofing, so it's not routing or layer 2
> bridging.
> And so realms can't be used.
>
> And the whole point of (ugh) layer 3 bridges is to join network segments
> without the need to scatter routing changes everywhere.
>
> The fact that xt_gatway can cope with this where realms can't is a nice
> plus on top of the fact that you don't have to define a realm for each
> gateway just to be able to match it's mac address.
>   

The version Jan posted doesn't match on mac but on IP address.
So I still don't see the point. You have a route with a gateway
address, which you can match on. The fact that some MAC spoofing
is done seems irrelevant. Since you have this route, you can also
use realms. What am I missing here?

> Another advantage is that it can be used by linux users who haven't
> manually defined any routing but still make use of
> /etc/sysconfig/iptables to save and restore firewall rules.
> (It's a matter of opinion whether or not it is desirable to give this
> facility to users who haven't gone to the labour of defining a routing
> table. Maybe we don't like those sort of people).
>
> For myself, I have xml-based routing tables (yeah I posted my code to
> lartc but no-one cared) but I still prefer xt_gateway over using realms
> to indicate mere snat-ability, and to save realms for something more
> realm-like. Lack of return routing seems incidental to the connotations
> of realm in my mind, so use of realm seems like an abuse

Since we already have a crapload of stuff in the kernel, I prefer to
only add things that extend the expressiveness of iptables to things
not possible otherwise. Mere simplifications can be done in userspace
IMO.



  reply	other threads:[~2007-11-27  0:19 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-25 19:05 NF [PATCH 1/4] xt_owner Jan Engelhardt
2007-11-25 19:06 ` NF [PATCH 2/4] xt_TEE Jan Engelhardt
2007-11-25 19:39   ` Krzysztof Oledzki
2007-11-25 19:55     ` Jan Engelhardt
2007-11-25 20:22       ` Krzysztof Oledzki
2007-11-26  7:24   ` Patrick McHardy
2007-11-26 20:14     ` Jan Engelhardt
2007-11-27  0:12       ` Patrick McHardy
2007-12-05 17:24         ` nf_inet_address (was: NF [PATCH 2/4] xt_TEE) Jan Engelhardt
2007-12-05 17:35           ` Jan Engelhardt
2007-12-06  9:54             ` nf_inet_address Patrick McHardy
2007-11-25 19:06 ` NF [PATCH 3/4] xt_TCPOPTSTRIP Jan Engelhardt
2007-11-26  7:24   ` Patrick McHardy
2007-11-26 16:19     ` Jan Engelhardt
2007-11-26 16:19       ` Patrick McHardy
2007-11-26 16:25         ` Jan Engelhardt
2007-11-27 12:37           ` Patrick McHardy
2007-11-27 14:50             ` Jan Engelhardt
2007-11-27 15:25               ` Patrick McHardy
2007-11-25 19:07 ` NF [PATCH 4/4] xt_gateway Jan Engelhardt
2007-11-26  7:30   ` Patrick McHardy
2007-11-26  9:17     ` Amin Azez
2007-11-26 15:35       ` Patrick McHardy
2007-11-26 16:34         ` Amin Azez
2007-11-27  0:19           ` Patrick McHardy [this message]
2007-11-27  9:33             ` Amin Azez
2007-11-27 13:03               ` Patrick McHardy
2007-11-27 13:33                 ` Amin Azez
2007-12-03 14:19                   ` Jan Engelhardt
2007-12-03 14:23                     ` Amin Azez
2007-11-25 19:07 ` IPT [PATCH 1/4] libxt_owner Jan Engelhardt
2007-11-25 19:08   ` IPT [PATCH 2/4] libxt_TEE Jan Engelhardt
2007-11-25 19:08   ` IPT [PATCH 3/4] libxt_TCPOPTSTRIP Jan Engelhardt
2007-11-25 19:08   ` IPT [PATCH 4/4] libxt_gateway Jan Engelhardt
2007-11-26  7:12 ` NF [PATCH 1/4] xt_owner Patrick McHardy

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=474B6284.6010104@trash.net \
    --to=kaber@trash.net \
    --cc=azez@ufomechanic.net \
    --cc=jengelh@computergmbh.de \
    --cc=netfilter-devel@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.