Bug 143085 - ftp-proxy(8) rc(8) with multiple instances
Summary: ftp-proxy(8) rc(8) with multiple instances
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-22 16:00 UTC by Marcelo Rossi
Modified: 2024-12-24 17:06 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.25 KB, patch)
2010-01-22 16:00 UTC, Marcelo Rossi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Rossi 2010-01-22 16:00:09 UTC
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:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-01-23 00:42:25 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:38 UTC
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
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:40:39 UTC
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>