[viwib] allow ssh in for people to remotely access their router
This commit is contained in:
parent
dc1f42ab02
commit
f31189a08d
1 changed files with 9 additions and 0 deletions
|
@ -174,6 +174,15 @@ uci set firewall.@rule[-1].dest_port='80'
|
||||||
uci set firewall.@rule[-1].target='ACCEPT'
|
uci set firewall.@rule[-1].target='ACCEPT'
|
||||||
fi
|
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
|
# Add interfaces to the right network zone
|
||||||
uci set firewall.@zone[1].network='wan wan6 wg0'
|
uci set firewall.@zone[1].network='wan wan6 wg0'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue