🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.openbsd-pf
Article #202

Re: I want copy pf.conf from FreeBSD 8.2 to OpenBSD 5 and use it

#202
From: Karl O. Pinc
Date: Mon, 07 Nov 2011 18:46
26 lines
1942 bytes
On 11/02/2011 12:30:37 PM, Gholam Mostafa Faridi wrote:
> Hi
> In work place , we have over 24 computer and all of them are windows
> and 
> , I have NAT server . this NAT server use FreeBSD 8.2 AMD 64 , and I
> use 
> PF for NAT with FreeBSD 8.2 . after many search in google , I find
> this 
> pf.conf

Have you looked at the pf faq at www.openbsd.org or the man page,
especially the "Translation" section?

I seem to recall simple nat examples that you could use
once you change the IP numbers/networks to the ones you're
using.

I don't understand your english but it sounds like you may
want "match binat-to" to get a 1-to-1 mapping between internal
and external IP numbers -- either assigned per individual ip
number, or with "bitmask" or perhaps with some other natting
method and "sticky-address".

Karl <kop@meme.com>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein
Technical Details
Message-ID: <1320677967.1189.1@mofo>
Path: arc1-ca.pugleaf.net!l23ni3339bkv.0!nntp.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
References: <4EB17E3D.3090205@gmail.com> (from mostafafaridi@gmail.com on Wed Nov 2 12:30:37 2011)

Show Full Headers
Complete Article Headers
X-Google-Thread: ff4ef,ce989e6705ff628c
X-Google-NewGroupId: yes
X-Google-Attributes: gidbffa70e3,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.204.143.143 with SMTP id v15mr1227264bku.1.1320691570390;
        Mon, 07 Nov 2011 10:46:10 -0800 (PST)
Path: arc1-ca.pugleaf.net!l23ni3339bkv.0!nntp.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
From: kop@meme.com (Karl O. Pinc)
Newsgroups: bit.listserv.openbsd-pf
Subject: Re: I want copy pf.conf from FreeBSD 8.2 to OpenBSD 5 and use it
Date: 7 Nov 2011 10:46:09 -0800
Organization: None
Lines: 27
Message-ID: <1320677967.1189.1@mofo>
References: <4EB17E3D.3090205@gmail.com> (from mostafafaridi@gmail.com on
 Wed Nov  2 12:30:37 2011)
NNTP-Posting-Host: mofo
Mime-Version: 1.0
NNTP-Posting-Date: 7 Nov 2011 18:46:10 GMT
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit