Skip to content

Commit d1c4e58

Browse files
committed
cleanup
1 parent d90f6d7 commit d1c4e58

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Install/openWRT23_install.sh

+10-10
Original file line numberDiff line numberDiff line change
@@ -32150,6 +32150,16 @@ echo 'On Error enter logread'
3215032150
echo
3215132151
}
3215232152

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+
3215332163
set_firewall_intercept() {
3215432164
echo 'set Tor intercept' >> /root/install.log
3215532165
uci set firewall.ssh_int.enabled='1'
@@ -32303,16 +32313,6 @@ iptables -A FORWARD -i wan -o inet -j ACCEPT
3230332313
iptables -t nat -A POSTROUTING -o wan -j MASQUERADE
3230432314
}
3230532315

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-
3231632316
set_HS_Firewall() {
3231732317
uci set firewall.OfficeClient.enabled='1'
3231832318
uci set firewall.OfficeWebClient.enabled='1'

0 commit comments

Comments
 (0)