summaryrefslogtreecommitdiff
path: root/templates/firewall/ip-src-route/node.def
blob: eb8bc0afd3046954013bc989dfe7620ef85b7a1a (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 echo 1 > /proc/sys/net/ipv4/conf/all/accept_source_route; \
          else echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route; fi"
update: "if [ x$(@) == xenable ]; \
          then echo 1 > /proc/sys/net/ipv4/conf/all/accept_source_route; \
          else echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route; fi"
delete: "echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route"