Hi folks!
I spent two weeks now trying to get an FTP connection to ftp.freebsd.org working without
Resulting in logs from
I did what Peter N.M. Hansteen writes in The Book of PF, 2nd Ed., on page 34
Of course I also started working on the almost 700 results from http://www.google.de/search?lr=&hl=de&as_qdr=all&q=pf+ftp-proxy+solved++site:forums.freebsd.org but found no working solution for FTP sessions from the same system where PF (and ftp-proxy) are installed on.
So the neat little question is: how do real FreeBSD professionals do FTP connections from their PF systems?
PS: Don't ask for any configuration unless you can offer a working one!
I spent two weeks now trying to get an FTP connection to ftp.freebsd.org working without
pfctl -d
.
Code:
> ftp -a ftp.freebsd.org
Trying 193.162.146.4:21 ...
Connected to ftp.freebsd.org.
220 beastie.tdk.net FTP server (Version 6.00LS) ready.
331 Guest login ok, send your email address as password.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd pub
250 CWD command successful.
ftp> ls
229 Entering Extended Passive Mode (|||51788|)
ftp: Can't connect to `193.162.146.4:51788': Operation not permitted
200 PORT command successful.
421 Service not available, remote server timed out. Connection closed.
ftp>
Resulting in logs from
tcpdump -ne -tttt -r /var/log/pflog
like this:
Code:
2013-08-26 17:06:55.433719 rule 1..16777216/0(match): block out on ext_if: xxx.xxx.xxx.xxx.32030 > 204.152.184.73.26581
: Flags [S], seq 3347934968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS[|tcp]>
I did what Peter N.M. Hansteen writes in The Book of PF, 2nd Ed., on page 34
and ended up like a complete idiot, having read the manuals on FTP, ftp-proxy, pf.conf, etc. in addition meantime.Enabling FTP transfers through your gateway is amazingly simple, thanks to
the FTP proxy program included in the OpenBSD [and FreeBSD] base system. The program
is called—you guessed it—ftp-proxy.
Of course I also started working on the almost 700 results from http://www.google.de/search?lr=&hl=de&as_qdr=all&q=pf+ftp-proxy+solved++site:forums.freebsd.org but found no working solution for FTP sessions from the same system where PF (and ftp-proxy) are installed on.
So the neat little question is: how do real FreeBSD professionals do FTP connections from their PF systems?
PS: Don't ask for any configuration unless you can offer a working one!