diff options
author | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-11-04 04:46:00 +0700 |
---|---|---|
committer | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-11-04 04:46:00 +0700 |
commit | 410023fd604af49434ed5039c99c7ee6abc99b20 (patch) | |
tree | 74e703e1d778db8ace3796c3d1fdf528b302abe7 /templates/system/conntrack/modules/pptp/disable/node.def | |
download | vyatta-conntrack-debian/0.1.tar.gz vyatta-conntrack-debian/0.1.zip |
Initial commit.debian/0.1
Diffstat (limited to 'templates/system/conntrack/modules/pptp/disable/node.def')
-rw-r--r-- | templates/system/conntrack/modules/pptp/disable/node.def | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/system/conntrack/modules/pptp/disable/node.def b/templates/system/conntrack/modules/pptp/disable/node.def new file mode 100644 index 0000000..4ffd980 --- /dev/null +++ b/templates/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 |