Skip to content

Conversation

@harrydleung
Copy link

只允许部分机器通过代理,其他机器不走代理

kitty and others added 30 commits January 12, 2013 17:00
Changes:
1. Modified registration of SIGUSR1 to prevent segment fault on MIPS openwrt.
2. Introduced mechanism of self monitor to recover from hang process.
3. Introduced a new type of method 'direct' which relays incoming traffic out
   directly by default route and default interface. This method is useful to
   users whose ISP limits network connections from different computers.
4. Introduced a new type of method 'autosocks5' which by default relays
   incoming traffic out directly by default route and default interface. In
   case relay connection is closed/reset immediately by remote/GFW, redsocks
   then relays the traffic to SOCKS5 proxy. By doing this, most of traffic
   can be relayed without going through proxy. But, for those connections
   blocked by GFW can go through proxy automatically.
2. Enhance address cache in autosocks.c. The new cache stores IP
   addresses in blocks.
timeout occurs while connecting to target. The timeout value is
set to 13 seconds. Whenever a connection to target timeouts,
the connection will be retried via proxy.
2. Detect connection reset with more reliable method.
we failed to connect to target directly. Connection will be retried
via proxy when connection timeouts in about 10 seconds or connection
is reset before data is read & writen successfully.
This method is behaves just like 'autosocks5' and is intent to
support Goagent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.