Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse socks2tun implementation #26

Closed
undiabler opened this issue Jan 9, 2021 · 5 comments
Closed

Reverse socks2tun implementation #26

undiabler opened this issue Jan 9, 2021 · 5 comments

Comments

@undiabler
Copy link

I'm looking for reverse implementation converting many vpn/wireguard interfaces to socks5 proxy.
For now I have plenty of hacks running lots of different socks servers via different users, then marking and properly routing traffic using iptables. All this stuff is very unstable.

Can you give me advise how network interfaces can be converted into socks5 proxy in easiest way?
Thanks!

@xjasonlyu
Copy link
Owner

What do you mean convert interfaces to socks5 proxy?

Could you give me more context or examples?

@undiabler
Copy link
Author

I want to use any existing network interface as socks5 proxy.
For example curl can make http(s) request via selected interface with --interface parameter.

There are lots of applications supporting socks4/5 options. I want to have different vpn-s for different applications.
I can reach this goal by seperating each application in different network environment as qubes os do. But the easiest way is to create socks server for each network interface (tun/tap/wg device).

@xjasonlyu
Copy link
Owner

Your needs are not related to this tun2socks project, but it's doable. A simple socks/http proxy server with BINDTODEVICE support would do the trick (I guess🙈).

@undiabler
Copy link
Author

I have not found any simple socks/http proxy with BINDTODEVICE support.
So I've implemented such trick for usocksd socks server.
Thanks for your help.

@ValdikSS
Copy link

I have not found any simple socks/http proxy with BINDTODEVICE support.

Just for the record, I usually use https://3proxy.org/ as a proxy with outgoing ip/interface functionality.

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

No branches or pull requests

3 participants