Add a startup script for ftp-proxy(8) now that it is no longer started as
part of inetd(8). Approved by: re (bmah) Reviewed by: freebsd-rc (a while back) Reminded by: kevlo
This commit is contained in:
parent
6be87061f8
commit
cb3ab5e31a
@ -154,6 +154,8 @@ pflog_enable="NO" # Set to YES to enable packet filter logging
|
|||||||
pflog_logfile="/var/log/pflog" # where pflogd should store the logfile
|
pflog_logfile="/var/log/pflog" # where pflogd should store the logfile
|
||||||
pflog_program="/sbin/pflogd" # where the pflogd program lives
|
pflog_program="/sbin/pflogd" # where the pflogd program lives
|
||||||
pflog_flags="" # additional flags for pflogd
|
pflog_flags="" # additional flags for pflogd
|
||||||
|
ftpproxy_enable="NO" # Set to YES to enable ftp-proxy(8) for pf
|
||||||
|
ftpproxy_flags="" # additional flags for ftp-proxy(8)
|
||||||
pfsync_enable="NO" # Expose pf state to other hosts for syncing
|
pfsync_enable="NO" # Expose pf state to other hosts for syncing
|
||||||
pfsync_syncdev="" # Interface for pfsync to work through
|
pfsync_syncdev="" # Interface for pfsync to work through
|
||||||
pfsync_syncpeer="" # IP address of pfsync peer host
|
pfsync_syncpeer="" # IP address of pfsync peer host
|
||||||
|
17
etc/rc.d/ftp-proxy
Normal file
17
etc/rc.d/ftp-proxy
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
# PROVIDE: ftp-proxy
|
||||||
|
# REQUIRE: DAEMON pf
|
||||||
|
#
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name="ftpproxy"
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
command="/usr/sbin/ftp-proxy"
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
@ -24,7 +24,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd June 11, 2007
|
.Dd September 3, 2007
|
||||||
.Dt RC.CONF 5
|
.Dt RC.CONF 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -831,6 +831,24 @@ Empty by default.
|
|||||||
This variable contains additional flags passed to the
|
This variable contains additional flags passed to the
|
||||||
.Xr pflogd 8
|
.Xr pflogd 8
|
||||||
program.
|
program.
|
||||||
|
.It Va ftpproxy_enable
|
||||||
|
.Pq Vt bool
|
||||||
|
Set to
|
||||||
|
.Dq Li NO
|
||||||
|
by default.
|
||||||
|
Setting this to
|
||||||
|
.Dq Li YES
|
||||||
|
enables
|
||||||
|
.Xr ftp-proxy 8
|
||||||
|
which supports the
|
||||||
|
.Xr pf 4
|
||||||
|
packet filter in translating ftp connections.
|
||||||
|
.It Va ftpproxy_flags
|
||||||
|
.Pq Vt str
|
||||||
|
Empty by default.
|
||||||
|
This variable contains additional flags passed to the
|
||||||
|
.Xr ftp-proxy 8
|
||||||
|
program.
|
||||||
.It Va pfsync_enable
|
.It Va pfsync_enable
|
||||||
.Pq Vt bool
|
.Pq Vt bool
|
||||||
Set to
|
Set to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user