using nc as proxy

Igor Gueths igueths at lava-net.com
Mon Apr 20 13:13:44 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi. You can actually do this with the OpenSSH client (look at the information on
having the client act as a Socks proxy for more info). Basically, something like
this wouldd do the trick:
ssh -D 127.0.0.1:port yourserver at yourhostname
Once this is done, you effectively now have a Socks proxy bound to
127.0.0.1:port. In order to get everything to use it, you will need to install
Proxychains (http://proxychains.sf.net). Once configured, all you have to do is
set LD_PRELOAD=/path/to/proxychains/libproxychains.so. Hth.
On Mon, Apr 20, 2009 at 10:37:44AM -0600, Tyler Littlefield wrote:
> Hello,
> I've got a quick question:
> I want to make a proxy that works back and forth, so I can connect to the port on my linux system and have a tunnel of sorts.
> I see something like:
> $ nc -l -p 12345 | nc www.google.com 80 | nc -l -p 12346
> but that means that I have to connect to two connections to send and receive data.
> Is there a better way to do this?
> 
> 
> Thanks,
> Tyler Littlefield
> Web: tysdomain.com
> email: tyler at tysdomain.com
> My programs don't have bugs, they're called randomly added features.
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

- -- 
Igor
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iQIVAwUBSeytR6e2pgKIdGq4AQo3XA/+IKs/K7CMSkkTU6pRiU7SmQFwSytRDQ74
Blox3Dl98CgieYwI5cOiy5jELIlBnnwWe6aYjqfGWFyMD+BTdlvtzR5+xea/8EFS
9/bZQ1j2R/oGgTaHzl2tF/5RrVmzSbTB6H84/1tbTj6dDIa6etdVzve3YkwrYanJ
73tG6rk1decHe69NwYDIsgyOZ+vS0iDK9zBbBFTLgrn8kd9fDnGTaAEeb3u1nxII
dlbrUlFRI+dASrAsO29eu2ataCUJZ74rmA/ZXtwxbC5dRf0O2zIHjXOIFOZGGr9N
aQSjYuSGypSO2MXLRFFimbTcI7LRyHsuwfRAHjXbpWdYfZ+qhnL5+gL4aH/AoHFf
BHiBFpKi7JlPqL8AZm8BqzceQDXOksaxn54ev9Icnd9yoZKHCTW+3nHCCsGU+8Cf
HEfYLQiqMXA0nVZ0mEtDPrM9jNn4V+kmfo7gq9jNGGaUVwq99xbliOzWH4gAJe/V
z/Z035BGNfa46UQRL8tXl/WNm3KtN8M1yUyt9b+rWcucJq3yU2yK3VJZvYG/GqTu
ud3ri5w8KPNzoAW5jaKgRw4UXkheFYpXcbw8pTTS8M16z/JwLsMxoyUrRJQjQpBo
4Mj+1Nnb8mHtNXLAMbVQsxCE0Ytjtmgzl+PHyMNyEXR9JIS3Z09JFs3/AcXQq7st
qAVIWYrBcGg=
=gG9L
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Speakup mailing list