--- Juan Miscaro <[EMAIL PROTECTED]> wrote:

> I am using OpenBSD 4.0 and I am counting bytes with labels for most
> protocols but with ftp-proxy I do not know how to proceed.  How can I
> do this?  These are the rules I have in pf.conf:
> 
> 
>   nat-anchor "ftp-proxy/*"
>   rdr-anchor "ftp-proxy/*"
> 
>   rdr pass on $INT \
>         inet proto tcp \
>         from any \
>         to any port ftp \
>                 -> 127.0.0.1 port 8021
> 
>   anchor "ftp-proxy/*"
> 
>   pass out on $EXT \
>         inet proto tcp \
>         from ($EXT) \
>         to any port 21 \
>         keep state
> 
> 
> I can add a label for port 21 but how do I track the data ports?

I thought of the 'user' keyword where I could set it to 'proxy' and set
up a label but I need an explicit rule for that.  Any other ideas?

   Juan



      Get news delivered with the All new Yahoo! Mail.  Enjoy RSS feeds right 
on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca

Reply via email to