* net/ipv4/conf/* config order
@ 2002-05-13 6:51 Narancs v1
2002-05-13 7:36 ` Roberto Nibali
0 siblings, 1 reply; 4+ messages in thread
From: Narancs v1 @ 2002-05-13 6:51 UTC (permalink / raw)
To: linux-kernel
Hi all!
sysctl -a|grep source
net/ipv4/conf/eth2/accept_source_route = 1
net/ipv4/conf/eth1/accept_source_route = 1
net/ipv4/conf/eth0/accept_source_route = 1
net/ipv4/conf/lo/accept_source_route = 1
net/ipv4/conf/default/accept_source_route = 1
net/ipv4/conf/all/accept_source_route = 0
so does it mean, that source routed packets are all dropped in all
interfaces, or does it mean that all accepted?
Yes, I want to disable it, and some other parameters, too, so shall I set
all of them respectively to 0 or 'all' = 0 will do the task?
thanks!
linux 2.4.18
-------------------------
Narancs v1
IT Security Administrator
Warning: This is a really short .sig! Vigyazat: ez egy nagyon rovid szig!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: net/ipv4/conf/* config order
2002-05-13 6:51 net/ipv4/conf/* config order Narancs v1
@ 2002-05-13 7:36 ` Roberto Nibali
2002-05-13 8:39 ` Thomas 'Dent' Mirlacher
2002-05-13 8:55 ` Narancs v1
0 siblings, 2 replies; 4+ messages in thread
From: Roberto Nibali @ 2002-05-13 7:36 UTC (permalink / raw)
To: Narancs v1; +Cc: linux-kernel
Hello,
> sysctl -a|grep source
> net/ipv4/conf/eth2/accept_source_route = 1
> net/ipv4/conf/eth1/accept_source_route = 1
> net/ipv4/conf/eth0/accept_source_route = 1
> net/ipv4/conf/lo/accept_source_route = 1
> net/ipv4/conf/default/accept_source_route = 1
> net/ipv4/conf/all/accept_source_route = 0
Basically, accept_source_route says how to handle packets with the SRR
option set. If 1 (default for a router) it accepts those packets, if 0
(default for a host) it will drop them. [This is actually written in
../Documentation/networking/ip-sysctl.txt]
> so does it mean, that source routed packets are all dropped in all
> interfaces, or does it mean that all accepted?
They will be dropped on all interfaces since /all/accept_source_route=0.
Now you need to know that:
/all/${var} means: enable this feature ${var}
/default/${var} means: inherit /all/${var} on newly instances of a
physical interface
> Yes, I want to disable it, and some other parameters, too, so shall I set
> all of them respectively to 0 or 'all' = 0 will do the task?
all=0 should do the task.
Best regards,
Roberto Nibali, ratz
ps.: I don't think this question belongs to lkml, next time you should
maybe choose linux-net@vger.kernel.org.
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: net/ipv4/conf/* config order
2002-05-13 7:36 ` Roberto Nibali
@ 2002-05-13 8:39 ` Thomas 'Dent' Mirlacher
2002-05-13 8:55 ` Narancs v1
1 sibling, 0 replies; 4+ messages in thread
From: Thomas 'Dent' Mirlacher @ 2002-05-13 8:39 UTC (permalink / raw)
To: Roberto Nibali; +Cc: Narancs v1, linux-kernel
--snip/snip
> > sysctl -a|grep source
> > net/ipv4/conf/eth2/accept_source_route = 1
> > net/ipv4/conf/eth1/accept_source_route = 1
> > net/ipv4/conf/eth0/accept_source_route = 1
> > net/ipv4/conf/lo/accept_source_route = 1
> > net/ipv4/conf/default/accept_source_route = 1
> > net/ipv4/conf/all/accept_source_route = 0
>
> Basically, accept_source_route says how to handle packets with the SRR
> option set. If 1 (default for a router) it accepts those packets, if 0
> (default for a host) it will drop them. [This is actually written in
> ../Documentation/networking/ip-sysctl.txt]
--snip/snip
> ps.: I don't think this question belongs to lkml, next time you should
> maybe choose linux-net@vger.kernel.org.
beside your explanation, IMHO this belongs to the ML, since the
implementation generates confusion for the user.
wouldn't it be better to implement something like
/all/* = -1 means i don't have set this for all
and if i set something for /all/* this should be reflected in the individual
entries as well?
just my $0.02
tm
--
in some way i do, and in some way i don't.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: net/ipv4/conf/* config order
2002-05-13 7:36 ` Roberto Nibali
2002-05-13 8:39 ` Thomas 'Dent' Mirlacher
@ 2002-05-13 8:55 ` Narancs v1
1 sibling, 0 replies; 4+ messages in thread
From: Narancs v1 @ 2002-05-13 8:55 UTC (permalink / raw)
To: Roberto Nibali; +Cc: linux-kernel
On Mon, 13 May 2002, Roberto Nibali wrote:
[...]
> They will be dropped on all interfaces since /all/accept_source_route=0.
[..]
> all=0 should do the task.
thanks!!!
> ps.: I don't think this question belongs to lkml, next time you should
> maybe choose linux-net@vger.kernel.org.
ok, next time. I did not know that linux-net exists ;-)
-------------------------
Narancs v1
IT Security Administrator
Warning: This is a really short .sig! Vigyazat: ez egy nagyon rovid szig!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-05-13 8:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-13 6:51 net/ipv4/conf/* config order Narancs v1
2002-05-13 7:36 ` Roberto Nibali
2002-05-13 8:39 ` Thomas 'Dent' Mirlacher
2002-05-13 8:55 ` Narancs v1
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.