March 27, 2006

Simple hack getting xchat, iirc, ftp, wget, lynx and other protocols, through squid proxy, and other Unix/Linux proxies.

Here is a simple little Linux/Unix hack, If you are having a problem getting your packets through a proxy with iirc, xchat, lynx, wget, ftp or some other application or tool.

The symptoms for not getting through the proxy is usually a session time out. The applicatons sends it's SYN packets, but will never recieve any from
the non responding server on the other end of the TCP handshake.

Three way handshake TCP

Client Server

1) SYN 2) SYN-ACK
3) ACK


If you're proxy allows, you can always try to export a http_proxy or ftp_proxy, (works with squid)

Examples,

$ export http_proxy=1.2.3.4:8081 (ip address and port number, usually 8080, 8081 of the proxy server)

or/and


$ export ftp_proxy=1.2.3.4:8081 (ip address and port number of the proxy server)

To verify that the environment variable for http/ftp proxy is set, just echo
$ echo $http_proxy

You should see http://ip.address.of.proxy:port_number

Make sure you include the $ sign. $http_proxy, $ftp_proxy