Sha256: 4d694d51243ca024ab31bebd3bbe383d118d9a39544a226a0d171e8241b9f0df
Contents?: true
Size: 1010 Bytes
Versions: 1
Compression:
Stored size: 1010 Bytes
Contents
# RSocks this is a socks5 server base on Eventmachine. can be using as socks5 proxy server side. ## Installation Add this line to your application's Gemfile: ```ruby gem 'r_socks' ``` And then execute: $ bundle install Or install it yourself as: $ gem install r_socks ## Usage #### use ENV set auth username and password by default both user and password is: `default` ``` export RSOCKS_USER=some_user_name export RSOCKS_PASSWORD=some_password ``` run server ```ruby server = RSocks::TcpServer.new server.config.auth_method = :password server.config.proxy_buffer_size = 10 * 1024 * 1024 server.config.proxy_type = :http # if true then you need attach cert and private key server.config.enable_ssl = false # server.config.ssl_private_key = './server_key.txt' # server.config.ssl_cert = './server_cert.txt' # start multi process server.config.instances = 2 server.run! ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/nickoan/r_socks.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
r_socks-0.2.5 | README.md |