Skip to content

Commit d90f6d7

Browse files
committed
cleanup
1 parent 7ef7035 commit d90f6d7

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

Install/openWRT23_install.sh

+25-25
Original file line numberDiff line numberDiff line change
@@ -32296,6 +32296,23 @@ uci set firewall.homematic1.extra='--syn'
3229632296
uci set firewall.homematic1.enabled='0'
3229732297
}
3229832298

32299+
setup_tor_routing() {
32300+
iptables -t nat -A PREROUTING -i inet -p tcp --syn -j REDIRECT --to-ports $TOR_TRANS_port
32301+
iptables -A FORWARD -i inet -o wan -j ACCEPT
32302+
iptables -A FORWARD -i wan -o inet -j ACCEPT
32303+
iptables -t nat -A POSTROUTING -o wan -j MASQUERADE
32304+
}
32305+
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+
3229932316
set_HS_Firewall() {
3230032317
uci set firewall.OfficeClient.enabled='1'
3230132318
uci set firewall.OfficeWebClient.enabled='1'
@@ -34749,23 +34766,6 @@ wait $processes >/dev/null
3474934766
/etc/init.d/firewall restart >/dev/null
3475034767
}
3475134768

34752-
setup_tor_routing() {
34753-
iptables -t nat -A PREROUTING -i inet -p tcp --syn -j REDIRECT --to-ports $TOR_TRANS_port
34754-
iptables -A FORWARD -i inet -o wan -j ACCEPT
34755-
iptables -A FORWARD -i wan -o inet -j ACCEPT
34756-
iptables -t nat -A POSTROUTING -o wan -j MASQUERADE
34757-
}
34758-
34759-
set_Firewall_offloading() {
34760-
uci set firewall.@defaults[0].synflood_protect='1'
34761-
uci set firewall.@defaults[0].drop_invalid='1'
34762-
uci set firewall.@defaults[0].flow_offloading='1'
34763-
uci set firewall.@defaults[0].flow_offloading_hw='1'
34764-
processes=$(uci commit && reload_config)
34765-
wait $processes >/dev/null
34766-
/etc/init.d/firewall restart >/dev/null
34767-
}
34768-
3476934769
set_mountpoints() {
3477034770

3477134771
opkg update
@@ -34966,14 +34966,14 @@ echo $(date +%d'.'%m'.'%y' '%H':'%M':'%S) ' Routing über Tor Onion einrichten'
3496634966
setup_tor_routing >> /root/install.log
3496734967
fi
3496834968

34969-
echo
34970-
echo >> /root/install.log
34971-
echo
34972-
view_config
34973-
echo
34974-
echo $(date +%d'.'%m'.'%y' '%H':'%M':'%S) ' Set Firewall-IP-Set'
34975-
echo $(date +%d'.'%m'.'%y' '%H':'%M':'%S) ' Set Firewall-IP-Set' >> /root/install.log
34976-
set_firewall_ipset >> /root/install.log
34969+
#echo
34970+
#echo >> /root/install.log
34971+
#echo
34972+
#view_config
34973+
#echo
34974+
#echo $(date +%d'.'%m'.'%y' '%H':'%M':'%S) ' Set Firewall-IP-Set'
34975+
#echo $(date +%d'.'%m'.'%y' '%H':'%M':'%S) ' Set Firewall-IP-Set' >> /root/install.log
34976+
#aset_firewall_ipset >> /root/install.log
3497734977

3497834978
echo
3497934979
echo >> /root/install.log

0 commit comments

Comments
 (0)