2 ftp daemons, 2 ip addresses, 1 nic

Hello world,

I have to have to different ftp daemons running on one single machine via one single nic, but two ip addresses (which doesn't work).

Here's my setup (ip addresses "faked"):

Ips are assigned, ifconfig reads:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:30:48:8b:fc:0e
inet 111.111.111.1 netmask 0xffffff00 broadcast 111.111.111.255
inet 111.111.111.2 netmask 0xffffffff broadcast 111.111.111.2
inet 111.111.111.3 netmask 0xffffffff broadcast 111.111.111.3
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active

Server is pingable and telnetable on all three ip addresses.

I would like to have pure-ftpd using 111.111.11.1 and listen to port 21. This works fine.

The second ftpd has to be proftpd and I want to make it listen to 111.111.111.2 on port 60.

proftpd (without tls and mysql stuff) reads
ServerName "111.111.111.2"
ServerIdent on "111.111.111.2"
ServerType standalone

DisplayLogin /usr/local/etc/proftpd.display.login
IdentLookups off
UseReverseDNS on
DebugLevel 1
Port 60
Umask 022
MaxInstances 70
User nobody
Group nogroup
DefaultRoot ~
RequireValidShell off
AuthPAM off
AllowOverwrite on

What happens now is:
a) I cannot telnet 111.111.111.2 60
b) If I telnet 111.111.111.1 60, I receive the answer "220 111.111.111.2"

Any idea what went wrong?

I appreciate your help.

Regards,
Wolfgang
 
I am sorry, I cannot edit my post:

I have to have two different ftp daemons...

and

I would like to have pure-ftpd using 111.111.111.1 and listen to port 21.
 
Back
Top