2012/6/12 Илья Шипицин <chipits...@gmail.com>:
> Hello!
>
> is anybody running multiple instances of ftp-proxy in reverse mode?
> I'd afraid of anchor "ftp-proxy/*", ftp-proxy doesn't allow to specify
> anchor, also, many instances of ftp-proxy can break each others anchors.

No, they will not, see prepare_commit() in
/usr/src/usr.sbin/ftp-proxy/filter.c:

 snprintf(an, PF_ANCHOR_NAME_SIZE, "%s/%d.%d", FTP_PROXY_ANCHOR,
            getpid(), id);

> can somebody provide me with example of multiple ftp-proxies ?

I've done it simple. In /etc/rc.local:

if [ X"${ftpproxy2_flags}" != X"NO" ]; then
        echo -n ' ftp-proxy2';          /usr/sbin/ftp-proxy
${ftpproxy2_flags}
fi

In /etc/rc.conf.local:

ftpproxy2_flags="-p 8022 -R 172.27.4.2 -v"

That's all.

Reply via email to