Po ciężkich bojach ruszył tunel SSH. Dzięki opisowi http://openrouter.info/forum/viewtopic. … &t=629 oraz pomocy kol Cezar.
Po pierwsze w ruterze, który robi za serwer ssh wpisałem:
iptables -t nat -A prerouting_wan -p tcp --dport 22 -j ACCEPT
iptables -A input_wan -p tcp --dport 22 -j ACCEPT
iptables -t nat -A prerouting_wan -p tcp --dport AAAAA -j ACCEPT
iptables -A input_wan -p tcp --dport AAAAA -j ACCEPT
iptables -t nat -A prerouting_wan -p udp --dport AAAAA -j ACCEPT
iptables -A input_wan -p udp --dport AAAAA -j ACCEPT
Po drugie w ruterze, który robi za klienta wpisałem w /etc/config/dropbear
config 'dropbear' 'global'
option 'PasswordAuth' 'on'
option 'GatewayPorts' 'on'
option 'RootPasswordAuth' 'on'
option 'max_remote_attempts' '10'
option 'Port' '22'
Po trzecie to polecenie zestawiło mi tunel:
ssh -f root@IP SERWERA SSH -R AAAAA:IP TUNERA:80 -N -g -i /root/rsa_secret.txt
I teraz http://IP SERWERA:AAAAA otwiera stronę tunera
Jak zrobić, żeby połączenie SSH było cały czas sprawdzane i utrzymywane?
Kol Cezary, może przrobicz HOWTO, żeby inni się nie męczyli tak jak ja
Pozdrawiam