Thursday, January 18, 2018

Re: Start 2 instances of ftp-proxy one for ftp one for reverse proxy

Le 18/01/2018 à 10:37, Mathieu BLANC a écrit :
> Le 17/01/2018 à 22:24, Mik J a écrit :
>> Hello,
>> I'd like my firewall to start two instances one for ftp proxy and one
>> for ftp proxy.So far I have in rc.confftpproxy_flags="-D7 -v -p 8021"
>>
>> I can run manually/usr/sbin/ftp-proxy -D7 -v -R 10.1.1.1 -p21 -b 3and
>> the reverse proxy works
>> But I would like these to instance to start automatically
>> I tried this but it didn't
>> workhttp://misc.openbsd.narkive.com/Highrohk/multiple-instances-of-ftp-proxy
>> Thank you
>>
>
> Hello,
>
> # ls -l /etc/rc.d/ftpproxy_xxxx
> [...] /etc/rc.d/ftpproxy_xxxx -> /etc/rc.d/ftpproxy
> # ls -l /etc/rc.d/ftpproxy_yyyy
> [...] /etc/rc.d/ftpproxy_yyyy -> /etc/rc.d/ftpproxy
>
> # grep ftp /etc/rc.conf.local
> ftpproxy_xxxx_flags=-R 172.16.129.10 -p 8035
> ftpproxy_yyyy_flags=-R 172.16.129.24 -p 8036
>
> (or whatever options you need)
>
> I was pretty sure i read this in man pages but i don't find where at
> the moment.

man rcctl :

The recommended way to run a second copy of a given daemon for a
different purpose is to create a symbolic link to its rc.d(8) control
script:

# ln -s /etc/rc.d/snmpd /etc/rc.d/snmpd6
# rcctl set snmpd6 status on
# rcctl set snmpd6 flags -D addr=2001:db8::1234
# rcctl start snmpd6

No comments:

Post a Comment