Coder Social home page Coder Social logo

Support iptables about powertunnel-android HOT 7 CLOSED

krlvm avatar krlvm commented on May 22, 2024
Support iptables

from powertunnel-android.

Comments (7)

krlvm avatar krlvm commented on May 22, 2024

Have you tried proxy mode in settings?

from powertunnel-android.

hamedsbt avatar hamedsbt commented on May 22, 2024

Yes, but may app does not support proxy settings, such as official youtube app.

from powertunnel-android.

krlvm avatar krlvm commented on May 22, 2024

Can't you configure iptables manually?
(maybe a stupid question, I'm not familiar with it)

from powertunnel-android.

hamedsbt avatar hamedsbt commented on May 22, 2024

I'm not very professional iptables user too. it may help: https://tldp.org/HOWTO/TransparentProxy-6.html

from powertunnel-android.

krlvm avatar krlvm commented on May 22, 2024

I think you can use this, but I haven't tested:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 127.0.0.1:8085
iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to 127.0.0.1:8085
To get traffic back execute then:
iptables -t nat -A POSTROUTING -p tcp -d 127.0.0.1:8085 --dport 80 -j SNAT --to-source 127.0.0.1:8085
iptables -t nat -A POSTROUTING -p tcp -d 127.0.0.1:8085 --dport 443 -j SNAT --to-source 127.0.0.1:8085

127.0.0.1:8085 is the default proxy server address, replace it if you've changed it.

from powertunnel-android.

hamedsbt avatar hamedsbt commented on May 22, 2024

Thank you for your try, but I prefer this process handle with app GUI as much as simple and stable.

from powertunnel-android.

krlvm avatar krlvm commented on May 22, 2024

I don't want to root my device, so I don't think this will be supported in the future.

from powertunnel-android.

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.