Port forwarding, multiple IP

From: Fritz (notarealemail_at_at.all)
Date: 04/24/04

  • Next message: Richard E. Silverman: "Re: Port forwarding, multiple IP"
    Date: Sat, 24 Apr 2004 18:12:12 +1000
    
    

    I am quite confidently using tunnels to enable me to do some work from
    home but have had some problems with the -b option.

    I have a server with multiple RIP addresses & services already running
    (mainly map).

    The map server is bound to 10.0.0.4.

    What I want though is to tunnel my work map connection into my server
    and bind it to 10.0.0.5 and have it accessible on the local lan.

    I have tried the following command line:

    ssh -b 10.0.0.5 -L 143:imapserver:143 -fgN username@server

    But it still tries to bind to all interfaces, this results in a error
    that it cannot bind to that address.

    Am I doing this correctly or is my understanding of the -b option incorrect?

    It also works fine when I shutdown the locally running map server.

    Is there a way for this to work or will I need to use a different local
    port and some iptables trickery.


  • Next message: Richard E. Silverman: "Re: Port forwarding, multiple IP"