DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th June 2008
chamnanpol chamnanpol is offline
New User
 
Join Date: Jun 2008
Posts: 6
Default 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?
Reply With Quote
  #2   (View Single Post)  
Old 17th June 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,164
Default

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
Reply With Quote
Reply

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
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


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


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