rofl0r / microsocks

tiny, portable SOCKS5 server with very moderate resource usage
Other
1.48k stars 266 forks source link

Reverse #28

Open astateofmind01 opened 4 years ago

astateofmind01 commented 4 years ago

Possible to be used as a reverse proxy? Or to limit what servers/ports would be accessed through the proxy?

Thanks.

rofl0r commented 4 years ago

reverse proxy is a feature used by http proxies, not socks ones. or maybe i misunderstand what you want. microsocks does not implement ACLs, so if you need to restrict access for outgoing connection, it would need to be paired with something else.

i guess the featureset you want can be found in tinyproxy though.

astateofmind01 commented 4 years ago

Thanks for the answer.

Unfortunately tinyproxy is http and i need a socks proxy for a filebeat connection to a logstash.

So no ACLs in microsocks, too bad. And no reverse proxies for socks? I found one - although not entirely sure :D (rsocks) but it's python and i cannot install python on the host where i need the proxy :(

Thanks again.

rofl0r commented 4 years ago

Unfortunately tinyproxy is http and i need a socks proxy for a filebeat connection to a logstash.

you can configure tinyproxy to use a socks upstream

so tinyproxy can listen on 0.0.0.0 with microsocks on 127.0.0.1 with something like

upstream socks5 127.0.0.1 alloweddomain.com
upstream none
rofl0r commented 4 years ago

And no reverse proxies for socks

isn't that basically just like running "portredir" forwarding a port to another box that has the socks server software running?

astateofmind01 commented 4 years ago

And no reverse proxies for socks

isn't that basically just like running "portredir" forwarding a port to another box that has the socks server software running?

Great, i think that's exactly what i need, if i don't manage to configure filbeat to work how i want i think i will use that :)

Have to test it first but should work. Thanks for the suggestion.