@@ -32150,6 +32150,16 @@ echo 'On Error enter logread'
32150
32150
echo
32151
32151
}
32152
32152
32153
+ set_Firewall_offloading() {
32154
+ uci set firewall.@defaults[0].synflood_protect='1'
32155
+ uci set firewall.@defaults[0].drop_invalid='1'
32156
+ uci set firewall.@defaults[0].flow_offloading='1'
32157
+ uci set firewall.@defaults[0].flow_offloading_hw='1'
32158
+ processes=$(uci commit && reload_config)
32159
+ wait $processes >/dev/null
32160
+ /etc/init.d/firewall restart >/dev/null
32161
+ }
32162
+
32153
32163
set_firewall_intercept() {
32154
32164
echo 'set Tor intercept' >> /root/install.log
32155
32165
uci set firewall.ssh_int.enabled='1'
@@ -32303,16 +32313,6 @@ iptables -A FORWARD -i wan -o inet -j ACCEPT
32303
32313
iptables -t nat -A POSTROUTING -o wan -j MASQUERADE
32304
32314
}
32305
32315
32306
- set_Firewall_offloading() {
32307
- uci set firewall.@defaults[0].synflood_protect='1'
32308
- uci set firewall.@defaults[0].drop_invalid='1'
32309
- uci set firewall.@defaults[0].flow_offloading='1'
32310
- uci set firewall.@defaults[0].flow_offloading_hw='1'
32311
- processes=$(uci commit && reload_config)
32312
- wait $processes >/dev/null
32313
- /etc/init.d/firewall restart >/dev/null
32314
- }
32315
-
32316
32316
set_HS_Firewall() {
32317
32317
uci set firewall.OfficeClient.enabled='1'
32318
32318
uci set firewall.OfficeWebClient.enabled='1'
0 commit comments