#162 SLiRP: FTP active failed with "500 Illegal PORT command"

v0.7.x (release)
closed-fixed
Henry N.
5
2015-03-02
2009-09-02
Henry N.
No

FTP "active" connections via SLiRP failed with
"500 Illegal PORT command"
Or similar messages, that only your local ip address can use for PORT command.

This depends on the bug, that SLiRP sends 10.0.2.2 as the host ip addresses to the FTP server.

Please read details from entry in help forum:
https://sourceforge.net/forum/message.php?msg_id=7602945

A good reference about FTP connections found here:
http://slacksite.com/other/ftp.html#active

Discussion

  • Henry N.
    Henry N.
    2009-09-02

    • status: open --> open-fixed
     
  • Henry N.
    Henry N.
    2009-09-02

    FTP "active" was not working, since version 0.7.1 (so I found from code history).

    The PORT command have fixed by using "our_addr" now.

    Now, we have the old small problem again: If you have more as one active network interfaces, for example the real ethernet connection (Internet) and a tun/tap (coLinux or VPN), then SLiRP will detect only the first tcp/ip address as your host address. That can be wrong some times. For that cases, please add an environment variable COLINUX_HOST_IPADDR with your current ipaddress, for example
    set COLINUX_HOST_IPADDR=192.168.0.100

    Please update the SLiRP daemon from:
    http://www.henrynestler.com/colinux/releases/0.7.4/update/colinux-slirp-0.7.4-20090902.zip

    Changes are committed to SVN as revision 1260 and 1261.

     
  • Henry N.
    Henry N.
    2009-10-31

    Version 0.7.5 has fixed this bug.

     
  • Henry N.
    Henry N.
    2009-10-31

    • status: open-fixed --> closed-fixed