[viwib] allow ssh in for people to remotely access their router

This commit is contained in:
Nico Schottelius 2022-05-02 10:17:56 +02:00
parent dc1f42ab02
commit f31189a08d
1 changed files with 9 additions and 0 deletions

View File

@ -174,6 +174,15 @@ uci set firewall.@rule[-1].dest_port='80'
uci set firewall.@rule[-1].target='ACCEPT'
fi
if ! uci show firewall | grep "name='Allow-SSH-in'"; then
uci add firewall rule
uci set firewall.@rule[-1].name='Allow-SSH-in'
uci set firewall.@rule[-1].src='wan'
uci set firewall.@rule[-1].proto='tcp'
uci set firewall.@rule[-1].dest_port='22'
uci set firewall.@rule[-1].target='ACCEPT'
fi
# Add interfaces to the right network zone
uci set firewall.@zone[1].network='wan wan6 wg0'