Re: How to make FTP work from the firewall system?

2010-03-18 Thread Vadim Zhukov
On 17 March 2010 c. 00:43:34 Simon Perreault wrote: J.C. Roberts wrote: match out on ? proto tcp from ? to any port ftp \ rdr-to 127.0.0.1 port 8021 You can't do that. rdr-to only works on input. Without testing it, I don't know how the potential loop can be avoided, or if it

Re: How to make FTP work from the firewall system?

2010-03-18 Thread Dave Anderson
On Thu, 18 Mar 2010, Vadim Zhukov wrote: On 17 March 2010 c. 00:43:34 Simon Perreault wrote: J.C. Roberts wrote: match out on ? proto tcp from ? to any port ftp \ rdr-to 127.0.0.1 port 8021 You can't do that. rdr-to only works on input. Without testing it, I don't know how the

Re: How to make FTP work from the firewall system?

2010-03-17 Thread Daniel Gracia Garallar
From the FAQ, read: http://www.openbsd.org/faq/pf/ftp.html Regards, Dani El 16/03/2010 4:49, Dave Anderson escribis: I'm configuring a notebook which will use PF to protect itself from the environments in which I use it, and would like to have FTP 'just work' on it -- whether it's from an

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Simon Perreault
On 03/15/2010 11:49 PM, Dave Anderson wrote: I'm configuring a notebook which will use PF to protect itself from the environments in which I use it, and would like to have FTP 'just work' on it -- whether it's from an explicit FTP command, from a browser, or embedded in some other program or

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Dave Anderson
On Tue, 16 Mar 2010, Simon Perreault wrote: On 03/15/2010 11:49 PM, Dave Anderson wrote: I'm configuring a notebook which will use PF to protect itself from the environments in which I use it, and would like to have FTP 'just work' on it -- whether it's from an explicit FTP command, from a

Re: How to make FTP work from the firewall system?

2010-03-16 Thread J.C. Roberts
On Tue, 16 Mar 2010 12:39:01 -0400 (EDT) Dave Anderson d...@daveanderson.com wrote: I see two options: 1. pass out This can work for passive FTP if one is willing to allow outbound connections to all non-privileged ports, but is useless for active FTP. Yes. 2. ftp-proxy(8) Unless

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Dave Anderson
On Tue, 16 Mar 2010, Dave Anderson wrote: On Tue, 16 Mar 2010, Simon Perreault wrote: On 03/15/2010 11:49 PM, Dave Anderson wrote: I'm configuring a notebook which will use PF to protect itself from the environments in which I use it, and would like to have FTP 'just work' on it -- whether

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Gaby Vanhegan
On 16 Mar 2010, at 17:24, Dave Anderson wrote: I'm configuring a notebook which will use PF to protect itself from the environments in which I use it, and would like to have FTP 'just work' on it -- whether it's from an explicit FTP command, from a browser, or embedded in some other program

Re: How to make FTP work from the firewall system?

2010-03-16 Thread J.C. Roberts
On Tue, 16 Mar 2010 13:24:21 -0400 (EDT) Dave Anderson d...@daveanderson.com wrote: A clarification: I do know that ftp-proxy can be used as an explicit proxy as well as transparently via PF redirection, and that the FTP_PROXY environment variable can be set to specify an explict proxy for

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Stuart Henderson
On 2010-03-16, J.C. Roberts list-...@designtools.org wrote: On Tue, 16 Mar 2010 12:39:01 -0400 (EDT) Dave Anderson d...@daveanderson.com wrote: I see two options: 1. pass out This can work for passive FTP if one is willing to allow outbound connections to all non-privileged ports, but is

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Stuart Henderson
On 2010-03-16, Dave Anderson d...@daveanderson.com wrote: I do notice that 4.7 has a new divert-to-userland ability that looks like it could be used to solve this problem properly I think the proxy code involved with this would be considerably more complicated than the current method (even

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Dave Anderson
On Tue, 16 Mar 2010, Gaby Vanhegan wrote: On 16 Mar 2010, at 17:24, Dave Anderson wrote: I'm configuring a notebook which will use PF to protect itself from the environments in which I use it, and would like to have FTP 'just work' on it -- whether it's from an explicit FTP command, from a

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Stuart Henderson
On 2010-03-16, Stuart Henderson s...@spacehopper.org wrote: On 2010-03-16, Dave Anderson d...@daveanderson.com wrote: I do notice that 4.7 has a new divert-to-userland ability that looks like it could be used to solve this problem properly I think the proxy code involved with this would be

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Dave Anderson
On Tue, 16 Mar 2010, Stuart Henderson wrote: On 2010-03-16, J.C. Roberts list-...@designtools.org wrote: On Tue, 16 Mar 2010 12:39:01 -0400 (EDT) Dave Anderson d...@daveanderson.com wrote: I see two options: 1. pass out This can work for passive FTP if one is willing to allow outbound

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Simon Perreault
J.C. Roberts wrote: match out on ? proto tcp from ? to any port ftp \ rdr-to 127.0.0.1 port 8021 You can't do that. rdr-to only works on input. Without testing it, I don't know how the potential loop can be avoided, or if it even needs to be avoided (note the match out

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Dave Anderson
On Tue, 16 Mar 2010, Stuart Henderson wrote: On 2010-03-16, Stuart Henderson s...@spacehopper.org wrote: On 2010-03-16, Dave Anderson d...@daveanderson.com wrote: I do notice that 4.7 has a new divert-to-userland ability that looks like it could be used to solve this problem properly I think

Re: How to make FTP work from the firewall system?

2010-03-16 Thread Adriaan
On Tue, Mar 16, 2010 at 4:49 AM, Dave Anderson d...@daveanderson.com wrote: I'm configuring a notebook which will use PF to protect itself from the environments in which I use it, and would like to have FTP 'just work' on it -- whether it's from an explicit FTP command, from a browser, or

How to make FTP work from the firewall system?

2010-03-15 Thread Dave Anderson
I'm configuring a notebook which will use PF to protect itself from the environments in which I use it, and would like to have FTP 'just work' on it -- whether it's from an explicit FTP command, from a browser, or embedded in some other program or script. Unfortunatly there doesn't seem to be any