niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » OpenBSD
NAT setup
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Peter N. M. Hansteen
*nix forums addict


Joined: 19 Feb 2005
Posts: 86

PostPosted: Fri Apr 01, 2005 7:10 am    Post subject: Re: NAT setup Reply with quote

mihai.secasiu@denixsolutions-dot-com.no-spam.invalid (noobsd) writes:

Quote:
I'm tring to set up a NAT firewall on my OpenBSD server.
can anyone help me with some instructions ?

The PF user guide is quite useful, http://www.openbsd.org/faq/pf/index.html

a slightly less detailed but hopefully still useful tutorial can be
found at http://www.bgnett.no/~peter/pf/en/

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"
Back to top
bsdguy
*nix forums beginner


Joined: 09 Feb 2005
Posts: 9

PostPosted: Thu Mar 31, 2005 2:06 am    Post subject: re:NAT setup Reply with quote

yes, you might add some rules to block some spoofing atempts
like this :

table <rfc1918> const { 192.168.0.0/16, 172.16.0.0/12,
10.0.0.0/8 }
block in quick on $ext_if from <rfc1918> to any
block out quick on $ext_if from any to <rfc1918>
Back to top
noobsd
*nix forums beginner


Joined: 03 Mar 2005
Posts: 6

PostPosted: Thu Mar 31, 2005 2:05 am    Post subject: re:NAT setup Reply with quote

thanks

any other options that might be usefull to put in pf.conf ?
Back to top
bsdguy
*nix forums beginner


Joined: 09 Feb 2005
Posts: 9

PostPosted: Thu Mar 31, 2005 2:05 am    Post subject: re:NAT setup Reply with quote

try it by adding this to your pf.conf


ext_if="rl1"
int_if="rl0"

nat on $ext_if from $int_if/24 to any -> $ext_if


change the values for ext_if and int_if to fit your system. ext_if is
the interface that connects your server to internet and int_if is the
interface that connects your server with your internal network.

for more information about how to use OpenBSD's packet filter take a
look at :

pfctl
the command that you can use to control the packet filter

and
pf.conf
(5) the configuration file for the packet filter.
Back to top
noobsd
*nix forums beginner


Joined: 03 Mar 2005
Posts: 6

PostPosted: Thu Mar 31, 2005 2:05 am    Post subject: NAT setup Reply with quote

I'm tring to set up a NAT firewall on my OpenBSD server.
can anyone help me with some instructions ?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 4:30 pm | All times are GMT
navigation Forum index » *nix » BSD » OpenBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix setup Lionc Postfix 0 Sun Apr 13, 2008 5:00 am
No new posts setup.php g.sharpe PHP 4 Thu Jul 20, 2006 5:00 pm
No new posts re-build physical standby in DG setup EdStevens Server 3 Thu Jul 20, 2006 4:37 pm
No new posts A new reader? Welcome to comp.os.linux.setup, read this f... FAQ (bi-weekly) Setup 0 Tue Jul 18, 2006 11:10 pm
No new posts debian setup PCI devices Michael Dahrouge Setup 4 Tue Jul 18, 2006 1:11 am

Internet Advertising | Personal Car Finance | Credit Card information | Guitar Lesson | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2028s ][ Queries: 20 (0.1023s) ][ GZIP on - Debug on ]