Giter Club home page Giter Club logo

perl-tcp-proxy's Introduction

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

perl-tcp-proxy's People

Contributors

pkrumins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

perl-tcp-proxy's Issues

HTTPS inside SSH?

Can SSH tunnel TLS traffic in transport mode, i.e., without encrypting it again? Similarly, does SSH support EAP?

redirect TCP connections to NON localhost listener

'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?

Missing Licence

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.