Changes

no edit summary
Line 44: Line 44:  
Now we will add a new Firewall rule GRE Accept, for that you will need to execute these commands each one at a time(keep in mind that each command has to be executed in the order that has been provided below):
 
Now we will add a new Firewall rule GRE Accept, for that you will need to execute these commands each one at a time(keep in mind that each command has to be executed in the order that has been provided below):
   −
''uci add firewall rule
+
''uci add firewall rule''
   −
uci set firewall.@rule[-1].name=GRE
+
''uci set firewall.@rule[-1].name=GRE''
   −
uci set firewall.@rule[-1].target=ACCEPT
+
''uci set firewall.@rule[-1].target=ACCEPT''
   −
uci set firewall.@rule[-1].priority=14
+
''uci set firewall.@rule[-1].priority=14''
   −
uci set firewall.@rule[-1].src=l2tp
+
''uci set firewall.@rule[-1].src=l2tp''
   −
uci set firewall.@rule[-1].enabled=1
+
''uci set firewall.@rule[-1].enabled=1''
   −
uci set firewall.@rule[-1].proto=47
+
''uci set firewall.@rule[-1].proto=47''
   −
uci set firewall.@rule[-1].utc_time=0
+
''uci set firewall.@rule[-1].utc_time=0''
   −
uci commit firewall && service firewall restart''
+
''uci commit firewall && service firewall restart''
 +
 
 +
 
 +
Each command executed on the device should look like this:
 +
 
 +
[[File:Networking rutxxx configuration examples l2tp rut firewall gre v1.png|border|class=tlt-border]]
 +
 
 +
You can confirm if the new rule was added with the command '''cat/etc/config/firewall''' the output should look like this:
 +
 
 +
[[File:Networking rutxxx configuration examples l2tp rut gre confirmation v1.png|border|class=tlt-border]]
 +
 
 +
----

Navigation menu