Code Monkey home page Code Monkey logo

Comments (8)

nojhan avatar nojhan commented on July 17, 2024

Thank you for your interest in this small free software.

Can you tell which operating system you are using?
I would also need to see the logs, which you can get by appending the --log-level debug to the faulty command.
Thanks for your help!

from tunnelmon.

netllama avatar netllama commented on July 17, 2024

I'm using Linux on both systems:

$ ./tunnelmon.py --log-level debug
DEBUG:root:----- Started Ereshkigal -----
DEBUG:root:Log to stdout
DEBUG:root:Asked for: {'curses': False, 'connections': False, 'tunnels': False, 'log_level': 'debug', 'log_file': None, 'config_file': None}
DEBUG:root:Entering default mode
DEBUG:root:{'ppid': 1661824, 'cmdline': ['/usr/bin/ssh', '-o', 'ExitOnForwardFailure=yes', '-NTR', '2220:127.0.0.1:22', '-i', '/home/netllama/.ssh/id_ed25519', '[email protected]'], 'connections': [pconn(fd=3, family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, laddr=addr(ip='10.0.0.1', port=46150), raddr=addr(ip='a.b.c.d', port=22), status='ESTABLISHED')], 'pid': 1844939, 'name': 'ssh'}
DEBUG:root:autossh cmd line: /usr/bin/ssh -o ExitOnForwardFailure=yes -NTR 2220:127.0.0.1:22 -i /home/netllama/.ssh/id_ed25519 [email protected]
DEBUG:root:forwarding regexp: re.compile('-L\\s*(\\d+):(.*):(\\d+)')
DEBUG:root:[]
DEBUG:root:OrderedDict()
TYPE	SSH_PID	IN_PORT	VIA_HOST	TARGET_HOST	OUT_PORT

Based on the above output, its definitely finding the tunnel, but then not using it?

from tunnelmon.

netllama avatar netllama commented on July 17, 2024

Actually, I see the problem, its expecting local forwarding (-L), but I'm doing remote forwarding (-R).

from tunnelmon.

nojhan avatar nojhan commented on July 17, 2024

from tunnelmon.

netllama avatar netllama commented on July 17, 2024

Actually, that solution is insufficient as well. My command is -NTR 2220:127.0.0.1:22 so even if it matches [LRD] it won't work because I also have NT switches. Your regex doesn't cover all the possible scenarios.

If I change it to exact match my use case, then it works:
r"-NTR\s*(\d+):(.*):(\d+)"

from tunnelmon.

nojhan avatar nojhan commented on July 17, 2024

from tunnelmon.

netllama avatar netllama commented on July 17, 2024

from tunnelmon.

nojhan avatar nojhan commented on July 17, 2024

from tunnelmon.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.