NOBLES5E / cproxy

Easy per application transparent proxy built on cgroup.
GNU Affero General Public License v3.0
379 stars 16 forks source link

IPv6 Support? #83

Open NyaMisty opened 2 years ago

NyaMisty commented 2 years ago

It seems that cproxy is not supporting IPv6 proxying?

NOBLES5E commented 1 week ago

Personally don't use IPv6 in my own setup, which is why I haven't implemented support for it yet.

However, I recognize that IPv6 support would be valuable for many users. I'm open to contributions if anyone would like to work on adding IPv6 functionality. If you or others are interested in implementing this, please feel free to open a pull request.

alpominth commented 1 week ago

@NOBLES5E

Here I use a bash script I created for setting up a per-application proxy, just like a sandbox for sending all its traffic over SOCKS5/SOCKS4/SOCKS4a/HTTP proxies. It uses Glider, RouteDNS, Daemonize and some other apps.

It contain a basis for IPv6 implementation for cproxy.

Here it is: transcg-fortress.tar.gz

NOBLES5E commented 1 week ago

Thank you for sharing your bash script.

Regarding IPv6 support, adding it should be relatively straightforward. It would primarily involve adding ip6tables commands alongside the existing iptables commands that cproxy already uses. The key is to implement this correctly and make it accessible via a CLI flag for users who want to enable IPv6 support.

If anyone is interested in seeing this feature implemented, a pull request would be welcome.