<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Networking on System Overlord</title><link>https://systemoverlord.com/tags/networking.html</link><description>Recent content in Networking on System Overlord</description><generator>Hugo</generator><language>en-us</language><managingEditor>david@systemoverlord.com (David Tomaschik)</managingEditor><webMaster>david@systemoverlord.com (David Tomaschik)</webMaster><lastBuildDate>Wed, 25 Mar 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://systemoverlord.com/tags/networking/index.xml" rel="self" type="application/rss+xml"/><item><title>Security 101: X-Forwarded-For vs. Forwarded vs PROXY</title><link>https://systemoverlord.com/2020/03/25/security-101-x-forwarded-for-vs-forwarded-vs-proxy.html</link><pubDate>Wed, 25 Mar 2020 00:00:00 +0000</pubDate><author>david@systemoverlord.com (David Tomaschik)</author><guid>https://systemoverlord.com/2020/03/25/security-101-x-forwarded-for-vs-forwarded-vs-proxy.html</guid><description>&lt;p&gt;Over time, there have been a number of approaches to indicating the original
client and the route that a request took when forwarded across multiple proxy
servers. For HTTP(S), the three most common approaches you&amp;rsquo;re likely to
encounter are the &lt;code&gt;X-Forwarded-For&lt;/code&gt; and &lt;code&gt;Forwarded&lt;/code&gt; HTTP headers, and the &lt;code&gt;PROXY protocol&lt;/code&gt;. They&amp;rsquo;re all a little bit different, but also the same in many ways.&lt;/p&gt;
&lt;h2 id="x-forwarded-for"&gt;X-Forwarded-For&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;X-Forwarded-For&lt;/code&gt; is the oldest of the 3 solutions, and was probably introduced
by the Squid caching proxy server. As the &lt;code&gt;X-&lt;/code&gt; prefix implies, it&amp;rsquo;s not an
official standard (i.e., an IETF RFC). The header is an HTTP multi-valued
header, which means that it can have one or more values, each separated by a
comma. Each proxy server should append the IP address of the host from which it
received the request. The resulting header looks something like:&lt;/p&gt;</description></item><item><title>Martian Packet Messages</title><link>https://systemoverlord.com/2011/11/06/martian-packet-messages/</link><pubDate>Sun, 06 Nov 2011 02:36:13 +0000</pubDate><author>david@systemoverlord.com (David Tomaschik)</author><guid>https://systemoverlord.com/2011/11/06/martian-packet-messages/</guid><description>&lt;p&gt;
	Occasionally, you might see messages like the following in your Linux kernel messages:&lt;/p&gt;
&lt;blockquote&gt;&lt;div class="geshifilter"&gt;
&lt;div class="text geshifilter-text" style="font-family:monospace;"&gt;
&lt;pre style="font-family: monospace; font-weight: normal; font-style: normal"&gt;martian source 192.168.1.1 from 127.0.0.1, on dev eth1&amp;lt;br /&amp;gt;
        ll header: 52:54:00:98:99:d0:52:54:00:de:d8:10:08:00 &lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;
	There's a lot of discussion out there about what this means, but not a lot about how to trace down the source.  Hopefully this will provide some insight into what the messages actually mean, and how to understand them.&lt;/p&gt;</description></item></channel></rss>