<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Buzzedlightyears_IPTables</id>
	<title>Buzzedlightyears IPTables - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Buzzedlightyears_IPTables"/>
	<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=Buzzedlightyears_IPTables&amp;action=history"/>
	<updated>2026-04-08T14:27:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=Buzzedlightyears_IPTables&amp;diff=92&amp;oldid=prev</id>
		<title>Erik: Copy from old</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=Buzzedlightyears_IPTables&amp;diff=92&amp;oldid=prev"/>
		<updated>2009-06-02T03:32:51Z</updated>

		<summary type="html">&lt;p&gt;Copy from old&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 IPTABLES=/usr/sbin/iptables&lt;br /&gt;
 &lt;br /&gt;
 #Allow incoming returning requests (Port Scans, Pings)&lt;br /&gt;
 $IPTABLES -A INPUT -j ACCEPT -m state --state ESTABLISHED -i eth0 -p icmp&lt;br /&gt;
 $IPTABLES -A INPUT -j ACCEPT -m state --state ESTABLISHED -i eth0 -p tcp&lt;br /&gt;
 $IPTABLES -A INPUT -j ACCEPT -m state --state ESTABLISHED -i eth0 -p udp&lt;br /&gt;
 &lt;br /&gt;
 #Allow incoming FTP Connections&lt;br /&gt;
 $IPTABLES -A INPUT -p tcp --dport 20 -j ACCEPT&lt;br /&gt;
 $IPTABLES -A INPUT -p tcp --dport 21 -j ACCEPT&lt;br /&gt;
 &lt;br /&gt;
 #Allow new incoming SSH connections&lt;br /&gt;
 #$IPTABLES -A INPUT -p tcp --dport 22 -m state --state new -j ACCEPT&lt;br /&gt;
 &lt;br /&gt;
 #Webserver&lt;br /&gt;
 #$IPTABLES -A INPUT -p tcp --dport 80 -j ACCEPT&lt;br /&gt;
 &lt;br /&gt;
 #Allow Pings&lt;br /&gt;
 $IPTABLES -A INPUT -p icmp -j ACCEPT&lt;br /&gt;
 &lt;br /&gt;
 #Allow All Local Host&lt;br /&gt;
 $IPTABLES -A INPUT -i lo -j ACCEPT&lt;br /&gt;
 &lt;br /&gt;
 #Drop all other and LOG to /var/log/firewall&lt;br /&gt;
 $IPTABLES -A INPUT -m limit --limit 3/s --limit-burst 5 -i eth0 -j LOG&lt;br /&gt;
 #$IPTABLES -A INPUT -i eth0 -j DROP&lt;br /&gt;
 &lt;br /&gt;
 $IPTABLES -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -m limit --limit 1/sec -j ACCEPT&lt;br /&gt;
 $IPTABLES -A FORWARD -p icmp -m icmp --icmp-type 8 -m limit --limit 1/sec -j ACCEPT&lt;br /&gt;
 $IPTABLES -A FORWARD -m state --state NEW,RELATED,ESTABLISHED,UNTRACKED -j DROP&lt;br /&gt;
 $IPTABLES -A INPUT -j DROP&lt;br /&gt;
 $IPTABLES -A INPUT -p igmp -j DROP&lt;br /&gt;
&lt;br /&gt;
[[Category:Security]]&lt;/div&gt;</summary>
		<author><name>Erik</name></author>
	</entry>
</feed>