I recently upgraded (from 3.7) to 4.2 and ftp-proxy is no longer run from inetd. What I'm curious about is how to start multiple instances...
For example, I have 2 machines I want to forward FTP traffic to which is behind my pf firewall:
--- from /etc/rc.conf.local ---
Code:
ftpproxy_flags="-R 10.1.1.14 -p 21 -b 63.231.0.14"
ftpproxy_flags="-R 10.1.1.53 -p 21 -b 63.231.0.53"
I can manually start both instances, but if I reboot the machine, or run the /etc/rc script manually, only the last instance comes up:
Code:
fw# lsof -ni:21
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ftp-proxy 23505 proxy 3u IPv4 0xfffffe8009fd5000 0t0 TCP 63.231.0.53:ftp (LISTEN)
fw#
What's the proper way to accomplish this? I'm hoping I don't have to hack a script together to do this. inetd worked great in this instance, and I hesitate saying that because I'm not a big inetd fan in general
Any help appreciated!
(formally known as -- ariston)