Re: PF and ftp: to use or not to use ftp-proxy ?

2012-06-27 Thread Stuart Henderson
On 2012-06-26, Илья Шипицин wrote: > match in inet proto tcp from any port = ftp-data to $external port > 1024:65535 rdr-to $internal port 1024:65535 You know people can choose their own source port number? It's just as safe to do "from any to $external port 1024:65535"...

Re: PF and ftp: to use or not to use ftp-proxy ?

2012-06-26 Thread Christopher Zimmermann
On Tue, 26 Jun 2012 14:51:35 +0600 Илья Шипицин wrote: > Hello! > > I managed to get ftp through PF working either without ftp-proxy ... > > match in inet proto tcp from any to $external port = ftp rdr-to > $internal port 21 > match in inet proto tcp from any port = ftp-data to $external port > 1

PF and ftp: to use or not to use ftp-proxy ?

2012-06-26 Thread Илья Шипицин
Hello! I managed to get ftp through PF working either without ftp-proxy ... match in inet proto tcp from any to $external port = ftp rdr-to $internal port 21 match in inet proto tcp from any port = ftp-data to $external port 1024:65535 rdr-to $internal port 1024:65535 match in inet proto tcp from

Re: pf and ftp-proxy active/passive problems

2010-07-03 Thread umaxx
On Thu, 3 Jun 2010 23:43:29 +0300 Teemu Rinta-aho wrote: > On Jun 3, 2010, at 11:26 PM, Teemu Rinta-aho wrote: > > I call it a day. > > Or maybe not. > > Case closed. I found out that even though I followed > the instructions and inserted the required lines > to my pf.conf as per ftp-proxy man pa

Re: pf and ftp-proxy active/passive problems

2010-06-03 Thread Teemu Rinta-aho
On Jun 3, 2010, at 11:26 PM, Teemu Rinta-aho wrote: > I call it a day. Or maybe not. Case closed. I found out that even though I followed the instructions and inserted the required lines to my pf.conf as per ftp-proxy man page, they were in a wrong place. Now when _both_ the anchor and the ftp po

Re: pf and ftp-proxy active/passive problems

2010-06-03 Thread Teemu Rinta-aho
On Jun 3, 2010, at 9:28 PM, Teemu Rinta-aho wrote: > The big problem hindering further investigation is that I cannot > print out the pf rules in the "ftp-proxy/*" anchor. What is the > correct syntax? "pfctl -a "ftp-proxy/*" -sr"? That prints nothing! OK I figured the syntax out by trial-and-erro

Re: pf and ftp-proxy active/passive problems

2010-06-03 Thread Teemu Rinta-aho
this: anchor "*" all { pfctl: DIOCGETRULES: Invalid argument } I think I need to figure that out before spending my (our) time on anything else. > BTW, we have examples of Pf and ftp-proxy on our site; see signature. Yes I have already found it some time ago. Very helpful. Thank yo

Re: pf and ftp-proxy active/passive problems

2010-06-03 Thread Calomel Org
ge on the machine behind the firewall. Once you have a reliable set of test responses you should have a better idea of where the problem is. Make sense? BTW, we have examples of Pf and ftp-proxy on our site; see signature. I checked out your pf.conf. If you have time you may want to try putting y

Re: pf and ftp-proxy active/passive problems

2010-06-02 Thread Teemu Rinta-aho
On Jun 3, 2010, at 3:51 AM, Calomel Org wrote: > Teemu, > > Are you sure the ftp server you are connecting to supports active and > passive ftp? You may want to try your test against ftp.openbsd.org. That is a very good point. I thought so as I got both modes working from different nodes, but I a

Re: pf and ftp-proxy active/passive problems

2010-06-02 Thread Calomel Org
Teemu, Are you sure the ftp server you are connecting to supports active and passive ftp? You may want to try your test against ftp.openbsd.org. This is a linux machine behind a pf firewall (openbsd v4.7) using ftp-proxy. Both active (PORT) and passive listings seem to work. $ ftp ftp.openbsd.org

pf and ftp-proxy active/passive problems

2010-06-02 Thread Teemu Rinta-aho
Hi all, (First, sorry if you receive this e-mail multiple times, I changed my smtp server as the first one doesn't seem to get mails to this list.) my firewall (OpenBSD 4.7) is running packet filter with NAT and tcp-proxy to provide FTP for hosts in the network behind the firewall/NAT. The probl

Problems with PF and ftp-proxy with 2 links

2006-03-01 Thread Giancarlo Razzolini
Hi folks, I'm having a bad time doing a setup that is a little complex. I do have 2 ADSL links, both working. And i have and DMZ and a LAN. The setup is this: LAN net: 10.0.0.0/24 DMZ net: 10.1.1.0/24 LINK#1 NET: 192.168.200.0/24 LINK#1 IP: 192.168.200.1 LINK#1 GATEWAY: 192.168.200.254 LIN

Re: pf and ftp

2006-02-27 Thread steven mestdagh
On Mon, Feb 27, 2006 at 03:40:17PM +0100, vladimir plotnikov wrote: > Hello! > > Sorry for stupid question. > part of pf.conf: > > pass in on $ext_if proto tcp from any to any port 21 keep state > pass in on $ext_if proto tcp from any to any port > 49151 keep state > ... > block return-rst i

Re: pf and ftp

2006-02-27 Thread vladimir plotnikov
Sorry, of course, this line exists in my config: @4 pass in quick inet proto tcp from any to my.ip.address.com port = ftp-data keep state [ Skip steps: i=44 d=50 f=44 p=44 sa=end sp=end da=12 ] [ queue: qname= qid=0 pqname= pqid=0 ] On 2/27/06, edgarz <[EMAIL PROTECTED]> wrote: > hi! > you for

Re: pf and ftp

2006-02-27 Thread edgarz
hi! you forgot port 20 (ftp-data) vladimir plotnikov wrote: Hello! Sorry for stupid question. part of pf.conf: pass in on $ext_if proto tcp from any to any port 21 keep state pass in on $ext_if proto tcp from any to any port > 49151 keep state ... block return-rst in log on $ext_if proto

pf and ftp

2006-02-27 Thread vladimir plotnikov
Hello! Sorry for stupid question. part of pf.conf: pass in on $ext_if proto tcp from any to any port 21 keep state pass in on $ext_if proto tcp from any to any port > 49151 keep state ... block return-rst in log on $ext_if proto tcp all Part of log file: Feb 27 14:56:46.142988 rule 59/(mat

Re: nat, pf, and ftp

2006-02-18 Thread Martin Schröder
On 2006-02-18 16:12:39 -0500, David Higgs wrote: > Any further ideas? Check the example. It uses ftp-proxy(8) Best Martin PS: http://en.wikipedia.org/wiki/Top-posting -- http://www.tm.oneiros.de

Re: nat, pf, and ftp

2006-02-18 Thread Stuart Henderson
On 2006/02/18 16:12, David Higgs wrote: > The problem is that with passive mode, the client is actively > attempting to connect to the server. Port numbers on either end > cannot be predicted Well, that depends somewhat on your ftp server. Most modern ones allow you to restrict the range of ports

Re: nat, pf, and ftp

2006-02-18 Thread David Higgs
I'm beginning to wonder if I'm being dense and missing something brutally simple. I've looked at the pf FAQ, payed special attention to the FTP section, and even used identical configuration without success. The problem is that with passive mode, the client is actively attempting to connect to th

Re: nat, pf, and ftp

2006-02-18 Thread Darrin Chandler
David Higgs wrote: After reading the man pages for pf.conf and ftp-proxy, it's not 100% clear to me how I should go about supporting ftp. I have a basic 2-nic obsd box doing nat for my internal network, and run ftp-proxy with the -n flag. The relevant portions of my pf.conf are shown below:

nat, pf, and ftp

2006-02-18 Thread David Higgs
After reading the man pages for pf.conf and ftp-proxy, it's not 100% clear to me how I should go about supporting ftp. I have a basic 2-nic obsd box doing nat for my internal network, and run ftp-proxy with the -n flag. The relevant portions of my pf.conf are shown below: set skip on lo0 nat on