Temat: Zdalny dostep do ssh z servera
Cześć, czy ktoś może mi pomóc z otworzeniem portu ssh dla servera podpiętego do openwrt? Port to 85342, server znajduje się pod adresem 192.168.2.200. Gdy robiłem to poleceniami:
# uci add firewall rule
# uci set firewall.@rule[-1].name=ssh
# uci set firewall.@rule[-1].src=wan
# uci set firewall.@rule[-1].target=ACCEPT
# uci set firewall.@rule[-1].proto=tcp
# uci set firewall.@rule[-1].dest_port=85342
# uci commit firewall# uci add firewall redirect
# uci set firewall.@redirect[-1].name=ssh-nsa310
# uci set firewall.@redirect[-1].src=wan
# uci set firewall.@redirect[-1].proto=tcpudp
# uci set firewall.@redirect[-1].src_dport=85342
# uci set firewall.@redirect[-1].dest_port=85342
# uci set firewall.@redirect[-1].dest_ip=192.168.2.200
# uci commit firewallto port dalej był zamknięty.
Porty zdalne do ssh i http do routera wyklikane z GUI działają.