mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
A ftp proxy for firewalled connections,using pf's anchors and rules.
WWW: http://www.openbsd.org/ PR: ports/110011 Submitted by: Christian Ludwig
This commit is contained in:
parent
b9cb98847e
commit
48381ba2bc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186785
@ -21,6 +21,7 @@
|
||||
SUBDIR += filezilla
|
||||
SUBDIR += fmirror
|
||||
SUBDIR += frox
|
||||
SUBDIR += ftp-proxy
|
||||
SUBDIR += ftp-tls
|
||||
SUBDIR += ftpcopy
|
||||
SUBDIR += ftpcube
|
||||
|
31
ftp/ftp-proxy/Makefile
Normal file
31
ftp/ftp-proxy/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# New ports collection makefile for: ftp-proxy
|
||||
# Date created: 4. March 2007
|
||||
# Whom: Christian Ludwig
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ftp-proxy
|
||||
PORTVERSION= 4.0p0
|
||||
CATEGORIES= ftp
|
||||
MASTER_SITES= http://www.chrissicool.net/projects/ftp-proxy/distfiles/
|
||||
|
||||
MAINTAINER= chrissicool@chrissicool.net
|
||||
COMMENT= A port of OpenBSD's ftp-proxy
|
||||
|
||||
LIB_DEPENDS= event:${PORTSDIR}/devel/libevent
|
||||
|
||||
MAN8= ftp-proxy.8
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
PLIST_FILES= sbin/ftp-proxy \
|
||||
etc/rc.d/ftp-proxy.sh
|
||||
|
||||
CFLAGS+= -I${PREFIX}/include
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/ftp-proxy ${PREFIX}/sbin
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/ftp-proxy.sh ${PREFIX}/etc/rc.d
|
||||
${INSTALL_MAN} ${WRKSRC}/ftp-proxy.8.gz ${PREFIX}/man/man8
|
||||
|
||||
.include <bsd.port.mk>
|
3
ftp/ftp-proxy/distinfo
Normal file
3
ftp/ftp-proxy/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (ftp-proxy-4.0p0.tar.gz) = 1defe7411ed13966910d1ec25784db86
|
||||
SHA256 (ftp-proxy-4.0p0.tar.gz) = cabd125a011d6548f40c72e29a254e71decde306f55ff5d037018cb33901867f
|
||||
SIZE (ftp-proxy-4.0p0.tar.gz) = 13381
|
32
ftp/ftp-proxy/files/ftp-proxy.sh
Normal file
32
ftp/ftp-proxy/files/ftp-proxy.sh
Normal file
@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: ftp-proxy
|
||||
# REQUIRE: DAEMON
|
||||
#
|
||||
# NOTE for FreeBSD 5.0+:
|
||||
# If you want this script to start with the base rc scripts
|
||||
# move ftp-proxy.sh to /etc/rc.d/ftp-proxy
|
||||
# Define these ftp-proxy_* variables in one of these files:
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
# /etc/rc.conf.d/ftp-proxy
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
#
|
||||
|
||||
ftpproxy_enable=${ftp-proxy_enable:-"NO"} # Enable ftp-proxy
|
||||
ftpproxy_flags=${ftp-proxy_flags:-""} # Flags to ftp-proxy program
|
||||
#ftpproxy_program="%%PREFIX%%/sbin/ftp-proxy" # Location of ftp-proxy
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="ftp-proxy"
|
||||
rcvar=`set_rcvar`
|
||||
command="%%PREFIX%%/sbin/${name}"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
run_rc_command "$1"
|
3
ftp/ftp-proxy/pkg-descr
Normal file
3
ftp/ftp-proxy/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
A ftp proxy for firewalled connections,using pf's anchors and rules.
|
||||
|
||||
WWW: http://www.openbsd.org/
|
23
ftp/ftp-proxy/pkg-message
Normal file
23
ftp/ftp-proxy/pkg-message
Normal file
@ -0,0 +1,23 @@
|
||||
===================================================================
|
||||
To make use of the proxy, pf.conf(5) needs the following rules. All
|
||||
anchors are mandatory. Adjust the rules as needed.
|
||||
|
||||
In the NAT section:
|
||||
|
||||
nat-anchor "ftp-proxy/*"
|
||||
rdr-anchor "ftp-proxy/*"
|
||||
rdr pass on $int_if proto tcp from $lan to any port 21 -> \
|
||||
127.0.0.1 port 8021
|
||||
|
||||
In the rule section:
|
||||
|
||||
anchor "ftp-proxy/*"
|
||||
pass out proto tcp from $proxy to any port 21 keep state
|
||||
|
||||
Add the following line to your /etc/rc.conf to enable the proxy on
|
||||
startup:
|
||||
|
||||
ftpproxy_enable="YES"
|
||||
|
||||
Please consult the man page ftp-proxy(8) for more information.
|
||||
===================================================================
|
Loading…
Reference in New Issue
Block a user