pacien / tincapp

Android binding and user interface for the tinc mesh VPN daemon.
https://tincapp.euxane.net
GNU General Public License v3.0
163 stars 30 forks source link

Add support for Socks5 proxy #83

Open LivInTheLookingGlass opened 5 years ago

LivInTheLookingGlass commented 5 years ago

It would be nice if we could also use this as a socks5 proxy. That way we could get the DNS and app filtering rules from NetGuard and still access our personal VPNs.

Essentially my ask is to have a pipeline like: app -VPN-> NetGuard -Socks5-> Tinc -> internet

Is this a feasible ask?

pacien commented 5 years ago

Hello,

It would be quite hard to implement a SOCKS server in Tinc App directly as control over the VPN interface is delegated directly to the tinc daemon. The application's context directly accesses the internet to avoid looping VPN packets into the VPN itself. It is therefore not a good place to put a SOCKS server.

It might be preferable to start a SOCKS proxy server in another application and allow it to use the VPN using the AllowApplication directive in network.conf.

LivInTheLookingGlass commented 5 years ago

Unfortunately NetGuard and co dont really have a mechanism for that. DNS66 has been looking at implementing a local DNS server for a year or so and never done it.