<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>firewall &#8211; Giovanni F. Mazzeo De Santolo</title>
	<atom:link href="https://desantolo.com/tag/firewall/feed/" rel="self" type="application/rss+xml" />
	<link>https://desantolo.com</link>
	<description>That italian IT guy</description>
	<lastBuildDate>Sun, 27 Dec 2020 05:38:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
<site xmlns="com-wordpress:feed-additions:1">123042357</site>	<item>
		<title>OPNsense firewall on Proxmox fix &#8216;no internet&#8217;</title>
		<link>https://desantolo.com/2018/11/opnsense-firewall-on-proxmox-fix-no-internet/</link>
		
		<dc:creator><![CDATA[Giovanni]]></dc:creator>
		<pubDate>Sat, 17 Nov 2018 18:17:25 +0000</pubDate>
				<category><![CDATA[Proxmox]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[opnsense]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<guid isPermaLink="false">https://desantolo.com/?p=566</guid>

					<description><![CDATA[Quick post to note how I determined and then fixed the internet access issue I was having when I installed OPNsense on Proxmox. OPNsense virtual machine is configured with VirtiO network drivers. Other than the obvious &#8220;I can&#8217;t access anything &#8230; <a href="https://desantolo.com/2018/11/opnsense-firewall-on-proxmox-fix-no-internet/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Quick post to note how I determined and then fixed the internet access issue I was having when I installed OPNsense on Proxmox.</p>
<p>OPNsense virtual machine is configured with <strong>VirtiO</strong> network drivers.</p>
<p>Other than the obvious &#8220;I can&#8217;t access anything on the internet&#8221; or can&#8217;t reach external IP addresses problem I looked at troubleshooting via <strong>nmap</strong> &#8211; because the devices on the network could ping externally (8.8.8.8) and also resolve DNS requests.</p>
<p>In a broken state you may see &#8216;tcpwrapper&#8217; when testing a known host serving HTTP, like so:</p>
<p class="p1"><code><span class="s1">root@test:~# nmap -p 80 -sV 216.58.194.206</span></code></p>
<p class="p1"><code><span class="s1">Starting Nmap 7.40 ( https://nmap.org ) at 2018-11-17 17:54 UTC</span></code></p>
<p class="p1"><code><span class="s1">Nmap scan report for sfo03s01-in-f206.1e100.net (216.58.194.206)</span></code></p>
<p class="p1"><code><span class="s1">Host is up (0.010s latency).</span></code></p>
<p class="p1"><code><span class="s1">PORT <span class="Apple-converted-space">  </span>STATE SERVICE<span class="Apple-converted-space">    </span>VERSION</span></code></p>
<p class="p1"><code><span class="s1">80/tcp open<span class="Apple-converted-space">  </span>tcpwrapped</span></code></p>
<p class="p1"><code><span class="s1">Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .</span></code></p>
<p class="p1"><code><span class="s1">Nmap done: 1 IP address (1 host up) scanned in 7.91 seconds</span></code></p>
<p>To fix this issue, ensure that &#8220;<strong>Disable hardware checksum offload</strong>&#8221; is  enabled in the OPNsense interface, then reboot the firewall for changes to take effect.</p>
<p>After a reboot, doing another test via nmap will actually respond with HTTP fingerprints, as expected and internet is back.</p>
<p class="p1"><code><span class="s1">root@test:~# nmap -p 80 -sV 216.58.194.206</span></code></p>
<p class="p1"><code><span class="s1">Starting Nmap 7.40 ( https://nmap.org ) at 2018-11-17 18:00 UTC</span></code></p>
<p class="p1"><code><span class="s1">Nmap scan report for sfo03s01-in-f14.1e100.net (216.58.194.206)</span></code></p>
<p class="p1"><code><span class="s1">Host is up (0.0096s latency).</span></code></p>
<p class="p1"><code><span class="s1">PORT <span class="Apple-converted-space">  </span>STATE SERVICE VERSION</span></code></p>
<p class="p1"><code><span class="s1">80/tcp open<span class="Apple-converted-space">  </span>http<span class="Apple-converted-space">    </span>gws</span></code></p>
<p class="p1"><code><span class="s1">1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :</span></code></p>
<p class="p1"><code><span class="s1">SF-Port80-TCP:V=7.40%I=7%D=11/17%Time=5BF0574C%P=x86_64-pc-linux-gnu%r(Get</span></code></p>
<p class="p1"><code><span class="s1">SF:Request,8A7A,"HTTP/1\.0\x20200\x20OK\r\nDate:\x20Sat,\x2017\x20Nov\x202</span></code></p>
<p class="p1"><code><span class="s1">SF:018\x2018:00:43\x20GMT\r\nExpires:\x20-1\r\nCache-Control:\x20private,\</span></code></p>
<p class="p1"><code><span class="s1">SF:x20max-age=0\r\nContent-Type:\x20text/html;\x20charset=ISO-8859-1\r\nP3</span></code></p>
<p class="p1"><code><span class="s1">SF:P:\x20CP=\"This\x20is\x20not\x20a\x20P3P\x20policy!\x20See\x20g\.co/p3p</span></code></p>
<p class="p1"><code><span class="s1">SF:help\x20for\x20more\x20info\.\"\r\nServer:\x20gws\r\nX-XSS-Protection:\</span></code></p>
<p class="p1"><code><span class="s1">SF:x201;\x20mode=block\r\nX-Frame-Options:\x20SAMEORIGIN\r\nSet-Cookie:\x2</span></code></p>
<p class="p1"><code><span class="s1">SF:01P_JAR=2018-11-17-18;\x20expires=Mon,\x2017-Dec-2018\x2018:00:43\x20GM</span></code></p>
<p class="p1"><code><span class="s1">SF:T;\x20path=/;\x20domain=\.google\.com\r\nSet-Cookie:\x20NID=146=0dp1WLb</span></code></p>
<p class="p1"><code><span class="s1">SF:UhFIr1MIVwhAglx_4O6x-0eJHrmYFTov9a3oFxE2-lZSUI_9mmKBFXQZjYbjKbSRiirLZ-U</span></code></p>
<p class="p1"><code><span class="s1">SF:cfybTiNQR_vmHD2MY4RBHP-hj4K7oyQX4lXuCgrSU7ESRXiX2Jn0qwoLWvvEItnC2hgDHEb</span></code></p>
<p class="p1"><code><span class="s1">SF:oLJffQrfiEazdGDp5XppPU;\x20expires=Sun,\x2019-May-2019\x2018:00:43\x20G</span></code></p>
<p class="p1"><code><span class="s1">SF:MT;\x20path=/;\x20domain=\.google\.com;\x20HttpOnly\r\nAccept-Ranges:\x</span></code></p>
<p class="p1"><code><span class="s1">SF:20none\r\nVary:\x20Accept-Encoding\r\n\r\n&lt;!doctype\x20html&gt;&lt;html\x20it</span></code></p>
<p class="p1"><code><span class="s1">SF:emscope=\"\"\x20itemtype=\"http://schema\.org/WebPage\"\x20lang=\"en\"&gt;</span></code></p>
<p class="p1"><code><span class="s1">SF:&lt;head&gt;&lt;meta\x20content=\"Search\x20the\x20world's\x20information,\x20in</span></code></p>
<p class="p1"><code><span class="s1">SF:cluding\x20webpages,\x20images,\x20videos\x20and\x20more\.\x20Google\x2</span></code></p>
<p class="p1"><code><span class="s1">SF:0has\x20ma")%r(HTTPOptions,71B,"HTTP/1\.0\x20405\x20Method\x20Not\x20Al</span></code></p>
<p class="p1"><code><span class="s1">SF:lowed\r\nAllow:\x20GET,\x20HEAD\r\nDate:\x20Sat,\x2017\x20Nov\x202018\x</span></code></p>
<p class="p1"><code><span class="s1">SF:2018:00:44\x20GMT\r\nContent-Type:\x20text/html;\x20charset=UTF-8\r\nSe</span></code></p>
<p class="p1"><code><span class="s1">SF:rver:\x20gws\r\nContent-Length:\x201592\r\nX-XSS-Protection:\x201;\x20m</span></code></p>
<p class="p1"><code><span class="s1">SF:ode=block\r\nX-Frame-Options:\x20SAMEORIGIN\r\n\r\n&lt;!DOCTYPE\x20html&gt;\n</span></code></p>
<p class="p1"><code><span class="s1">SF:&lt;html\x20lang=en&gt;\n\x20\x20&lt;meta\x20charset=utf-8&gt;\n\x20\x20&lt;meta\x20na</span></code></p>
<p class="p1"><code><span class="s1">SF:me=viewport\x20content=\"initial-scale=1,\x20minimum-scale=1,\x20width=</span></code></p>
<p class="p1"><code><span class="s1">SF:device-width\"&gt;\n\x20\x20&lt;title&gt;Error\x20405\x20\(Method\x20Not\x20Allo</span></code></p>
<p class="p1"><code><span class="s1">SF:wed\)!!1&lt;/title&gt;\n\x20\x20&lt;style&gt;\n\x20\x20\x20\x20\*{margin:0;padding:</span></code></p>
<p class="p1"><code><span class="s1">SF:0}html,code{font:15px/22px\x20arial,sans-serif}html{background:#fff;col</span></code></p>
<p class="p1"><code><span class="s1">SF:or:#222;padding:15px}body{margin:7%\x20auto\x200;max-width:390px;min-he</span></code></p>
<p class="p1"><code><span class="s1">SF:ight:180px;padding:30px\x200\x2015px}\*\x20&gt;\x20body{background:url\(//</span></code></p>
<p class="p1"><code><span class="s1">SF:www\.google\.com/images/errors/robot\.png\)\x20100%\x205px\x20no-repeat</span></code></p>
<p class="p1"><code><span class="s1">SF:;padding-right:205px}p{margin:11px\x200\x2022px;overflow:hidden}ins{col</span></code></p>
<p class="p1"><code><span class="s1">SF:or:#777;text-decoration:none}a\x20img{border:0}@media\x20screen\x20and\</span></code></p>
<p class="p1"><code><span class="s1">SF:x20\(max-width:772px\){body{background:none;margin-top:0;max-width:none</span></code></p>
<p class="p1"><code><span class="s1">SF:;padding");</span></code></p>
<p class="p1"><code><span class="s1">Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .</span></code></p>
<p class="p1"><code><span class="s1">Nmap done: 1 IP address (1 host up) scanned in 52.89 seconds</span></code></p>
<p class="p1"><code><span class="s1">root@test:~# </span></code></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">566</post-id>	</item>
		<item>
		<title>Plex mediaserver on FreeNAS allowing anyone to stream without login</title>
		<link>https://desantolo.com/2016/12/plex-mediaserver-on-freenas-allowing-anyone-to-stream-without-login/</link>
					<comments>https://desantolo.com/2016/12/plex-mediaserver-on-freenas-allowing-anyone-to-stream-without-login/#respond</comments>
		
		<dc:creator><![CDATA[Giovanni]]></dc:creator>
		<pubDate>Mon, 26 Dec 2016 14:36:52 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[freenas]]></category>
		<category><![CDATA[jail]]></category>
		<category><![CDATA[plex media server]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[unknown traffic]]></category>
		<guid isPermaLink="false">https://desantolo.com/?p=449</guid>

					<description><![CDATA[I&#8217;ve been a user of Plex mediaserver for over two years, I set this up on a FreeNAS jail a long time ago and in the past few days I noticed something funny. Out of nowhere there were two additional &#8230; <a href="https://desantolo.com/2016/12/plex-mediaserver-on-freenas-allowing-anyone-to-stream-without-login/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been a user of Plex mediaserver for over two years, I set this up on a FreeNAS jail a long time ago and in the past few days I noticed something funny.</p>
<p>Out of nowhere there were two additional streams going on in my server onto the internet, I usually share my library with friends and family but what was curious about this traffic was that Plex was claiming that these two streams were &#8220;on my local network&#8221;<br />
<span id="more-449"></span></p>
<p>After reviewing firewall logs and traffic reports (pfSense), I saw traffic from some Australia IP addresses as well as Egypt on my plex port. I discovered that when I setup Plex on FreeNAS I had followed someone&#8217;s guide and steps and there was a setting that the guide required on file /usr/pbi/plexmediaserver-amd64/plexdata/Plex Media Server/Preferences.xml</p>
<p><strong><code>disableRemoteSecurity="1" </code></strong></p>
<p>Somehow for the past 2 years this has gone undetected, mostly because I have never (until now) detected anyone that I did not trust streaming my media library. Some Google searches told part of the story, some websites and facebook pages started sharing links to my public IP address and plex port.</p>
<p>I setup a quick SSH tunnel to one of my servers to get an &#8216;external&#8217; view from outside my network and sure enough, you could see my library and stream anything, no login required!</p>
<p>After some research, even though my plex settings were set to require a login to be able to stream settings set on the Plex server settings page were being ignored. Finally when I checked the XML file manually I found out that the security was being disabled and so that is why Plex was not applying the settings.</p>
<p>If you have noticed any weird traffic or use the setting above on your FreeNAS + Plex jail &#8211; please be wary and you may want to close that loophole by removing that string from the XML Preferences file and restart Plex. You can whitelist your local network so that no login is required (I have 172.16.0.0/20 whitelisted).</p>
<p>It remains a mystery how these people found my public IP address, but I assume someone port scanned me for vulnerabilities and found the web portal wide open, so they started sharing the link.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://desantolo.com/2016/12/plex-mediaserver-on-freenas-allowing-anyone-to-stream-without-login/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">449</post-id>	</item>
	</channel>
</rss>
