<?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>networking Archives - Installing.in</title>
	<atom:link href="https://www.installing.in/tag/networking/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.installing.in/tag/networking/</link>
	<description></description>
	<lastBuildDate>Sat, 13 Aug 2022 20:47:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">110734269</site>	<item>
		<title>[Solved] Ubuntu refusing connection on port 80</title>
		<link>https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/</link>
					<comments>https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/#respond</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Sat, 13 Aug 2022 20:13:28 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ufw]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=793</guid>

					<description><![CDATA[<p>I was getting this issue that I was not able to connect to port 80 on ubuntu server. Same virtual network settings were being used with a different instance but... </p>
<p>The post <a href="https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/">[Solved] Ubuntu refusing connection on port 80</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I was getting this issue that I was not able to connect to port 80 on ubuntu server. Same virtual network settings were being used with a different instance but everything was working fine on it. I figured the problem is in the instance settings.</p>



<p>I searched through the web but nothing was working. So I decided to go through the server log. I know I should have done this first.</p>



<p>I found these lines in the <code>syslog</code> file:</p>



<figure class="wp-block-image size-large"><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/iptable_persistent_flush.png?ssl=1"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="760" height="161" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/iptable_persistent_flush.png?resize=760%2C161&#038;ssl=1" alt="" class="wp-image-794"/></a></figure>



<p> The issue was in iptables and I needed to flush it</p>



<p>I ran the command highlighted in the the image above</p>



<pre class="wp-block-preformatted">/usr/sbin/netfilter-persistent flush </pre>



<p>It gave following output</p>



<figure class="wp-block-image size-full"><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/iptable-flush.png?ssl=1"><img data-recalc-dims="1" decoding="async" width="757" height="130" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2022/08/iptable-flush.png?resize=757%2C130&#038;ssl=1" alt="" class="wp-image-795"/></a></figure>



<p>I tried to to connect to the port 80 and the default nginx page loaded in browser.</p>



<p>Problem solved.</p>



<p>But doing this messed up my OpenVPN server. OpenVPN client was connecting but internet was not accessible.</p>



<p>So I rebooted the system to see if it fixes the problem. </p>



<p>It did fixed OpenVPN. </p>



<p>But again port 80 was inaccessible.</p>



<p>I checked the status of <code>ufw</code> and it was disable. I had enabled it before I rebooted. Iptable rules were all reset. I googled why <code>ufw </code>was disabled and found<code> iptables-persistent </code>conflicts with <code>ufw</code>.</p>



<p>I disabled <code>iptables-persisten</code>t using this command</p>



<pre class="wp-block-preformatted">sudo systemctl disable netfilter-persistent</pre>



<p>I rebooted the system again and this time <code>ufw</code> stayed enabled and I was able to access the port 80 and also OpenVPN was working as intended.</p>



<p></p>
<p>The post <a href="https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/">[Solved] Ubuntu refusing connection on port 80</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/solved-ubuntu-refusing-connection-on-port-80/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">793</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 12/80 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Disk
Database Caching 2/44 queries in 0.010 seconds using Redis

Served from: installing.in @ 2026-05-21 09:50:52 by W3 Total Cache
-->