|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
How to get NAT log file on FreeBSD ?
i use FreeBSE 7.0 and it has 2 ethernet for internet and private network.
i have already seted about NAT, Packet Filter (PF) and ALTQ from these links http://www.freebsd.org/doc/en_US.ISO...work-natd.html http://www.freebsd.org/doc/en_US.ISO...ewalls-pf.html then everyting are OK then i wolud like to get NAT log file by Packet Filter (PF) and i have read for this link http://www.openbsd.org/faq/pf/logging.html but i can't set logging for NAT to pflog please help me! how can i do? |
|
|||
According to pf.conf(5) you can log NAT traffic
Code:
nat-rule = [ "no" ] "nat" [ "pass" [ "log" [ "(" logopts ")" ] ] ] [ "on" ifspec ] [ af ] [ protospec ] hosts [ "tag" string ] [ "tagged" string ] [ "->" ( redirhost | "{" redirhost-list "}" ) [ portspec ] [ pooltype ] [ "static-port" ] ]
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What does your .*shrc file look like? | TerryP | Off-Topic | 13 | 23rd February 2012 11:28 PM |
PHP read file contents - Maximum file size | cksraj | Programming | 1 | 21st September 2009 11:38 AM |
kernel file from 6.3 to 7.2 | l2fl2f | FreeBSD Installation and Upgrading | 3 | 14th September 2009 06:53 PM |
download specific file from freebsd source | kasse | FreeBSD General | 2 | 9th November 2008 11:13 AM |
file:/// | mfaridi | FreeBSD Security | 3 | 27th July 2008 02:18 PM |