forked from extern/shorewall_code
Set correct file with 'sourceroute'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9046 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
3f85cc86aa
commit
ffd010073a
@ -185,7 +185,7 @@ sub setup_source_routing() {
|
|||||||
save_progress_message 'Setting up Source Routing...';
|
save_progress_message 'Setting up Source Routing...';
|
||||||
|
|
||||||
for my $interface ( @$interfaces ) {
|
for my $interface ( @$interfaces ) {
|
||||||
my $file = "/proc/sys/net/ipv4/conf/$interface/accept_source_route";
|
my $file = "/proc/sys/net/ipv$family/conf/$interface/accept_source_route";
|
||||||
my $value = get_interface_option $interface, 'sourceroute';
|
my $value = get_interface_option $interface, 'sourceroute';
|
||||||
|
|
||||||
emit ( "if [ -f $file ]; then" ,
|
emit ( "if [ -f $file ]; then" ,
|
||||||
|
Loading…
Reference in New Issue
Block a user