We can do inbound or outbound proxy of ftp connections with ftp-proxy(8). But the /etc/rc.d/ftp-proxy just allow one instance of the proxy. If we need to run an inbound **AND** outbound proxy, we need two instances of ftp-proxy. So I have modified the /etc/rc.d/ftpproxy and /etc/rc.conf to allow more than one instance. We can add at /etc/rc.conf some variables: ftpproxy_exec="exec1 exec2 execN" ftpproxy_exec1="" ftpproxy_exec2=-p8010 -R ftpserverhost ftpproxy_execN="-p8020" The var 'ftpproxy_exec' is a list with the instance names, the script (/etc/rc.d/ftp-proxy) will search for the vars 'ftpproxy_{LIST_ITEM}' The 'ftpproxy_{LIST_ITEM}' will contain the same thing that normally contains the 'ftpproxy_flags' var, or a empty string. Fix: Patch attached with submission follows:
Responsible Changed From-To: freebsd-bugs->freebsd-rc Over to maintainer(s).
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>