<?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>Technical Diary &#187; proxy</title>
	<atom:link href="http://andriigrytsenko.net/tag/proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://andriigrytsenko.net</link>
	<description>With Andrii Grytsenko</description>
	<lastBuildDate>Tue, 17 Aug 2010 08:25:33 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to get fully internet functionality from restricted environment over ssh</title>
		<link>http://andriigrytsenko.net/2009/07/how-to-get-fully-internet-functionality-from-restricted-environment-over-ssh/</link>
		<comments>http://andriigrytsenko.net/2009/07/how-to-get-fully-internet-functionality-from-restricted-environment-over-ssh/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 22:44:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tunnels]]></category>

		<guid isPermaLink="false">http://andriigrytsenko.net/?p=229</guid>
		<description><![CDATA[If you working place don&#8217;t provide internet or provide very restricted access to web pages. But you want to feel free in the internet browsing.

For this you need:
1. At least one open port for output connection OR access to proxy.
2. Server in the internet with root OR user rights. 
You can easily get it in [...]]]></description>
			<content:encoded><![CDATA[<p>If you working place don&#8217;t provide internet or provide very restricted access to web pages. But you want to feel free in the internet browsing.<br />
<span id="more-229"></span></p>
<p>For this you need:<br />
1. At least one open port for output connection OR access to proxy.<br />
2. Server in the internet with root OR user rights. </p>
<p>You can easily get it in several simple steps. Just imagine that you located at office1 and open port for ongoing connection = 443. Also you have access to server1 which located at internet. Now go to server1 and edit ssh configuration file. Add new <em>port</em> directive into this file(in case if you have open port, in other case skip this step). Like this:</p>
<pre>server1# grep -i port /etc/ssh/sshd_config
Port 22
Port 443
</pre>
<p>As you can see now server1 use 2 ports(22 and 443) for ssh daemon. Let&#8217;s check it:</p>
<pre>server1# netstat -lnp | grep ssh
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      3946/sshd
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      3946/sshd
</pre>
<p>It&#8217;s ok. The next step #2 install proxy server. You can choose anyone you like. I chose tinyproxy, because of it&#8217;s very small and simple in configuration. </p>
<pre>server1# apt-get install tinyproxy </pre>
<p>It&#8217;s valid command for debian. For your distro use distro specific package manager as well. </p>
<p>Go to /etc/tinyproxy/tinyproxy.conf and check <em>port</em> and <em>listen</em> directives for determinate on which port and address your proxy listen. In my case it&#8217;s port 8888 on localhost: </p>
<pre>server1#grep -E "^(Port|Listen)"  /etc/tinyproxy/tinyproxy.conf
Port 8888
Listen 127.0.0.1</pre>
<p>Start daemon and check that it run: </p>
<pre>server1# /etc/init.d/tinyproxy start
server1# netstat -lnp | grep tinyproxy
tcp        0      127.0.0.1:8888              0.0.0.0:*               LISTEN      3923/tinyproxy</pre>
<p>Looks fine. Now make ssh tunnel to your server. If you have direct connection to server. Use this :</p>
<pre>server1#ssh -p 443 user@server#1 -L8888:127.0.0.01:8888 </pre>
<p>If not then do as described <a href="http://andriigrytsenko.net/2009/07/ssh-connection-via-http-proxy/">here</a>. </p>
<p>And last one step is setting up proxy 127.0.0.1:8888 on your browser and enjoy. </p>
]]></content:encoded>
			<wfw:commentRss>http://andriigrytsenko.net/2009/07/how-to-get-fully-internet-functionality-from-restricted-environment-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anonymous proxy checker</title>
		<link>http://andriigrytsenko.net/2009/07/anonymous-proxy-checker/</link>
		<comments>http://andriigrytsenko.net/2009/07/anonymous-proxy-checker/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 11:29:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://andriigrytsenko.net/?p=201</guid>
		<description><![CDATA[There is anonymous proxy checker written by me.

To run it on your box you should have perl interpreter and some perl modules. Such as:
LWP::UserAgent
Getopt::Long 
You can get it directly from site or over the cpan util as well.  The source of script here You have to put it on your computer. Also  you [...]]]></description>
			<content:encoded><![CDATA[<p>There is anonymous proxy checker written by me.<br />
<span id="more-201"></span></p>
<p>To run it on your box you should have perl interpreter and some perl modules. Such as:</p>
<p><strong>LWP::UserAgent<br />
Getopt::Long </strong></p>
<p>You can get it directly from <a href="http://cpan.org">site</a> or over the cpan util as well.  The source of script <a href="http://andriigrytsenko.net/files/proxy_checker.txt">here</a> You have to put it on your computer. Also  you need get the list of proxy(It can be easily done by google, just type &#8220;anonymous proxy list&#8221; and you will get a lot of links). Take list and put into the file. Like this : </p>
<pre>
agrytsenko:~/tmp$ cat proxy.2
64.66.192.61:80 0.8680  Transp. US      Y       65%     2008-12-04 09:51:23
89.114.36.221:8000      1.0750  Elite   RO      ?       30%     2008-12-04 09:39:18
74.65.65.195:8000       1.1030  Elite   US      Y       47%     2008-12-04 09:40:49
89.97.128.86:6588       1.1630  Elite   IT      N       33%     2008-12-04 09:37:52
200.179.72.132:80       1.1830  Transp. BR      Y       91%     2008-12-04 09:51:23
207.182.129.90:3128     1.2570  Transp. US      Y       54%     2008-12-04 09:51:23
207.182.129.91:3128     1.2850  Transp. US      Y       57%     2008-12-04 09:51:23
66.98.152.157:6654      1.4750  Elite   US      Y       11%     2008-12-04 09:37:52
92.48.119.220:6654      1.6100  Elite   GB      Y       29%     2008-12-04 09:36:26</pre>
<p>or like this: </p>
<pre>
agrytsenko:~/tmp$ cat proxy
64.66.192.61:80
150.101.196.52:3128
114.30.47.10:80
114.127.246.36</pre>
<p>The main rule of file format: <strong>the first field has to be ip:port of proxy.</strong> </p>
<p>The script has several keys. Here they are:</p>
<pre>
agrytsenko:~/tmp$ ./proxy_checker.pl -h
-f file         Specify file
-v              Turn on verbose mode
-h              Print this help</pre>
<p>Okay, now you are ready to run it: </p>
<pre>
agrytsenko:~/tmp$ ./proxy_checker.pl -f ./proxy -v
Try to open proxy list ./proxy
Connect to site over 64.66.192.61:80...
Connection was not established. The reason is :
500 Can't connect to 64.66.192.61:80 (connect: timeout)</pre>
<pre>
Connect to site over 150.101.196.52:3128...
Success connected with IP=150.101.196.52
Proxy 150.101.196.52:3128 is avaible for connections
The 150.101.196.52:3128 is not fully anonymous. You ip address is 79.124.129.220</pre>
<pre>
Connect to site over 114.30.47.10:80...
Connection was not established. The reason is :
503 Service Unavailable</pre>
<pre>
Connect to site over 114.127.246.36:8080...
Success connected with IP=114.127.246.36
Proxy 114.127.246.36:8080 is avaible for connections</pre>
<p>As you can see we have only one fully anonymous proxy for now. It&#8217;s 114.127.246.36. </p>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://andriigrytsenko.net/2009/07/anonymous-proxy-checker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
