Go Back   DaemonForums > FreeBSD > FreeBSD Security

FreeBSD Security Securing FreeBSD.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd July 2013
Mohsen Mohsen is offline
Real Name: Mohsen Pahlevanzadeh
Join Date: Jul 2013
Location: Tehran
Posts: 1
Default DNAT and SNAT of iptables in PF

I just start PF, Now, i want to distinguish between DNAT and SNAT in PF, How i define ruleset for SNAT and DNAT of iptables in PF?
Reply With Quote
  #2   (View Single Post)  
Old 23rd July 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 7,599

Hello, and welcome!

http://marc.info/?t=105428129500003&r=1&w=2 describes a transition from IPTABLES DNAT and SNAT to PF. Note that this was at the time of OpenBSD 3.3, so the specific syntax will need to be altered to match the particular PF syntax used in the release of FreeBSD you are using. From http://forums.freebsd.org/showthread.php?t=39295:
    In RELENG_5 - pf is at OpenBSD 3.5
    In RELENG_6 - pf is at OpenBSD 3.7
    In RELENG_7 - pf is at OpenBSD 4.1
    In RELENG_8 - pf is at OpenBSD 4.5
I believe the port of PF from OpenBSD 4.5 was the last for FreeBSD.
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
Migrating from iptables to pf, a love story Popelicious OpenBSD Security 7 19th April 2013 08:46 AM
iptables: overload on max-src-conn-rate? Carpetsmoker Other BSD and UNIX/UNIX-like 2 13th May 2011 09:34 PM
first match vs last match ruleset design (pf vs iptables) zelut FreeBSD Security 5 12th July 2009 08:13 AM
spoofing with iptables dk_netsvil General software and network 6 29th October 2008 08:22 PM
iptables fw redundancy revzalot Other BSD and UNIX/UNIX-like 3 17th June 2008 04:51 PM

All times are GMT. The time now is 04:42 PM.

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