Connecting to IPv6-address via IPv4-Tunnel doesn't work on command line

Advertisement

Jens Lehmann
Donor
Joined:
Posts:
2
Location:
Germany

Connecting to IPv6-address via IPv4-Tunnel doesn't work on command line

Hi,

There is an issue with parsing an IPv6 address on the command line if a tunnel is used at the same time. It does work within a normal WinSCP-stored-sesssion, but it doesn't work using the /rawsettings switch for the tunnel. After the connection dialog is shown, it stops with an error message "Network error: Connection to 127.0.0.1 refused".

WinSCP v5.11
Tested on Win7 / Win10

I used the following command line:
WinSCP.exe sftp://<user>:<pwd>@[<IPv6-address>] /rawsettings Tunnel=1 TunnelHostName=<IPv4-Address> TunnelUserName=<user> TunnelPasswordPlain=<pwd>

I've a linux VM which has an IPv4 and IPv6 address. It's easily reproducible this way. Attached are two debug-logfiles. One does show how the connection is failing if it is started via command line, and the second logfile is the same connection-setup just as a stored session (which is working correctly).

If more details are needed, just let me know.
Thanks in advance.

Jens
  • winscp-debug-IPv4Tunnel-to-IPv6Taget.zip (10.01 KB, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,658
Location:
Prague, Czechia

Re: Connecting to IPv6-address via IPv4-Tunnel doesn't work on command line

Thanks for your report.

This issue has been added to the tracker:
https://winscp.net/tracker/1553

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.

Reply with quote

Jens Lehmann
Donor
Joined:
Posts:
2
Location:
Germany

Re: Connecting to IPv6-address via IPv4-Tunnel doesn't work on command line

Hi Martin,

It works like intended now.
Thank you very much .. as well for providing the fix so quickly :)

Jens

Reply with quote

Advertisement

You can post new topics in this forum