<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>don't feed the seagulls &#187; pf</title>
	<atom:link href="http://dontfeedtheseagulls.com/category/pf/feed/" rel="self" type="application/rss+xml" />
	<link>http://dontfeedtheseagulls.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 23 Jul 2010 13:28:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Basic pfctl control</title>
		<link>http://dontfeedtheseagulls.com/2009/03/30/basic-pfctl-control/</link>
		<comments>http://dontfeedtheseagulls.com/2009/03/30/basic-pfctl-control/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 21:13:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[pf]]></category>

		<guid isPermaLink="false">http://dontfeedtheseagulls.com/?p=29</guid>
		<description><![CDATA[# basic pfctl control # == # Related: http://www.OpenBSD.org # Last update: Tue Dec 28, 2004 # == # Note: # this document is only provided as a basic overview # for some common pfctl commands and is by no means # a replacement for the pfctl and pf manual pages. #### General PFCTL Commands [...]]]></description>
			<content:encoded><![CDATA[<div class="snap_preview">
<p># basic pfctl control<br />
# ==<br />
# Related: http://www.OpenBSD.org<br />
# Last update: Tue Dec 28, 2004<br />
# ==<br />
# Note:<br />
# this document is only provided as a basic overview<br />
# for some common pfctl commands and is by no means<br />
# a replacement for the pfctl and pf manual pages.</p>
<p>#### General PFCTL Commands ####<br />
# pfctl -d                   disable packet-filtering<br />
# pfctl -e                   enable packet-filtering<br />
# pfctl -q                   run quiet<br />
# pfctl -v -v                run even more verbose</p>
<p>#### Loading PF Rules ####<br />
# pfctl -f /etc/pf.conf      load /etc/pf.conf<br />
# pfctl -n -f /etc/pf.conf   parse /etc/pf.conf, but dont load it<br />
# pfctl -R -f /etc/pf.conf   load only the FILTER rules<br />
# pfctl -N -f /etc/pf.conf   load only the NAT rules<br />
# pfctl -O -f /etc/pf.conf   load only the OPTION rules</p>
<p>#### Clearing PF Rules &amp; Counters ####<br />
# pfctl -F all               flush ALL<br />
# pfctl -F rules             flush only the RULES<br />
# pfctl -F queue             flush only queue’s<br />
# pfctl -F nat               flush only NAT<br />
# pfctl -F info              flush all stats that are not part of any rule.<br />
# pfctl -z                   clear all counters<br />
# note: flushing rules do not touch any existing stateful connections</p>
<p>#### Output PF Information ####<br />
# pfctl -s rules             show filter information<br />
# pfctl -v -s rules          show filter information for what FILTER rules hit..<br />
# pfctl -vvsr                show filter information as above and prepend rule numbers<br />
# pfctl -v -s nat            show NAT information, for which NAT rules hit..<br />
# pfctl -s nat -i xl1        show NAT information for interface xl1<br />
# pfctl -s queue             show QUEUE information<br />
# pfctl -s label             show LABEL information<br />
# pfctl -s state             show contents of the STATE table<br />
# pfctl -s info              show statistics for state tables and packet normalization<br />
# pfctl -s all               show everything</p>
<p>#### Maintaining PF Tables ####<br />
# pfctl -t addvhosts -T show                  show table addvhosts<br />
# pfctl -vvsTables                            view global information about all tables<br />
# pfctl -t addvhosts -T add 192.168.1.50      add entry to table addvhosts<br />
# pfctl -t addvhosts -T add 192.168.1.0/16    add a network to table addvhosts<br />
# pfctl -t addvhosts -T delete 192.168.1.0/16 delete nework from table addvhosts<br />
# pfctl -t addvhosts -T flush                 remove all entries from table addvhosts<br />
# pfctl -t addvhosts -T kill                  delete table addvhosts entirely<br />
# pfctl -t addvhosts -T replace -f /etc/addvhosts reload table addvhosts on the fly<br />
# pfctl -t addvhosts -T test 192.168.1.40     find ip address 192.168.1.40 in table addvhosts<br />
# pfctl -T load -f /etc/pf.conf               load a new table definition<br />
# pfctl -t addvhosts -T show -v               output stats for each ip address in table addvhosts<br />
# pfctl -t addvhosts -T zero                  reset all counters for table addvhosts</p></div>
]]></content:encoded>
			<wfw:commentRss>http://dontfeedtheseagulls.com/2009/03/30/basic-pfctl-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
