<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.faked.org/index.php?action=history&amp;feed=atom&amp;title=Policy_Based_Routing</id>
	<title>Policy Based Routing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.faked.org/index.php?action=history&amp;feed=atom&amp;title=Policy_Based_Routing"/>
	<link rel="alternate" type="text/html" href="https://wiki.faked.org/index.php?title=Policy_Based_Routing&amp;action=history"/>
	<updated>2026-05-31T02:04:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.faked.org/index.php?title=Policy_Based_Routing&amp;diff=249&amp;oldid=prev</id>
		<title>Jan: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.faked.org/index.php?title=Policy_Based_Routing&amp;diff=249&amp;oldid=prev"/>
		<updated>2016-08-26T19:10:43Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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 21:10, 26 August 2016&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff::1.12:old-41:rev-249 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>https://wiki.faked.org/index.php?title=Policy_Based_Routing&amp;diff=41&amp;oldid=prev</id>
		<title>Jan: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.faked.org/index.php?title=Policy_Based_Routing&amp;diff=41&amp;oldid=prev"/>
		<updated>2016-08-26T19:09:41Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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 21:09, 26 August 2016&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff::1.12:old-40:rev-41 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>https://wiki.faked.org/index.php?title=Policy_Based_Routing&amp;diff=40&amp;oldid=prev</id>
		<title>Jan at 14:47, 21 November 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.faked.org/index.php?title=Policy_Based_Routing&amp;diff=40&amp;oldid=prev"/>
		<updated>2012-11-21T14:47:07Z</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 16:47, 21 November 2012&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-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&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;   address 192.168.2.1&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;   address 192.168.2.1&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;   netmask 255.255.255.0&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;   netmask 255.255.255.0&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;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pr&lt;/del&gt;&amp;gt;&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;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;&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;br/&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;br/&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;Create routing tables for each interface&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;Create routing tables for each interface&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff::1.12:old-248:rev-40 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
	<entry>
		<id>https://wiki.faked.org/index.php?title=Policy_Based_Routing&amp;diff=248&amp;oldid=prev</id>
		<title>Jan: Created page with &quot;If you need to have two default gateways on two network interfaces in two separate subnets, you can set up &quot;Policy Based Routing&quot;. This will route the replies for incoming tra...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.faked.org/index.php?title=Policy_Based_Routing&amp;diff=248&amp;oldid=prev"/>
		<updated>2012-11-21T14:43:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;If you need to have two default gateways on two network interfaces in two separate subnets, you can set up &amp;quot;Policy Based Routing&amp;quot;. This will route the replies for incoming tra...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you need to have two default gateways on two network interfaces in two separate subnets, you can set up &amp;quot;Policy Based Routing&amp;quot;.&lt;br /&gt;
This will route the replies for incoming traffic out on the same interface, and use the default gateway for e.g. internet access.&lt;br /&gt;
&lt;br /&gt;
Configure both network interfaces, first interface as the one to use the default gateway.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto eth0 eth1&lt;br /&gt;
&lt;br /&gt;
interface eth0 inet static&lt;br /&gt;
  address 192.168.1.1&lt;br /&gt;
  netmask 255.255.255.0&lt;br /&gt;
  gateway 192.168.1.254&lt;br /&gt;
&lt;br /&gt;
interface eth1 inet static&lt;br /&gt;
  address 192.168.2.1&lt;br /&gt;
  netmask 255.255.255.0&lt;br /&gt;
&amp;lt;/pr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create routing tables for each interface&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;quot;1 incoming&amp;quot; &amp;gt;&amp;gt; /etc/iproute2/rt_tables&lt;br /&gt;
echo &amp;quot;2 outgoing&amp;quot; &amp;gt;&amp;gt; /etc/iproute2/rt_tables&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set up routing and rules for the first interface&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip route add 192.168.1.0/24 dev eth0 src 192.168.1.1 table incoming&lt;br /&gt;
ip route add default via 192.168.1.254 dev eth0 table incoming&lt;br /&gt;
ip rule add from 192.168.1.1/32 table incoming&lt;br /&gt;
ip rule add to 192.168.1.1/32 table incoming&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set up routing and rules for the second interface&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip route add 192.168.2.0/24 dev eth1 src 192.168.2.1 table outgoing&lt;br /&gt;
ip route add default via 192.168.2.254 dev eth1 table outgoing&lt;br /&gt;
ip rule add from 192.168.2.1/32 table outgoing&lt;br /&gt;
ip rule add to 192.168.2.1/32 table outgoing&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
</feed>