<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">
I have a Ubuntu 16.04 server with Squid 3.5.22 installed. It acts as a gateway in a LAN.</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">
It is configured to intercept HTTP and HTTPS traffic (Transparent). So iptables redirects were used for ports 80 and 443.</p>
<div class="">The server runs two scripts: </div>
<div class=""><u class=""><b class="">nat.sh</b></u> to bridge the two network cards, allowing LAN computers access to the internet through the servers Internet interface card.</div>
<div class=""><b class=""><u class="">iptables.sh</u></b> which defines the ip rules and port forwarding: <font color="#005999" face="Arial, Helvetica Neue, Helvetica, sans-serif" class=""><span style="orphans: 2; widows: 2; background-color: rgb(255, 255, 255); border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(69, 69, 69); cursor: pointer;" class=""><a href="http://pastebin.com/SqpbmYQQ" class="">http://pastebin.com/SqpbmYQQ</a></span></font></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">BEFORE RUNNING iptables.sh...</div>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">
When I connect a LAN computer to it, everything works as expected. Complete Internet access with some HTTP and HTTPS domains blocked/redirected to another page. Skype for Business logs in successfully.</p>
<div class=""><br class="">
</div>
<div class="">AFTER RUNNING iptables.sh</div>
<div class=""><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">Skype for Business disconnects, and fails to re-connect, normal skype works
 just fine.</span></div>
<div class=""><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""><br class="">
</span></div>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">
I revised: <a href="https://support.office.com/en-us/article/Create-DNS-records-at-eNomCentral-for-Office-365-a6626053-a9c8-445b-81ee-eeb6672fae77?ui=en-US&rs=en-US&ad=US#bkmk_verify" rel="nofollow noreferrer" style="margin: 0px; padding: 0px; border-width: 0px 0px 1px; border-bottom-style: dotted; border-bottom-color: rgb(69, 69, 69); color: rgb(0, 89, 153); text-decoration: none; cursor: pointer;" class="">https://support.office.com/en-us/article/Create-DNS-records-at-eNomCentral-for-Office-365-a6626053-a9c8-445b-81ee-eeb6672fae77?ui=en-US&rs=en-US&ad=US#bkmk_verify</a> And
 added all DNS configurations on enom.</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">
That got rid of the DNS error I was getting to another error saying service is temporarily unavailable.</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">
Any suggestions to why this is happening? Any solutions?</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">
<strong style="margin: 0px; padding: 0px; border: 0px;" class="">Note:</strong> both router and Ubuntu's WAN interface use Google's 8.8.8.8 DNS</p>
<div class=""><br class="">
</div>
<div class="">Any help is really appreciated as I have been trying to fix this for days!</div>
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<b class=""><br class="Apple-interchange-newline">
<br class="">
</b></div>
<br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><img height="38" width="45" apple-inline="yes" id="0B744948-4156-43F7-8154-8852923046EB" apple-width="yes" apple-height="yes" src="cid:2FD1C3AB-E45C-49F0-84AB-0F8AC658BD11@routerb408e2.com" class=""></span><em style="font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(0, 128, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" class=""><strong class="">Piensa
 en el medio ambiente antes de imprimir este email.</strong></em> </span></div>
<br class="">
</body>
</html>