blob: c9e777c71b9ef3237756f491e51a071f7c2b8767 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
type: txt
help: Set policy for handling IPv4 packets with source route option
comp_help:Possible completions:
enable\tEnable processing of IPv4 packets with source route option
disable\tDisable processing of IPv4 packets with source route option
default: "disable"
syntax:expression: $VAR(@) in "enable", "disable"; "ip-src-route must be enable or disable"
create:
if [ x$VAR(@) == xenable ]; then
sudo sh -c "echo 1 > \
/proc/sys/net/ipv4/conf/all/accept_source_route"
else
sudo sh -c "echo 0 > \
/proc/sys/net/ipv4/conf/all/accept_source_route"
fi
update:
if [ x$VAR(@) == xenable ]; then
sudo sh -c "echo 1 > \
/proc/sys/net/ipv4/conf/all/accept_source_route"
else
sudo sh -c "echo 0 > \
/proc/sys/net/ipv4/conf/all/accept_source_route"
fi
delete:
sudo sh -c "echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route"
|