Code Monkey home page Code Monkey logo

Comments (6)

springzfx avatar springzfx commented on June 16, 2024

I thinks your proxy program need some special permission, for exmple
sudo setcap "cap_net_admin,cap_net_bind_service=ep" /usr/lib/v2ray/v2ray

from cgproxy.

huyz-git avatar huyz-git commented on June 16, 2024

I thinks your proxy program need some special permission, for exmple
sudo setcap "cap_net_admin,cap_net_bind_service=ep" /usr/lib/v2ray/v2ray

I have already set these permissions:

$ getcap /usr/lib/v2ray/v2ray 
/usr/lib/v2ray/v2ray = cap_net_bind_service,cap_net_admin+ep

Without these two permissions, even PC's transparent proxy doesn't work (has similar error like that).
After set these two permissions, PC's transparent proxy works, but other devices connected to AP still doesn't work.
I also tried to run v2ray as root, however the result is the same: PC works but AP doesn't work. The error is exactly the same.

from cgproxy.

springzfx avatar springzfx commented on June 16, 2024

OK, have you tried run cgnoproxy <PROXY PROGRAM> ?
I have no problem in this way.

from cgproxy.

huyz-git avatar huyz-git commented on June 16, 2024

OK, have you tried run cgnoproxy <PROXY PROGRAM> ?
I have no problem in this way.

Yes, on PC, cgnoproxy also works without any problem.
On other device there're no cgnoproxy command.

I do some trying, and find out that perhaps the route from PC to phone is incorrect.
If my AP's IP is 10.x.x.x, and if I add this line:

iptables -t mangle -A TPROXY_OUT -d 10.0.0.0/8 -j RETURN

Then my phone can access internet, and can use PC's transparent proxy.

from cgproxy.

springzfx avatar springzfx commented on June 16, 2024

You are right. I thought conntrack wiil handle this, the fact is not.
I will make a update to fix this.
and btw cgnoproxy <v2ray ...> only need to run on your PC.

from cgproxy.

springzfx avatar springzfx commented on June 16, 2024

fixed in 168779e
welcome to test it.

from cgproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.