diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2009-02-02 13:51:32 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2009-02-02 13:51:32 -0800 |
commit | 3ea4540b14ad999386c4b359a963bf362d545ee2 (patch) | |
tree | 547546ddde04ca6721df0c31b918aa50226bf649 /templates | |
parent | 5a2c71a9bd9ee21e56077d9d8cef108c00eb40f2 (diff) | |
download | vyatta-cfg-firewall-3ea4540b14ad999386c4b359a963bf362d545ee2.tar.gz vyatta-cfg-firewall-3ea4540b14ad999386c4b359a963bf362d545ee2.zip |
Bugfix 4052: Support PPPOE over an ethernet VIF.
Diffstat (limited to 'templates')
7 files changed, 58 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/in/name/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/in/name/node.def new file mode 100644 index 0000000..6e629bc --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/in/name/node.def @@ -0,0 +1,18 @@ +type: txt + +help: Set inbound interface filter name + +create:expression: "sh -c \"echo create pppoe=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \ +>> /tmp/cli.log && \ +sudo /opt/vyatta/sbin/vyatta-firewall.pl \ +--update-interfaces update pppoe$VAR(../../../@) $VAR(..) $VAR(@)\" " + +update:expression: "sh -c \"echo update pppoe=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \ +>> /tmp/cli.log && \ +sudo /opt/vyatta/sbin/vyatta-firewall.pl \ +--update-interfaces update pppoe$VAR(../../../@) $VAR(..) $VAR(@)\" " + +delete:expression: "sh -c \"echo delete pppoe=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \ +>> /tmp/cli.log && \ +sudo /opt/vyatta/sbin/vyatta-firewall.pl \ +--update-interfaces delete pppoe$VAR(../../../@) $VAR(..) $VAR(@)\" " diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/in/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/in/node.def new file mode 100644 index 0000000..eccc79b --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/in/node.def @@ -0,0 +1 @@ +help: Set filter for forwarded packets on inbound interface diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/local/name/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/local/name/node.def new file mode 100644 index 0000000..44e85d1 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/local/name/node.def @@ -0,0 +1,18 @@ +type: txt + +help: Set local filter name + +create:expression: "sh -c \"echo create pppoe=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \ +>> /tmp/cli.log && \ +sudo /opt/vyatta/sbin/vyatta-firewall.pl \ +--update-interfaces update pppoe$VAR(../../../@) $VAR(..) $VAR(@)\" " + +update:expression: "sh -c \"echo update pppoe=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \ +>> /tmp/cli.log && \ +sudo /opt/vyatta/sbin/vyatta-firewall.pl \ +--update-interfaces update pppoe$VAR(../../../@) $VAR(..) $VAR(@)\" " + +delete:expression: "sh -c \"echo delete pppoe=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \ +>> /tmp/cli.log && \ +sudo /opt/vyatta/sbin/vyatta-firewall.pl \ +--update-interfaces delete pppoe$VAR(../../../@) $VAR(..) $VAR(@)\" " diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/local/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/local/node.def new file mode 100644 index 0000000..2595835 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/local/node.def @@ -0,0 +1 @@ +help: Set filter for packets destined for this router diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/node.def new file mode 100644 index 0000000..11748d2 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/node.def @@ -0,0 +1 @@ +help: Set firewall options diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/out/name/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/out/name/node.def new file mode 100644 index 0000000..2c37224 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/out/name/node.def @@ -0,0 +1,18 @@ +type: txt + +help: Set outbound interface filter name + +create:expression: "sh -c \"echo create pppoe=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \ +>> /tmp/cli.log && \ +sudo /opt/vyatta/sbin/vyatta-firewall.pl \ +--update-interfaces update pppoe$VAR(../../../@) $VAR(..) $VAR(@)\" " + +update:expression: "sh -c \"echo update pppoe=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \ +>> /tmp/cli.log && \ +sudo /opt/vyatta/sbin/vyatta-firewall.pl \ +--update-interfaces update pppoe$VAR(../../../@) $VAR(..) $VAR(@)\" " + +delete:expression: "sh -c \"echo delete pppoe=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \ +>> /tmp/cli.log && \ +sudo /opt/vyatta/sbin/vyatta-firewall.pl \ +--update-interfaces delete pppoe$VAR(../../../@) $VAR(..) $VAR(@)\" " diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/out/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/out/node.def new file mode 100644 index 0000000..3aec5f0 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/pppoe/node.tag/firewall/out/node.def @@ -0,0 +1 @@ +help: Set filter for forwarded packets on outbound interface |