The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Firewalls

Firewalls IPFW, PF, IPF (but not limited) related discussion

Reply
 
Thread Tools Display Modes
  #1  
Old November 3rd, 2009, 20:03
rloc rloc is offline
Junior Member
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Firewalling a small office network

Hi all. I intend to use FreeBsd as a platform for a firewall \ router \ gateway for a small office network but I need some guidance about the basic setup.

At present, all boxes connect to www via an ADSL router.

What I want to do is set up a Snort or IpSense BSD box to act as a Firewall \ IDS between www and my network.

I assume I need to configure the BSD box with 2 NICs, but I don't know how to do this, nor do I understand the setup of passing traffic from one NIC to the other within the BSD box.

Is there a HOWTO for this presumably common requirement, or can someone here point me in the right direction?

thanks

Rloc
Reply With Quote
  #2  
Old November 3rd, 2009, 20:49
jb_fvwm2 jb_fvwm2 is offline
Member
 
Join Date: Nov 2008
Posts: 252
Thanks: 2
Thanked 13 Times in 13 Posts
Default

Have you consulted pfsense.org ?
(see "common deployments" there?)
Will it *replace* the router?
*Some* threads on the freebsd-questions list might
answer, however they would take a while to find.
I've not checked the howto"s section in this forum...
I'm sure there are guides online. But you may want
to post a network diagram for answers here too.
Reply With Quote
  #3  
Old November 4th, 2009, 00:06
Oko's Avatar
Oko Oko is offline
Member
 
Join Date: Nov 2008
Location: Kosovo, Srbija
Posts: 272
Thanks: 24
Thanked 49 Times in 37 Posts
Default

Quote:
Originally Posted by rloc View Post

can someone here point me in the right direction?
http://www.openbsd.org/faq/pf/index.html

Bare in mind that FreeBSD implementation of PF is at least 2-3 release cycles behind the official OpenBSD version. Also bare in mind that not all features of the PF are implemented in FreeBSD due to the deficiencies of FreeBSD network stuck.That is also the reason OpenBGPD was never ported (nor it can be ported) to FreeBSD.
__________________
Wanting to learn is so rare a merit that it should be encouraged.

Last edited by Oko; November 4th, 2009 at 01:09.
Reply With Quote
  #4  
Old November 4th, 2009, 03:05
gpatrick gpatrick is offline
Junior Member
 
Join Date: Jul 2009
Posts: 58
Thanks: 22
Thanked 0 Times in 0 Posts
Default

OpenBSD doesn't have jails which I want to isolate services.
Reply With Quote
  #5  
Old November 4th, 2009, 03:11
jb_fvwm2 jb_fvwm2 is offline
Member
 
Join Date: Nov 2008
Posts: 252
Thanks: 2
Thanked 13 Times in 13 Posts
Default

Quote:
Originally Posted by gpatrick View Post
OpenBSD doesn't have jails which I want to isolate services.
Next "newbie-on-my-part" suggestion: (for the OP)
google "dmz" and "freebsd" and "guide" ??

Last edited by jb_fvwm2; November 4th, 2009 at 13:02. Reason: This post responds to first one
Reply With Quote
  #6  
Old November 4th, 2009, 05:03
gpatrick gpatrick is offline
Junior Member
 
Join Date: Jul 2009
Posts: 58
Thanks: 22
Thanked 0 Times in 0 Posts
Default

If your google suggestion was for me, I don't need it.

My response was for Oko who constantly states that line about PF on FreeBSD and the network stack. I won't use OpenBSD because it lacks jails and I don't want to chroot everything.
Reply With Quote
  #7  
Old November 4th, 2009, 11:14
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Location: Taiwan
Posts: 439
Thanks: 28
Thanked 37 Times in 34 Posts
Default

Check out Gateways and Routes. I'd recommend using PF for the firewall. There are quite a lot of resources on the Internet:
As for Snort, check the official documentation since its configuration is unrelated to FreeBSD.

Another option is to use pfSense. It should be easier to set up, but you won't receive any support for pfSense on this forum (try the pfSense Forum instead).
Reply With Quote
  #8  
Old November 4th, 2009, 14:48
Oko's Avatar
Oko Oko is offline
Member
 
Join Date: Nov 2008
Location: Kosovo, Srbija
Posts: 272
Thanks: 24
Thanked 49 Times in 37 Posts
Default

Quote:
Originally Posted by gpatrick View Post
OpenBSD doesn't have jails which I want to isolate services.
It has chroot and systrace. It also supports hardware jails (on SUN hardware) but I guess you already know what to do. I apologize for my original post. I was under impression that you need help with firewall for small office. My intent was not to get into the fan boys flame war.

Sorry,
OKO
__________________
Wanting to learn is so rare a merit that it should be encouraged.
Reply With Quote
  #9  
Old November 4th, 2009, 15:32
rloc rloc is offline
Junior Member
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks all, you have given me several suggestions to read up on so let me do just that before I ask any more questions in this forums.

cheers

Robert
Reply With Quote
  #10  
Old November 4th, 2009, 18:36
gpatrick gpatrick is offline
Junior Member
 
Join Date: Jul 2009
Posts: 58
Thanks: 22
Thanked 0 Times in 0 Posts
Default

Oko, I like OpenBSD but for what I'm currently doing FreeBSD suits my needs because of jails. As mentioned, I don't want to chroot everything and not sure about using systrace. I wish OpenBSD would adopt jails but it would probably require a rewrite. There was a project called sysjail that used systrace but it has since been abandoned.
Reply With Quote
  #11  
Old November 11th, 2009, 04:14
zeissoctopus zeissoctopus is offline
Junior Member
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I love PF and FreeBSD jails

2 weeks ago, I run my home servers (apache, sendmail, postgresql in 3 FreeBSD jails)behind my router. I configure port forward for outside to my servers in jails.
I run PF at FreeBSD host in font of FreeBSD jails. Since my servers machine only have 1 NIC, it is hard to configure ftp function well in PF

Now, I install OpenBSD 4.6 in Soekris net5501 embedded board with 4 NIC as PF router. I assign 1 WAN to internet, 1 private LAN, 1 isolated zone for WiFi connection and 1 DMZ for FreeBSD Services Jails.

I can enjoy up-to-dated PF version as well as power of FreeBSD jails
Reply With Quote
Reply

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
panics because of small disk rusma Installing & Upgrading 8 October 1st, 2009 20:52
[Solved] Best software to use for firewalling Innocast Firewalls 11 August 13th, 2009 14:47
Medium Small browser Poincare X.Org 8 July 19th, 2009 20:20
open office roelof Ports Installation and Maintenance 10 January 4th, 2009 18:27
Picture is too small fender0107401 Feedback 2 December 10th, 2008 20:15


All times are GMT +1. The time now is 14:05.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.