Linux Netfilter discussions
 help / color / mirror / Atom feed
* ipv6 forwarding without netfilter
@ 2010-07-31 14:44 Mark Ryden
  2010-07-31 17:47 ` Pascal Hambourg
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Ryden @ 2010-07-31 14:44 UTC (permalink / raw)
  To: netfilter

Hi,
According to this link:
http://www.faqs.org/docs/Linux-HOWTO/Linux+IPv6-HOWTO.html#FIREWALLING-NETFILTER6

"In IPv6 you can't control forwarding per device, forwarding control
has to be done using IPv6-netfilter (controlled with ip6tables)
rulesets and specify input and output devices (see
Firewalling/Netfilter6  for more). This is different to IPv4, where
you are able to control forwarding per device (decision is made on
interface where packet came in). "


My question is:
Suppose you don't want to control forwarding in IPv6 on a certain
device, just forward packets which are received on any device.
I am not sure that this howto is relevant.
Is it true that in order to achieve IPV6 forwarding you must use
netfilter rule ?

Is it possible to achieve forwarding simply by running:
echo "1" /proc/sys/net/ipv6/conf/all/forwarding

without setting any ip6tables netfilter rule ?


rgs,
Mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ipv6 forwarding without netfilter
  2010-07-31 14:44 ipv6 forwarding without netfilter Mark Ryden
@ 2010-07-31 17:47 ` Pascal Hambourg
  2010-07-31 21:23   ` ABPNI
  0 siblings, 1 reply; 4+ messages in thread
From: Pascal Hambourg @ 2010-07-31 17:47 UTC (permalink / raw)
  To: Mark Ryden; +Cc: netfilter

Hello,

Mark Ryden a écrit :
> According to this link:
> http://www.faqs.org/docs/Linux-HOWTO/Linux+IPv6-HOWTO.html#FIREWALLING-NETFILTER6
> 
> "In IPv6 you can't control forwarding per device, forwarding control
> has to be done using IPv6-netfilter (controlled with ip6tables)
> rulesets and specify input and output devices (see
> Firewalling/Netfilter6  for more). This is different to IPv4, where
> you are able to control forwarding per device (decision is made on
> interface where packet came in). "
> 
> My question is:
> Suppose you don't want to control forwarding in IPv6 on a certain
> device, just forward packets which are received on any device.
> I am not sure that this howto is relevant.
> Is it true that in order to achieve IPV6 forwarding you must use
> netfilter rule ?

No.

> Is it possible to achieve forwarding simply by running:
> echo "1" /proc/sys/net/ipv6/conf/all/forwarding
> 
> without setting any ip6tables netfilter rule ?

Yes.
If you don't need filtering, you don't need ip6tables.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ipv6 forwarding without netfilter
  2010-07-31 17:47 ` Pascal Hambourg
@ 2010-07-31 21:23   ` ABPNI
  2010-07-31 21:27     ` Jan Engelhardt
  0 siblings, 1 reply; 4+ messages in thread
From: ABPNI @ 2010-07-31 21:23 UTC (permalink / raw)
  To: Pascal Hambourg; +Cc: Mark Ryden, netfilter@vger.kernel.org



On 31 Jul 2010, at 18:47, Pascal Hambourg  
<pascal.mail@plouf.fr.eu.org> wrote:

> Hello,
>
> Mark Ryden a écrit :
>> According to this link:
>> http://www.faqs.org/docs/Linux-HOWTO/Linux+IPv6-HOWTO.html#FIREWALLING-NETFILTER6
>>
>> "In IPv6 you can't control forwarding per device, forwarding control
>> has to be done using IPv6-netfilter (controlled with ip6tables)
>> rulesets and specify input and output devices (see
>> Firewalling/Netfilter6  for more). This is different to IPv4, where
>> you are able to control forwarding per device (decision is made on
>> interface where packet came in). "
>>
>> My question is:
>> Suppose you don't want to control forwarding in IPv6 on a certain
>> device, just forward packets which are received on any device.
>> I am not sure that this howto is relevant.
>> Is it true that in order to achieve IPV6 forwarding you must use
>> netfilter rule ?
>
> No.
>
>> Is it possible to achieve forwarding simply by running:
>> echo "1" /proc/sys/net/ipv6/conf/all/forwarding
>>
>> without setting any ip6tables netfilter rule ?
>
> Yes.
> If you don't need filtering, you don't need ip6tables.
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter"  
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Am I correct in saying that iptables/ip6tables doesn't actually alter/ 
affect "path" of traffic, but only either allows or blocks?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ipv6 forwarding without netfilter
  2010-07-31 21:23   ` ABPNI
@ 2010-07-31 21:27     ` Jan Engelhardt
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2010-07-31 21:27 UTC (permalink / raw)
  To: ABPNI; +Cc: Pascal Hambourg, Mark Ryden, netfilter@vger.kernel.org


On Saturday 2010-07-31 23:23, ABPNI wrote:
>>
>> Yes.
>> If you don't need filtering, you don't need ip6tables.
>
> Am I correct in saying that iptables/ip6tables doesn't actually alter/affect
> "path" of traffic, but only either allows or blocks?--

You are correct in your assessment. The currently-included Xtables
modules do not alter the path of existing traffic. Modules might
create new packets and do some routing with them (e.g. REJECT, TEE),
but the original packet is accepted/drop/continued. Modules might
also change packet parameters (like nfmark) that will influence the
path decision later on.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-31 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-31 14:44 ipv6 forwarding without netfilter Mark Ryden
2010-07-31 17:47 ` Pascal Hambourg
2010-07-31 21:23   ` ABPNI
2010-07-31 21:27     ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox