<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://clonwiki0.jlab.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Iptables</id>
	<title>Iptables - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://clonwiki0.jlab.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Iptables"/>
	<link rel="alternate" type="text/html" href="https://clonwiki0.jlab.org/wiki/index.php?title=Iptables&amp;action=history"/>
	<updated>2026-04-09T11:18:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://clonwiki0.jlab.org/wiki/index.php?title=Iptables&amp;diff=8272&amp;oldid=prev</id>
		<title>Boiarino at 19:48, 15 May 2025</title>
		<link rel="alternate" type="text/html" href="https://clonwiki0.jlab.org/wiki/index.php?title=Iptables&amp;diff=8272&amp;oldid=prev"/>
		<updated>2025-05-15T19:48:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 15:48, 15 May 2025&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-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;  iptables -t nat -F&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;  iptables -t nat -F&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;    &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;    &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&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;Set needed settings (we assumes &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;loval &lt;/del&gt;network port is &#039;enp_bond&#039;, and uplink port is &#039;em1&#039;):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;Set needed settings (we assumes &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;here that local &lt;/ins&gt;network port is &#039;enp_bond&#039;, and uplink port is &#039;em1&#039;):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;  iptables -A INPUT -i lo -j ACCEPT&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;  iptables -A INPUT -i lo -j ACCEPT&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;  iptables -A INPUT -i enp_bond -j ACCEPT&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;  iptables -A INPUT -i enp_bond -j ACCEPT&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Boiarino</name></author>
	</entry>
	<entry>
		<id>https://clonwiki0.jlab.org/wiki/index.php?title=Iptables&amp;diff=8270&amp;oldid=prev</id>
		<title>Boiarino: Created page with &quot;&#039;&#039;&#039;IPTABLES&#039;&#039;&#039;  Show tables:  iptables -vL -t filter  iptables -vL -t nat  iptables -vL -t mangle  iptables -vL -t raw  iptables -vL -t security   Only first two seems relevant. Clear them:  iptables -t filter -F  iptables -t nat -F    Set needed settings (we assumes loval network port is &#039;enp_bond&#039;, and uplink port is &#039;em1&#039;):  iptables -A INPUT -i lo -j ACCEPT  iptables -A INPUT -i enp_bond -j ACCEPT  iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT  ipt...&quot;</title>
		<link rel="alternate" type="text/html" href="https://clonwiki0.jlab.org/wiki/index.php?title=Iptables&amp;diff=8270&amp;oldid=prev"/>
		<updated>2025-05-15T19:34:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;IPTABLES&amp;#039;&amp;#039;&amp;#039;  Show tables:  iptables -vL -t filter  iptables -vL -t nat  iptables -vL -t mangle  iptables -vL -t raw  iptables -vL -t security   Only first two seems relevant. Clear them:  iptables -t filter -F  iptables -t nat -F    Set needed settings (we assumes loval network port is &amp;#039;enp_bond&amp;#039;, and uplink port is &amp;#039;em1&amp;#039;):  iptables -A INPUT -i lo -j ACCEPT  iptables -A INPUT -i enp_bond -j ACCEPT  iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT  ipt...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;IPTABLES&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Show tables:&lt;br /&gt;
 iptables -vL -t filter&lt;br /&gt;
 iptables -vL -t nat&lt;br /&gt;
 iptables -vL -t mangle&lt;br /&gt;
 iptables -vL -t raw&lt;br /&gt;
 iptables -vL -t security&lt;br /&gt;
 &lt;br /&gt;
Only first two seems relevant. Clear them:&lt;br /&gt;
 iptables -t filter -F&lt;br /&gt;
 iptables -t nat -F&lt;br /&gt;
  &lt;br /&gt;
Set needed settings (we assumes loval network port is &amp;#039;enp_bond&amp;#039;, and uplink port is &amp;#039;em1&amp;#039;):&lt;br /&gt;
 iptables -A INPUT -i lo -j ACCEPT&lt;br /&gt;
 iptables -A INPUT -i enp_bond -j ACCEPT&lt;br /&gt;
 iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;
 iptables -t nat -A POSTROUTING -o em1 -j MASQUERADE&lt;br /&gt;
 iptables -A FORWARD -i em1 -o enp_bond -m state --state RELATED,ESTABLISHED -j ACCEPT&lt;br /&gt;
 iptables -A FORWARD -i enp_bond -o em1 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
Save rules and restart service:&lt;br /&gt;
 iptables-save &amp;gt; /etc/sysconfig/iptables&lt;br /&gt;
 systemctl enable iptables&lt;br /&gt;
 systemctl start iptables&lt;/div&gt;</summary>
		<author><name>Boiarino</name></author>
	</entry>
</feed>