<?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>Cypris&#039; lookout &#187; Privacy</title>
	<atom:link href="http://blog.nkadesign.com/category/privacy/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nkadesign.com</link>
	<description>Renaud Bompuis on the interwebs!</description>
	<lastBuildDate>Sat, 14 Jan 2012 06:30:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>China Telecom blocking email access?</title>
		<link>http://blog.nkadesign.com/2006/china-telecom-blocking-email-access/</link>
		<comments>http://blog.nkadesign.com/2006/china-telecom-blocking-email-access/#comments</comments>
		<pubDate>Sat, 27 May 2006 03:00:48 +0000</pubDate>
		<dc:creator>Renaud Bompuis</dc:creator>
				<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.nkadesign.com/?p=4</guid>
		<description><![CDATA[<img src="/wp-content/uploads/security01.png" alt="security01.png" title="security01.png" align="left" width="64" height="64" hspace="5" vspace="5" border="0" />For months, every time more than a handful of connections were made between my ex-employer's office in Shanghai and their email server in Hong Kong, the latter would become unreachable, not just for email but for web access as well. The strange thing was that access to the rest of the Internet would be untouched.<br />
This prompted me to experiment with ways to circumvent the ISP's port blocking restrictions.<br />
The fight was on!]]></description>
			<content:encoded><![CDATA[<p><img src="/wp-content/uploads/security01.png" alt="security01.png" title="security01.png" align="left" width="64" height="64" hspace="5" vspace="5" border="0" />
I sometimes -although not often- work for my previous employer, a railway equipment manufacturer, to set up Linux servers.</p>

<p>They called me earlier this week to help them find a solution to a problem they had with getting their email off the company server, located in Hong Kong, from their office in Shanghai.<br />
<span id="more-4"></span>
For months, every time more than a handful of connections were  made, the server in Hong Kong would become unreachable, not just for email but for web access as well. The strange thing was that access to the rest of the Internet would be untouched.<br />
Only that server would become impossible to access after a little while.</p>

<p>The office in Shanghai uses an ADSL connection provided by China Telecom. It&#8217;s a standard broadband service with a dynamic IP allocated every time they reconnect to the network. Nothing special there except that they block port 25 -used to send email-.<br />
A lot of ISP do that in an effort to block spammers and worms infecting desktop PC: they require you to use their own SMTP servers to send email.<br />
If it was only port 25, it would have been fine, but other ports to <em>collect</em> email would trigger the blocking behaviour as well: getting your email through IMAP or simple POP3 on ports 143 and 110 would result in everyone in the office being unable to connect to fetch their email.<br />
When this occurred, the ADSL modem had to be physically disconnected. Everything would be fine again for a short while after reconnecting and getting a new IP.</p>

<p>So that was the situation when I started to think about ways to circumvent all that.</p>

<p>First thing I did was to open some randomly chosen ports on the mail server and redirect all traffic from those ports to their corresponding local ports: you would now access email on port 523 instead or the normal 143 for IMAP, etc.<br />
Well, this didn&#8217;t work for long. After just a few hours it seem that <em>they</em> caught up with us again and we were back to square one.</p>

<p>Whatever was blocking the connection was more clever than just blindly blocking a few designated ports, it was also analysing the content of network packets to specially detect email activity.<br />
The second solution was to again use 3 non-specific ports on the server for SMTP, IMAP and POP3, but this time use secure encryption (SSL) to ensure that the packets could not be analysed.</p>

<p>So far this seems to have worked. The only instance of blocking the office suffered so far was due to a laptop that was still using the original ports to send/receive email. Once its mail client was reconfigured, things went back to normal.</p>

<p>This spurred me add a couple of technical articles to my long and extensive <a href="http://etc.nkadesign.com/EmailServer/EmailServer">email server how-to</a> on <etc.nkadesign.com>: <a href="http://etc.nkadesign.com/EmailServer/SecureAccess">SecureAccess</a>, <a href="http://etc.nkadesign.com/EmailServer/AlternateAccess">AlternateAccess</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nkadesign.com/2006/china-telecom-blocking-email-access/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

