<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Ipfw</id>
	<title>Ipfw - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Ipfw"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Ipfw&amp;action=history"/>
	<updated>2026-06-29T16:53:41Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Ipfw&amp;diff=14967&amp;oldid=prev</id>
		<title>Thomas: Die Seite wurde neu angelegt: „ =rc.conf=  firewall_enable=&quot;YES&quot;  firewall_script=&quot;/etc/ipfw.rules&quot; =/etc/ipfw.rules= &lt;pre&gt; #!/bin/sh # Flush out the list before we begin. ipfw -q -f flush…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Ipfw&amp;diff=14967&amp;oldid=prev"/>
		<updated>2017-10-31T10:47:57Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „ =rc.conf=  firewall_enable=&amp;quot;YES&amp;quot;  firewall_script=&amp;quot;/etc/ipfw.rules&amp;quot; =/etc/ipfw.rules= &amp;lt;pre&amp;gt; #!/bin/sh # Flush out the list before we begin. ipfw -q -f flush…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=rc.conf=&lt;br /&gt;
 firewall_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
 firewall_script=&amp;quot;/etc/ipfw.rules&amp;quot;&lt;br /&gt;
=/etc/ipfw.rules=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# Flush out the list before we begin.&lt;br /&gt;
ipfw -q -f flush&lt;br /&gt;
&lt;br /&gt;
# Set rules command prefix&lt;br /&gt;
wan=&amp;quot;re0&amp;quot;&lt;br /&gt;
lan=&amp;quot;re1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Change xl0 to LAN NIC interface name&lt;br /&gt;
ipfw -q add 00005 allow all from any to any via $lan&lt;br /&gt;
ipfw -q add 00005 allow all from any to any via $wan&lt;br /&gt;
&lt;br /&gt;
# No restrictions on Loopback Interface&lt;br /&gt;
ipfw -q add 00010 allow all from any to any via lo0&lt;br /&gt;
&lt;br /&gt;
ipfw -q add 00101 check-state&lt;br /&gt;
ipfw -q add 00102 allow tcp  from any to any established&lt;br /&gt;
ipfw -q add 00102 allow tcp  from any to any established&lt;br /&gt;
ipfw -q add 00103 allow icmp from any to any&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=with nat=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
wan=&amp;quot;re0&amp;quot;&lt;br /&gt;
lan=&amp;quot;re1&amp;quot;&lt;br /&gt;
ipfw -q -f flush&lt;br /&gt;
&lt;br /&gt;
ipfw -q add 005 allow all from any to any via $lan  # exclude LAN traffic&lt;br /&gt;
ipfw -q add 010 allow all from any to any via lo0  # exclude loopback traffic&lt;br /&gt;
ipfw -q add 100 divert natd ip from any to any in via $wan # NAT any inbound packets&lt;br /&gt;
# Allow the packet through if it has an existing entry in the dynamic rules table&lt;br /&gt;
ipfw -q add 101 check-state&lt;br /&gt;
&lt;br /&gt;
# Authorized outbound packets&lt;br /&gt;
ipfw -q add 120 skipto 500 udp from any to any 53 out via $wan keep-state&lt;br /&gt;
ipfw -q add 121 skipto 500 udp from any to any 67 out via $wan keep-state&lt;br /&gt;
ipfw -q add 125 skipto 500 tcp from any to any 22,25,53,80,443,110  out via $wan setup keep-state&lt;br /&gt;
ipfw -q add 130 skipto 500 icmp from any to any out via $wan keep-state&lt;br /&gt;
&lt;br /&gt;
ipfw -q add 499 deny log all from any to any&lt;br /&gt;
ipfw -q add 500 divert natd ip from any to any out via $wan # skipto location for outbound stateful rules&lt;br /&gt;
ipfw -q add 510 allow ip from any to any&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=links=&lt;br /&gt;
*https://www.cyberciti.biz/faq/howto-setup-freebsd-ipfw-firewall/&lt;br /&gt;
*https://www.freebsd.org/doc/de_DE.ISO8859-1/books/handbook/firewalls-ipfw.html&lt;/div&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
</feed>