Re: Problem with ftp-proxy

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kevin Cheng
Date: Friday, September 14, 2007 - 2:21 pm

For 4.0:

------------------
/etc/inetd.conf:
ftp-proxy       stream  tcp     nowait  root    /usr/sbin/ftp-proxy
ftp-proxy -m 55000 -t 180

------------------
/etc/pf.conf:

wired_if="xl0"
wireless_if="{ ral0, xl1 }"
localhost_ip="127.0.0.1"

# ftp-proxy
nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
nat on $wired_if from !($wired_if) -> ($wired_if:0)
rdr pass on $wireless_if proto tcp to port ftp -> $localhost_ip port 8021
anchor "ftp-proxy/*" 


# ftp-proxy [passive ftp]
pass in  quick on $wired_if inet proto tcp from any to $wired_if user proxy
keep state
pass out quick on $wired_if inet proto tcp from $wired_if to any port 21
flags S/AUPRFS modulate state
pass out quick on $wired_if inet proto tcp from $wired_if to any port > 1024
flags S/AUPRFS modulate state

# ftp-proxy [active ftp] 
pass out quick on $wired_if inet proto tcp from $wired_if to any port 20
flags S/AUPRFS modulate state
pass in on $wired_if inet proto tcp from any port 20 to $wired_if port 55000

 

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problem with ftp-proxy , Jason Calhoun, (Fri Sep 14, 11:40 am)
Re: Problem with ftp-proxy, Jake Conk, (Fri Sep 14, 1:37 pm)
Re: Problem with ftp-proxy, Darren Spruell, (Fri Sep 14, 2:01 pm)
Re: Problem with ftp-proxy, Kevin Cheng, (Fri Sep 14, 2:21 pm)