blob: 1eed14d028bd47176c44a74cc051aa56bbfd3869 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
type: txt
help: "Accept packets with SRR option"
default: "disable"
syntax: $(@) in "enable", "disable"; "ip-src-route must be enable or disable"
create: "if [ x$(@) == 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$(@) == 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\""
|