<?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>#!SUITS &#187; proxy</title>
	<atom:link href="http://suits.it.usyd.edu.au/wordpress/tag/proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://suits.it.usyd.edu.au/wordpress</link>
	<description>Sydney University IT Society</description>
	<lastBuildDate>Sun, 18 Oct 2009 14:50:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tutorial: SIT Network Proxy Setup</title>
		<link>http://suits.it.usyd.edu.au/wordpress/2008/04/14/tutorial-sit-network-proxy-setup/</link>
		<comments>http://suits.it.usyd.edu.au/wordpress/2008/04/14/tutorial-sit-network-proxy-setup/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 07:38:43 +0000</pubDate>
		<dc:creator>James Bunton</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[SIT]]></category>

		<guid isPermaLink="false">http://suits.it.usyd.edu.au/wordpress/?p=26</guid>
		<description><![CDATA[Web browser proxy settings for the School of IT network. Also instructions on how to make Unix command line utilities work with proxies.

Firefox settings
In Firefox 2.0, go to Edit-&#62;Preferences-&#62;Advanced-&#62;Network-&#62;Connection Settings
Put in the proxy details (host www-cache.it.usyd.edu.au, port 8000) and check the box marked &#8220;Use the same proxy for all protocols&#8221;. At the bottom there is [...]]]></description>
			<content:encoded><![CDATA[<p>Web browser proxy settings for the School of IT network. Also instructions on how to make Unix command line utilities work with proxies.</p>
<p><span id="more-26"></span></p>
<h3>Firefox settings</h3>
<p>In Firefox 2.0, go to Edit-&gt;Preferences-&gt;Advanced-&gt;Network-&gt;Connection Settings</p>
<p>Put in the proxy details (host www-cache.it.usyd.edu.au, port 8000) and check the box marked &#8220;Use the same proxy for all protocols&#8221;. At the bottom there is a list of domains to not use a proxy, add:<br />
<code>, .usyd.edu.au</code><br />
Alternatively you can use the autoconfigure URL:<br />
<code>http://www.it.usyd.edu.au/proxy.pac</code></p>
<h3>Unix Environment Variables</h3>
<p>See <a title="Command Line Proxy Tutorial" href="/wordpress/2008/04/14/tutorial-command-line-proxy">Command Line Proxy Tutorial</a> for more details.</p>
]]></content:encoded>
			<wfw:commentRss>http://suits.it.usyd.edu.au/wordpress/2008/04/14/tutorial-sit-network-proxy-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Command Line Proxy</title>
		<link>http://suits.it.usyd.edu.au/wordpress/2008/04/14/tutorial-command-line-proxy/</link>
		<comments>http://suits.it.usyd.edu.au/wordpress/2008/04/14/tutorial-command-line-proxy/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 07:36:48 +0000</pubDate>
		<dc:creator>James Bunton</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[SIT]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://suits.it.usyd.edu.au/wordpress/?p=23</guid>
		<description><![CDATA[Want to have your command line applications use the correct proxy to connect to the internet? Instructions here are applicable to Linux, OSX and other Unix systems.

Unix Environment
To use the School of IT proxies you want to set the following environment variables:
export http_proxy="http://www-cache.it.usyd.edu.au:8000"
export no_proxy="127.0.0.1, localhost, .usyd.edu.au"
sudo environment vars
sudo clears all environment variables before executing the [...]]]></description>
			<content:encoded><![CDATA[<p>Want to have your command line applications use the correct proxy to connect to the internet? Instructions here are applicable to Linux, OSX and other Unix systems.</p>
<p><span id="more-23"></span></p>
<h3>Unix Environment</h3>
<p>To use the School of IT proxies you want to set the following environment variables:<br />
<code>export http_proxy="http://www-cache.it.usyd.edu.au:8000"<br />
export no_proxy="127.0.0.1, localhost, .usyd.edu.au"</code></p>
<h3>sudo environment vars</h3>
<p>sudo clears all environment variables before executing the command for security. This means if you run something like<br />
<code>$ sudo aptitude update</code><br />
it won&#8217;t work because http_proxy gets cleared. You can fix this by doing the following. Be careful!<br />
<code>$ sudo visudo</code><br />
Add this line:</p>
<pre>Defaults env_keep="http_proxy https_proxy ftp_proxy no_proxy"</pre>
<h3>Mac OS X Location Settings</h3>
<p>If you use Mac OS X and change locations frequently it&#8217;d be nice if your command line utilities picked up the proxy settings from System Preferences.</p>
<p>Have a look at <a href="http://delx.net.au/projects/proxyconf">http://delx.net.au/projects/proxyconf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://suits.it.usyd.edu.au/wordpress/2008/04/14/tutorial-command-line-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: SSH using PuTTY</title>
		<link>http://suits.it.usyd.edu.au/wordpress/2008/03/02/tutorial-ssh-using-putty/</link>
		<comments>http://suits.it.usyd.edu.au/wordpress/2008/03/02/tutorial-ssh-using-putty/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 07:35:14 +0000</pubDate>
		<dc:creator>Edmund Tse</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://suits.it.usyd.edu.au/wordpress/?p=21</guid>
		<description><![CDATA[PuTTY is a program that allows you to use ssh on Windows. It has all the features of the Unix OpenSSH, and is an essential piece of software for any Windows user.

The instructions in the SSH Tutorial are for use within any unix environment. It&#8217;s a good idea to read this anyway, as chances are [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> is a program that allows you to use ssh on Windows. It has all the features of the Unix OpenSSH, and is an essential piece of software for any Windows user.</p>
<p><span id="more-21"></span></p>
<p>The instructions in the <a title="SSH Tutorial" href="/wordpress/2007/04/17/tutorial-ssh">SSH Tutorial</a> are for use within any unix environment. It&#8217;s a good idea to read this anyway, as chances are you&#8217;ll be logging in to a Unix SSH server.</p>
<h3>SSH Public/Private Keys</h3>
<p>In a standard installation of PuTTY, there is a tool named PuTTYgen. This is the alternative tool to the Unix ssh-keygen command which generates a public/private key pair.</p>
<h4>Generating the public/private key pair</h4>
<p>When PuTTYgen is run, you will be presented with a dialog box that asks you to move your mouse over the it to generate some randomness. All you need to do at this stage is move your mouse so that the cursor moves over the dialog box. Continue to move the cursor until the progress bar reaches 100%.</p>
<p>Afterwards, click on the &#8220;Save private key&#8221; button to output your private key to a .ppk file. Store this file in a safe location on your computer. Click on the &#8220;Save public key&#8221; button to output your public key to file. The contents of this file is equivalent to the id_rsa.pub file generated using ssh-keygen, which should be appended to the ~/.ssh/authorized_keys file on the SSH server.</p>
<h4>Using the key/pair</h4>
<p>To use a generated key pair when you connect to a server, you will need to reference the private key (.ppk file) when you configure the PuTTY SSH session.</p>
<p>Starting PuTTY, you will see a hierarchy of settings on the left hand side of the window. The settings page that we are concerned with is located under Connection &gt; SSH &gt; Auth. When you have selected &#8220;Auth&#8221;, you will notice that the settings page on the right hand side will change. Click on the &#8220;Browse&#8221; button for &#8220;Private key file for authentication&#8221;, then locate and select the .ppk file you have generated earlier. After the key is selected, your connection to the server will then attempt the public/private key authentication method.</p>
<p>Optionally, you may provide a default username to enter when you connect to the server under &#8220;Login details&#8221; on the page at Connection &gt; Data.</p>
<h3>Web Proxy Port Forwarding</h3>
<p>See the background information on the <a title="SSH Port Forwarding" href="/wordpress/2007/12/04/tutorial-ssh-port-forwarding">SSH Port Forwarding</a>.</p>
<p>Choose a host to connect to using SSH, e.g. congo1.ug.it.usyd.edu.au (or just congo1) on the standard port 22.</p>
<p>Go to Connection-&gt;SSH-&gt;Tunnels and set: Source port: 8000 Destination www-cache.it.usyd.edu.au:8000 Don&#8217;t forget to click add!</p>
<p>Click open at the bottom to start the connection. Now you can set your browser to proxy through localhost:8000 and it&#8217;ll go through the SIT web cache.</p>
]]></content:encoded>
			<wfw:commentRss>http://suits.it.usyd.edu.au/wordpress/2008/03/02/tutorial-ssh-using-putty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: SSH Port Forwarding</title>
		<link>http://suits.it.usyd.edu.au/wordpress/2007/12/04/tutorial-ssh-port-forwarding/</link>
		<comments>http://suits.it.usyd.edu.au/wordpress/2007/12/04/tutorial-ssh-port-forwarding/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 07:34:30 +0000</pubDate>
		<dc:creator>James Bunton</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ucc]]></category>

		<guid isPermaLink="false">http://suits.it.usyd.edu.au/wordpress/?p=20</guid>
		<description><![CDATA[This describes how to use an SSH tunnel to access web sites from the UCC (University Computing Centre) wireless network. This is what you want to read if youâ€™re an SIT student and you want internet access from your laptop in Wentworth, etc.

Please read this page in it&#8217;s entirety. It&#8217;s very useful to understand how [...]]]></description>
			<content:encoded><![CDATA[<p>This describes how to use an SSH tunnel to access web sites from the UCC (University Computing Centre) wireless network. This is what you want to read if youâ€™re an SIT student and you want internet access from your laptop in Wentworth, etc.</p>
<p><span id="more-20"></span></p>
<p>Please read this page in it&#8217;s entirety. It&#8217;s very useful to understand how these techniques work.</p>
<h3>Background</h3>
<p>SIT means School of Information Technologies. This tutorial will only be useful if you&#8217;re an SIT student. UCC means University Computing Centre. They do lots of things, including supplying wireless networks for people to connect to throughout the university.</p>
<p>If you connect to a wireless network in a building like Wentworth, chances are it&#8217;s the UCC network. They supply a rather annoying (to me) VPN client which you&#8217;re supposed to use to access external sites through their wireless.</p>
<p>A proxy, for our purposes, means a computer that has greater network access than you, and can make requests on your behalf and return the result.</p>
<h3>Procedure</h3>
<p>The UCC wireless gives you limited connectivity without their VPN client. Thankfully this connectivity includes the ability to SSH to computers on the SIT network.</p>
<p>The SIT runs a web proxy, which requires an SIT username/password and allows access to web pages on the internet. The server is www-cache.it.usyd.edu.au and runs on port 8000. These are the settings you use when you&#8217;re directly connected to the SIT network, eg using a computer in the labs.</p>
<p>Note that your SIT internet quota is separate and in addition to your UCC quota. So if you&#8217;ve run out of your SIT web quota, you can still connect to the internet using VPN, and keep surfing the net with your UCC internet quota.</p>
<p>You cannot connect directly to the SIT web proxy from the wireless, and you cannot SSH directly to the SIT web proxy. However you can SSH to one of the congos, say congo1. SSH has a nice feature called TCP tunneling. Basically what it does is allow you to forward connections to a port on your computer (localhost) to a port on a remote computer, through an SSH connection. Here&#8217;s a diagram:</p>
<p>You connect to congo1 from your laptop.</p>
<pre>[laptop]  &lt;-ssh connection-&gt;  [congo1]</pre>
<p>You want to use congo1 as a proxy to connect to the SIT web proxy. Nice eh?</p>
<pre>         (forwarded connection
          piggybacks over SSH)
[laptop]  &lt;-ssh connection-&gt;  [congo1]
                                | (forwarded connection)
             [www-cache.it.usyd.edu.au]</pre>
<h3>Details</h3>
<p>Individual forwarding command:<br />
<code><br />
ssh -L 1234:desthost:4321 userXYXY@proxyhost</p>
<ul>
<li> The -L means enable port forwarding.</li>
<li> The first port number is the port to listen to on the machine you're running the SSH client on.</li>
<li> The second field and third fields specify the host and port which you want your connection to end up at. This is from the perspective of the machine you're SSHing to.</li>
<li> The last parameter is the username@host of the computer you want to SSH to, the one doing the forwarding.</li>
</ul>
<p>The end result, is that if you connect to localhost:1234 on your machine locally, then it gets forwarded through proxyhost to port 4321 on desthost.</p>
<h3>Web Proxy Quick HOWTO</h3>
<p>To set this up, you run one command. See above for details on the options.<br />
</code><code>ssh -L 8000:www-cache.it.usyd.edu.au:8000 userXXXX@congo1.ug.it.usyd.edu.au</code><br />
Now you have an SSH tunnel. Whenever you connect to localhost:8000 the connection will be forwarded through congo1 to www-cache.it.usyd.edu.au:8000</p>
<p>So you need to configure your web browser to use as the proxy: Host: localhost Port: 8000</p>
<p>This can be simplified by using the ssh config file (see <a href="http://suits.it.usyd.edu.au/wordpress/2007/04/17/tutorial-ssh/">see SUITS tutorial</a>) instead of typing out this long command.<br />
<code><br />
Host sitproxy<br />
&nbsp;&nbsp;&nbsp;&nbsp;HostName congo1.ug.it.usyd.edu.au<br />
&nbsp;&nbsp;&nbsp;&nbsp;User userXXXX<br />
&nbsp;&nbsp;&nbsp;&nbsp;LocalForward 8000 www-cache.it.usyd.edu.au:8000<br />
</code><br />
Which can then be used via<br />
<code><br />
$ ssh sitproxy<br />
</code></p>
<h3>Jabber (Google Talk) Quick HOWTO</h3>
<p>The SIT network allows unproxied outgoing connections on port 443 to all hosts. This port is usually used for HTTPS, that&#8217;s secure HTTP. Many Jabber servers (google talk, jabber.org.au) also listen on this port.</p>
<p>You can take advantage of this by proxying your Jabber connections from the UCC wireless through one of the congos. Run this command for google talk, or modify it as appropriate for your Jabber server.</p>
<pre>ssh -L 5222:talk.google.com:443 userXXXX@congo1.ug.it.usyd.edu.au</pre>
<p>Then go into your Jabber client and set it to connect to a specific host/port. Host: localhost Port: 5222</p>
<h3>Postgrad Account</h3>
<p>For those with a postgraduate account, you can connect through a postgraduate server, avoiding the proxy/download limit issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://suits.it.usyd.edu.au/wordpress/2007/12/04/tutorial-ssh-port-forwarding/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
