DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd April 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,154
Thanked 182 Times in 149 Posts
Default How to convert "no-nat" to new OpenBSD 4.7 NAT/RDR syntax

From a mail message on the OpenBSD misc list:

Quote:
Hi everybody,

I'm not that sure this is the right mailing list which I can post this
message. The misc sounds too generic and hopefully the tech is not
supposed to receive such a trivial question.

However, I'm just going to upgrade to OpenBSD 4.7 and because of the new
pf syntax I have to "convert" my configurations. It's not a big deal
except for one thing.
I didn't find the replacement for the "no nat" statement.
How is that supposed to be specified now?

Many thanks in advance.
The answer from OpenBSD developer Bob Beck:
Quote:
> However, I'm just going to upgrade to OpenBSD 4.7 and because of the new
> pf syntax I have to "convert" my configurations. It's not a big deal
> except for one thing.
> I didn't find the replacement for the "no nat" statement.
> How is that supposed to be specified now?

Code:
pass quick
you don't need to have nat before pass now, so you can simply do stuff like.

Code:
pass in quick on em0 from <nospamd> to any port 25
pass in quick on em0 from any to any port 25 rdr-to 127.0.0.1 8025
Reference: http://marc.info/?l=openbsd-tech&m=127456244922550&w=2
__________________
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

Tags
nat, nat-to, no-nat, pf, rdr-to

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
How to replace "ectags" with "ctags"? fender0107401 OpenBSD Packages and Ports 5 16th April 2013 10:01 AM
New syntax for "nat" and "rdr" joseche OpenBSD Security 3 23rd October 2009 01:26 PM
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
"Thanks" and "Edit Tags". diw Feedback and Suggestions 2 29th March 2009 12:06 AM
Scripted sysinstall fails with "Command 'system' failed" PeterSteele FreeBSD Installation and Upgrading 0 13th November 2008 11:31 PM


All times are GMT. The time now is 06:36 PM.


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