<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=Research_iptables_configuration_recommendations</id>
	<title>Research iptables configuration recommendations - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=Research_iptables_configuration_recommendations"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Research_iptables_configuration_recommendations&amp;action=history"/>
	<updated>2026-04-10T14:28:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Research_iptables_configuration_recommendations&amp;diff=11051&amp;oldid=prev</id>
		<title>Khawk13: /* Introduction */</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Research_iptables_configuration_recommendations&amp;diff=11051&amp;oldid=prev"/>
		<updated>2010-08-28T20:03:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Introduction&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:03, 28 August 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For a much slimmer foot print out there, I'd recommend the following modifications (still testing). There have been a number of changes to the way processes are listening and how they are limited across the various versions of WebOS. The latest is closed down somewhat tighter than the initial releases. However, it you're like me, and believe that your phone shouldn't be offering up any services at all to the Internet, the below modifications to the stock iptables config will help make a much less accessible phone.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For a much slimmer foot print out there, I'd recommend the following modifications (still testing). There have been a number of changes to the way processes are listening and how they are limited across the various versions of WebOS. The latest is closed down somewhat tighter than the initial releases. However, it you're like me, and believe that your phone shouldn't be offering up any services at all to the Internet, the below modifications to the stock iptables config will help make a much less accessible phone&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;It should be noted that this config works with MyTether, but I can't guarantee that it will work with all other configs (like OpenSSH or Dropbear SSH), so some minor tweaking may be in order to get those services to work&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==/etc/pmnetconfig/iptables-common.config==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==/etc/pmnetconfig/iptables-common.config==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Khawk13</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Research_iptables_configuration_recommendations&amp;diff=11050&amp;oldid=prev</id>
		<title>Khawk13: New page: ==Introduction==  For a much slimmer foot print out there, I'd recommend the following modifications (still testing). There have been a number of changes to the way processes are listening...</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Research_iptables_configuration_recommendations&amp;diff=11050&amp;oldid=prev"/>
		<updated>2010-08-28T20:01:45Z</updated>

		<summary type="html">&lt;p&gt;New page: ==Introduction==  For a much slimmer foot print out there, I&amp;#039;d recommend the following modifications (still testing). There have been a number of changes to the way processes are listening...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
For a much slimmer foot print out there, I'd recommend the following modifications (still testing). There have been a number of changes to the way processes are listening and how they are limited across the various versions of WebOS. The latest is closed down somewhat tighter than the initial releases. However, it you're like me, and believe that your phone shouldn't be offering up any services at all to the Internet, the below modifications to the stock iptables config will help make a much less accessible phone. &lt;br /&gt;
&lt;br /&gt;
==/etc/pmnetconfig/iptables-common.config==&lt;br /&gt;
&amp;lt;pre&amp;gt;# Generated by iptables-save v1.4.2 on Mon Jun 29 14:11:31 2009&lt;br /&gt;
*nat&lt;br /&gt;
:PREROUTING ACCEPT [2:696]&lt;br /&gt;
:POSTROUTING ACCEPT [44:2752]&lt;br /&gt;
:OUTPUT ACCEPT [44:2752]&lt;br /&gt;
COMMIT&lt;br /&gt;
# Completed on Mon Jun 29 14:11:31 2009&lt;br /&gt;
# Generated by iptables-save v1.4.2 on Mon Jun 29 14:11:31 2009&lt;br /&gt;
*mangle&lt;br /&gt;
:PREROUTING ACCEPT [922:161037]&lt;br /&gt;
:INPUT ACCEPT [920:160341]&lt;br /&gt;
:FORWARD ACCEPT [0:0]&lt;br /&gt;
:OUTPUT ACCEPT [964:158847]&lt;br /&gt;
:POSTROUTING ACCEPT [964:158847]&lt;br /&gt;
COMMIT&lt;br /&gt;
# Completed on Mon Jun 29 14:11:31 2009&lt;br /&gt;
# Generated by iptables-save v1.4.2 on Mon Jun 29 14:11:31 2009&lt;br /&gt;
*filter&lt;br /&gt;
:INPUT DROP [0:0]&lt;br /&gt;
:FORWARD ACCEPT [0:0]&lt;br /&gt;
:OUTPUT ACCEPT [964:158847]&lt;br /&gt;
:ALLOWED_PACKETS - [0:0]&lt;br /&gt;
:ICMPFLOOD - [0:0]&lt;br /&gt;
:INVALID_PACKETS - [0:0]&lt;br /&gt;
-A FORWARD -m state --state INVALID -j INVALID_PACKETS&lt;br /&gt;
-A INPUT -i lo -j ALLOWED_PACKETS&lt;br /&gt;
-A INPUT -s 127.0.0.0/8 -i ! lo -j INVALID_PACKETS&lt;br /&gt;
-A INPUT -p tcp -m tcp --dport 113 --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j REJECT --reject-with tcp-reset&lt;br /&gt;
-A INPUT -i bridge0 -p tcp -m tcp --dport 4444:4445 -j DROP&lt;br /&gt;
-A INPUT -m state --state RELATED,ESTABLISHED -j ALLOWED_PACKETS&lt;br /&gt;
-A INPUT -i bridge0 -j ALLOWED_PACKETS&lt;br /&gt;
-A INPUT -i usb0 -j ALLOWED_PACKETS&lt;br /&gt;
-A INPUT -m limit --limit 3/sec -j LOG --log-prefix &amp;quot;IPT_PACKET_DROPPED_NO_MATCH: &amp;quot; --log-level 7&lt;br /&gt;
-A INPUT -j QUEUE&lt;br /&gt;
-A ALLOWED_PACKETS -j ACCEPT&lt;br /&gt;
-A ICMPFLOOD -m recent --set --name ICMP --rsource&lt;br /&gt;
-A ICMPFLOOD -m recent --update --seconds 1 --hitcount 6 --rttl --name ICMP --rsource -m limit --limit 1/sec --limit-burst 1 -j LOG --log-prefix &amp;quot;IPT_ICMPFLOOD: &amp;quot;&lt;br /&gt;
-A ICMPFLOOD -m recent --update --seconds 1 --hitcount 6 --rttl --name ICMP --rsource -j DROP&lt;br /&gt;
-A ICMPFLOOD -j ALLOWED_PACKETS&lt;br /&gt;
-A INVALID_PACKETS -m limit --limit 1/sec --limit-burst 100 -j LOG --log-prefix &amp;quot;IPT_INVALID_PACKETS_DROPPED: &amp;quot;&lt;br /&gt;
-A INVALID_PACKETS -j DROP&lt;br /&gt;
COMMIT&lt;br /&gt;
# Completed on Mon Jun 29 14:11:31 2009&amp;lt;/pre&amp;gt;&lt;br /&gt;
==/etc/pmnetconfig/iptables-default.config==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iptables -I INPUT 24 -m limit --limit 3/sec -j LOG --log-prefix &amp;quot;IPT_PACKET_DROPPED_NO_MATCH: &amp;quot; --log-level 7&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==/etc/pmnetconfig/iptables-usbnetmode.config==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#This file left blank.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Khawk13</name></author>
	</entry>
</feed>