nadoo / glider

glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
GNU General Public License v3.0
3.18k stars 437 forks source link

glider does not shunt properly #375

Closed aa51513 closed 1 year ago

aa51513 commented 1 year ago

glider.conf

verbose=True
listen=socks5://:4423
forward=socks5://10.47.52.8:1080
rules-dir=rules.d

server1.rule

forward=socks5://192.168.10.10:1080
domain=inner.com

server2.rule

forward=socks5://192.168.10.11:10086
cidr=10.49.2.0/23,10.250.0.0/16,192.168.10.0/24

When I use 127.0.0.1:4423 as the socks5 proxy to access http://192.168.10.141, I find that the request is not forwarded to socks5://192.168.10.11:10086, instead of trying to use socks5://10.47.52.8:1080 , which is obviously not as expected

Obviously the target address 192.168.10.141 matches the cidr of 192.168.10.0/24 whitch is configured in the file named server2.rule According to the rule, the request should use socks5://192.168.10.11:10086 (whitch is configured in the file named server2.rule) as the final proxy

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.