DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th January 2012
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Question FreeBSD 9 + pf + nat

I previously had a line in pf.conf which read:

Code:
nat on $ext_if from $int_if:network to any -> ($ext_if)
That doesn't work any more and according to the dox I need a nat-to in the rule set. My current attempt is:

Code:
pass out on $ext_if from any to any nat-to ($ext_if)
I tried lots of different variants but they all give me syntax error. What do I do now?
Reply With Quote
  #2   (View Single Post)  
Old 13th January 2012
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Default

Got it sorted, the proper way seems to be:

Code:
nat on egress from (self) to any -> ($ext_if)

Last edited by ocicat; 14th January 2012 at 03:59 AM. Reason: fixed closing [/CODE] tag
Reply With Quote
Reply

Tags
freebsd9 pf nat

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


All times are GMT. The time now is 04:36 AM.


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