Re: problem with port forwarding

From: Georg D. (georg_at_nospam)
Date: 12/03/03


Date: Wed, 03 Dec 2003 20:03:35 GMT


"Darren Tucker" <dtucker@dodgy.net.au> schrieb im Newsbeitrag
news:bqj9fm$a7f$1@gate.dodgy.net.au...
> In article <HP2zb.71941$361.29597@news.chello.at>,
> Georg D. <georg@nospam> wrote:
> [port forwarding]
> >- the server sees "connection refused" (?), and closes the channel
> >
> >- if I try connection to the same local port on the server withing
> >the same ssh session with telnet - it works
>
> Try forwarding to "127.0.0.1:3306" rather than "localhost:3306".
>
> OpenSSH is IPv6-aware and it might be trying to connect via IPv6
> while your application is only listening on IPv4. Using a numeric
> IPv4 loopback address will (should?) make it connect via IPv4. You can
> also restart your sshd with "-4" to make is use IPv4 only.

that helped - thanks alot!
I wonder if it would help to add localhost as 127.0.0.1 in hosts and
on the dns server. Is this a good idea?

thanks,
Georg



Relevant Pages

  • Re: Security needed for basic home computer?
    ... Sendmail quite often is listening as a daemon on localhost only, ... bind it to localhost only and work through ... > appreciate any follow up clarification which you may have time to offer. ...
    (comp.os.linux.security)
  • Re: Has my router failed?
    ... but it's not on the router. ... This is IPv6, not the IPv4 ... Network time protocol listening four different ways on IPv4. ...
    (comp.os.linux.networking)
  • Re: Has my router failed?
    ... LOL oops, well spotted. ... This is IPv6, not the IPv4 ... you are listening to, but it's likely something that vaguely looks like ...
    (comp.os.linux.networking)
  • Re: Security needed for basic home computer?
    ... > How do I know whether sendmail is doing more than listening on localhost ... > stage of ignorance I do not even know what to do with an iptables script. ...
    (comp.os.linux.security)
  • Re: Your favorite 70s hits......
    ... I remember riding around in Mom's car in the '70s listening to her music ... Never got much into disco although there ARE a few tracks from that era ... Most of those bands were NOT cover boy bands and pretty boys. ... Alot of those tracks were really good ...
    (rec.music.makers.percussion)