Temat: sshtunnel

Hejka

Zainstalowalem sshtunnel, modyfikuje plik wg guide'a :
https://wiki.openwrt.org/doc/uci/sshtunnel

dopisalem tylko

config tunnelR test
        option server           test
        option remoteaddress    *
        option remoteport       8800
        option localaddress     127.0.0.1
        option localport        8800

chodzi o to by zdalny PC source port 8800 (zza NAT) laczyl sie na openwrt i ten wystawial to na 8800

jednak jak probuje wystartowac :
/etc/init.d/sshtunnel start
uci: Entry not found

2

Odp: sshtunnel

uci show sshtunnel

Jeżeli pokaże test bez błędu to zobacz do /etc/init.d/sshtunnel do czego się odwołuje. Może czegoś brakuje z opcji.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: sshtunnel

ok, mysle, ze problem byl tutaj :

A minimal server declaration may look like the example below.

config 'server' 'home'
    option 'user'       'jonh'
    option 'hostname'   'myhome.jonh.me'
home will identify this server on the tunnels sections
jonh specifies the username on the remote machine
myhome.jonh.me is the hostname of a machine running a openssh ssh server.

dodalem te sekcje i wystartowalo bez bledu

uci show sshtunnel
sshtunnel.test=tunnelR
sshtunnel.test.user='test'
sshtunnel.test.hostname='myhome'
sshtunnel.test.server='test'
sshtunnel.test.remoteaddress='*'
sshtunnel.test.remoteport='8800'
sshtunnel.test.localaddress='127.0.0.1'
sshtunnel.test.localport='8800'


problem tylko w tym, ze reverse tunnel chce zrobic z putty (zza NAT) i nie wiem gdzie tego user@hostname podac
- testuje normalnie przez polaczenie zza NATA na roota (w tej chwili jedyny user) - powinienem miec takiego usera na openwrt ?

4

Odp: sshtunnel

problem rozwiazany, okazuje sie, ze czytalem starty guide
nowy dropbear supportuje juz opcje :
        option GatewayPorts 'on'

5

Odp: sshtunnel

Ta opcja zawsze była...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.