The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Security
.
google unix.com



Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Question about pf firewall sporky IP Networking 1 10-03-2008 12:45 AM
Set up your firewall with Firewall Builder iBot UNIX and Linux RSS News 0 08-14-2008 04:30 AM
Firewall Box Tabryan07 UNIX for Dummies Questions & Answers 2 09-17-2007 09:22 AM
ssh thru firewall thangorn UNIX for Dummies Questions & Answers 3 02-22-2002 06:24 PM
BSD Firewall deadletter IP Networking 3 01-06-2002 10:04 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-14-2008
neurosis neurosis is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 2
PF firewall question (new to PF)

Ive been reading for the last week every piece of information on PF that i can find. I am in the process of building a FreeBSD 7.0 Router/Gateway and have been a little stumped by allot of the tutorials/examples out there. Most that I read say that you should always block all! But then I see a rule in the pf.conf that states

Code:
# allow traffic initiated from Router to outside
 pass out quick on $ext_if from ($ext_if) to any modulate state
Does this rule not allow "ALL" traffic to leave the gateway/router? Why would you use a block all instead of just block in if you are going to use a rule like this?

Sorry for the very newbie question. I have allot more but i'll start with the simple one.

Hello every one! I am new to the board.
  #2 (permalink)  
Old 11-14-2008
glen.barber glen.barber is offline
Registered User
  
 

Join Date: May 2008
Location: Philadelphia, PA, USA
Posts: 117
The idea is to block all traffic by default, and explicity allow traffic you want.

Remember when writing your rules, that PF operates in a 'top-down' fashion, meaning:
Code:
block all
allow all
would allow all traffic, as it overrides the 'block all' rule.
  #3 (permalink)  
Old 11-14-2008
neurosis neurosis is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 2
Right. I understand that (forget it while writing rules though ) But if you are going to write a rule that allows "ALL" traffic out why block all? and not just block in? Is it just an accepted standard for writing the rules?
  #4 (permalink)  
Old 11-14-2008
glen.barber glen.barber is offline
Registered User
  
 

Join Date: May 2008
Location: Philadelphia, PA, USA
Posts: 117
Code:
# allow traffic initiated from Router to outside
 pass out quick on $ext_if from ($ext_if) to any modulate state
Reread the rule. It is allowing 'all' traffic from a particular network interface. Not from all traffic (in general).

Last edited by glen.barber; 11-14-2008 at 06:16 PM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0