Find the answer to your Linux question:
Results 1 to 4 of 4

Thread: ssh tunnels

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009

    Unhappy ssh tunnels


    I have an OpenSSH tunneling problem, any guru's available (I'm a Golum) ??

    The problem is this:

    serverA <-- firewall <-- serverB --> firewall/NAT --> serverC

    The firewalls only allow serverB to ssh to servers A and C, they can't ssh to each other or to serverB

    So on serverB I'm trying to establish tunnels from A to B and B to C, it's so an isql session on serverA can access the Sybase database on serverC

    The following looks as if it should work, but doesn't - the only sniffer I have is snoop, which can't see loopback traffic. 'netstat -a' shows listeners on the ports on A and B

    ssh -l pmutton -N -g -f -R 2052:localhost:2099 serverA
    ssh -l pmutton -N -g -f -L 2099:localhost:2052 serverC

    I've googled & found examples of just one of the tunnels, but no examples of what I'm trying to do

    Am I trying the impossible ??


  2. #2
    helloČI m Joseph..Mu as well lol
    i think here is The Coffee Lounge where all the members trying to introduce ourselve and say hi to others.
    why not try some other discussion board?

  3. #3
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Oosterhout-NB, Netherlands
    check again Joseph

  4. $spacer_open
  5. #4
    Linux Enthusiast
    Join Date
    Apr 2004
    Off the top of my head, you could try:

    ssh -l pmutton -N -f -R 2052:serverC:22 serverA
    Then on serverA ssh to localhost port 2052. ServerC should then see the traffic as coming from serverB.

    Let us know how you get on,

    To be good, you must first be bad. "Newbie" is a rank, not a slight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts