diff options
author | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-11-04 05:55:45 +0700 |
---|---|---|
committer | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-11-04 05:55:45 +0700 |
commit | e59537545e40756a893134c25eff533ccce3adb8 (patch) | |
tree | 85110d89d4ea23c2650b0d0f42b3cbd32a150dd9 /templates-cfg/system/conntrack/modules/pptp/disable/node.def | |
parent | 174565005c06c4b7cc6f64b977f63f87b9bd75df (diff) | |
download | vyatta-conntrack-e59537545e40756a893134c25eff533ccce3adb8.tar.gz vyatta-conntrack-e59537545e40756a893134c25eff533ccce3adb8.zip |
Move templates t templates-cfg to let op mode templates also exist.
Diffstat (limited to 'templates-cfg/system/conntrack/modules/pptp/disable/node.def')
-rw-r--r-- | templates-cfg/system/conntrack/modules/pptp/disable/node.def | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates-cfg/system/conntrack/modules/pptp/disable/node.def b/templates-cfg/system/conntrack/modules/pptp/disable/node.def new file mode 100644 index 0000000..4ffd980 --- /dev/null +++ b/templates-cfg/system/conntrack/modules/pptp/disable/node.def @@ -0,0 +1,20 @@ +help: Disable PPTP connection tracking + +create: cli-shell-api exists system conntrack modules gre disable + if [ $? == 0 ]; then + # Do nothing, this case is handled in GRE module templates + :; + else + sudo rmmod nf_nat_pptp + sudo rmmod nf_conntrack_pptp + fi + +# PPTP shouldn't be enabled when GRE is disabled because PPTP depends on it +delete: cli-shell-api exists system conntrack modules gre disable + if [ $? == 0 ]; then + echo "Error: can not enable PPTP connection tracking when GRE connection tracking is disabled!" + exit 1 + else + sudo modprobe nf_conntrack_pptp + sudo modprobe nf_nat_pptp + fi |