Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 22nd October 2009
frenchviking frenchviking is offline
New User
Join Date: Oct 2009
Posts: 2
Default Log ftp packet on PF with ftp-proxy on


I'm trying to log FTP connexions coming from WAN to a FTP server through my PF which have ftp-proxy set on.

FTP connexions are all ruled like this :

rdr pass on $ext_if proto tcp from <adminssh> to $crt_lr port 21 -> po
rt 8021
My rule which is the last logging rule looks like this :

pass in log on $ext_if proto tcp from any port 21 to <filtre_ftp> label filtreftp
In my table <filtreftp> I have multiple FTP server IP addresses.

I launch a pflogd with this way :

pflogd -s 116 -i pflog0 -f /var/log/pflog.ftp ruleset filtreftp
And then to check my rule I do a tcpdump :

tcpdump -ttt -e -r /var/log/pflog.ftp
My problem is that nothing is logged (or not what I want). I tried so many ways but it is impossible to log FTP connexions. I tried with success to log SSH and RDP connexions. So I think ftp-proxy may be the cause of my troubles.

Am I right?

I'm not very familiar with PF (2 weeks practicing).

Forgive me if I made some English error or if I'm not very clear.

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sshguard and packet filter sputnik OpenBSD Security 0 18th April 2009 02:11 PM
Packet Sniffer for OpenBSD. bsdnewbie999 OpenBSD General 6 26th October 2008 02:28 AM
packet filter configuration. bsdnewbie999 OpenBSD General 1 23rd October 2008 08:54 AM
vr0: rx packet lost tutosun FreeBSD General 4 13th September 2008 10:13 AM
question about Packet Filter (pf) milo974 OpenBSD Security 2 31st July 2008 01:39 PM

All times are GMT. The time now is 09:42 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick