Project

r_socks

0.0
No commit activity in last 3 years
No release in over 3 years
ruby socks5 and http proxy
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.2, >= 1.2.7
 Project Readme

RSocks

project not maintain anymore

for https and http proxy please check with r_proxy

Installation

Add this line to your application's Gemfile:

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

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.