pkrumins / perl-tcp-proxy Goto Github PK
View Code? Open in Web Editor NEWA simple TCP proxy written in Perl. Uses IO::Socket::INET and IO::Select for multiplexing.
Home Page: http://www.catonmat.net/blog/linux-socks5-proxy
A simple TCP proxy written in Perl. Uses IO::Socket::INET and IO::Select for multiplexing.
Home Page: http://www.catonmat.net/blog/linux-socks5-proxy
This is a simple TCP proxy written in Perl that uses IO::Socket::INET and IO::Select abstractions to create an evented (asynchronous, on select() call based) server. It was written by Peteris Krumins ([email protected]). His blog is at http://www.catonmat.net -- good coders code, great reuse. Currently it's written only for demonstrative purposes for my article "Turn any Linux computer into SOCKS5 proxy in one command," which can be read here: http://www.catonmat.net/blog/linux-socks5-proxy ------------------------------------------------------------------------------ The ports are currently hard coded in the source code. The proxy tunnels all connections from 0.0.0.0:1080 to localhost:55555. The idea is that if you start a ssh socks5 proxy via ssh -N -D 55555 localhost Then no one can access this proxy, except people on localhost, which is of no good. This Perl program opens up this ssh socks5 proxy for everyone. Please see the article for more details: http://www.catonmat.net/blog/linux-socks5-proxy ------------------------------------------------------------------------------ Happy proxying! Sincerely, Peteris Krumins http://www.catonmat.net
Can SSH tunnel TLS traffic in transport mode, i.e., without encrypting it again? Similarly, does SSH support EAP?
'tcp-proxy.pl' generates "Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at tcp-proxy.pl line 85." if SOCKS server listens on non localhost interface and uses 192.168.0.1:9050 listener for instance by hardcoded $remote = new_conn('192.168.0.1', 9050);
The same issue with tcp-proxy2.pl with command line added parameters.
When I point 'tcp-proxy.pl' or 'tcp-proxy2.pl' to SOCKS listener back to 127.0.0.1:9050 script works as it should be.
How to fix 'tcp-proxy.pl' redirection to SOCKS listener on ANY machine's IP address available?
I'm reusing part of this code and I need to add a license. Please let me know. In the meantime, I use the GPLv2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.