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

Using PowerTunnel with personalDNSfilter #98

Closed
ghost opened this issue Dec 28, 2021 · 30 comments
Closed

Using PowerTunnel with personalDNSfilter #98

ghost opened this issue Dec 28, 2021 · 30 comments
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented Dec 28, 2021

Im using InviZible (proxy mode) + pDNSf (VPN mode). Can i use PowerTunnel with that app?

VIEW SOLUTION

@krlvm
Copy link
Owner

krlvm commented Dec 28, 2021

You can run PowerTunnel in proxy mode and specify it as the upstream proxy server in personalDNSfilter if it does support it.
Also, if you need to filter out some hosts, you can install Firewall plugin.

@krlvm
Copy link
Owner

krlvm commented Dec 28, 2021

Related: #36

@krlvm krlvm added the question Further information is requested label Dec 28, 2021
@ghost
Copy link
Author

ghost commented Dec 28, 2021

You can run PowerTunnel in proxy mode and specify it as the upstream proxy server in personalDNSfilter if it does support it. Also, if you need to filter out some hosts, you can install Firewall plugin.

InviZible in proxy mode and upstream in pDNSf is 127.0.0.1:5354 now

@krlvm
Copy link
Owner

krlvm commented Dec 28, 2021

Does InviZible support an upstream proxy?

@ghost
Copy link
Author

ghost commented Dec 28, 2021

Does InviZible support an upstream proxy?

I think no. I use DNSCrypt module in InviZible setup DoH with NextDNS + pDNSf to block ads and tracking and now i want to use PowerTunnel to bypass internet censorship too

@ghost
Copy link
Author

ghost commented Dec 28, 2021

PowerTunnel in Proxy mode + addon FoxyProxy in Firefox Android work flawlessly but http3/quic not working

@krlvm
Copy link
Owner

krlvm commented Dec 28, 2021

You can set PowerTunnel proxy as the upstream proxy in pDNSf and set InviZible as the upstream proxy in PowerTunnel

@ghost
Copy link
Author

ghost commented Dec 28, 2021

You mean set localproxy of PowerTunnel [127.0.0.1]::8085::UDP in pDNSf and set 127.0.0.1:5354 in DNS Resolver in PowerTunnel?

@krlvm
Copy link
Owner

krlvm commented Dec 28, 2021

No.

pDNSf (VPN) -> PowerTunnel (Proxy) -> InviZible (Proxy)

To set InviZible as a proxy for PowerTunnel, open global PowerTunnel settings

@ghost
Copy link
Author

ghost commented Dec 28, 2021

Can you help me with video?

@ghost
Copy link
Author

ghost commented Dec 28, 2021

Not working. Setup 127.0.0.1 and port 8085 in proxy settings pDNSf and 127.0.0.1 port 5354 in upstream proxy of PowerTunnel. Can't access to blocked website

@ghost
Copy link
Author

ghost commented Dec 28, 2021

Okay its working now. Thank you so much! Quic/http3 still working

@krlvm krlvm closed this as completed Dec 28, 2021
@ghost
Copy link
Author

ghost commented Dec 28, 2021

Sorry but its not working anymore. Please open it again

@krlvm
Copy link
Owner

krlvm commented Dec 28, 2021

Make sure you whitelisted InviZible in pDNSf so the final traffic reaches the destination.

@krlvm krlvm reopened this Dec 28, 2021
@ghost
Copy link
Author

ghost commented Dec 28, 2021

Make sure you whitelisted InviZible in pDNSf so the final traffic reaches the destination.

I did it already. Its work again. Dont know why. I think its unstable. Will try again

@ghost
Copy link
Author

ghost commented Dec 29, 2021

Sometimes it works and it didnt work again. Not stable. Changed port to 8080 and still not fixed

@krlvm
Copy link
Owner

krlvm commented Dec 29, 2021

Changing the port can't help.

It seems that one of three proxies in the chain is periodically being sent to sleep by Android system. Add all three apps to never-sleep list of OS Settings.

@ghost
Copy link
Author

ghost commented Dec 29, 2021

Changing the port can't help.

It seems that one of three proxies in the chain is periodically being sent to sleep by Android system. Add all three apps to never-sleep list of OS Settings.

I did it already, seems not working. Im using Redmi Note 10 Pro test with Firefox Android.

@ghost
Copy link
Author

ghost commented Dec 29, 2021

Screenshot_2021-12-29-17-23-25-990_io github krlvm powertunnel android
Screenshot_2021-12-29-17-23-08-181_dnsfilter android

Here is some screenshot

@krlvm
Copy link
Owner

krlvm commented Dec 29, 2021

Do you run InviZible on port 5354? Note that you should run three apps simultaneously to use the Internet connection.

@ghost
Copy link
Author

ghost commented Dec 29, 2021

Do you run InviZible on port 5354? Note that you should run three apps simultaneously to use the Internet connection.

Yes. InviZible port 5354. PowerTunnel 8085. 3 apps running at the same time

@ghost
Copy link
Author

ghost commented Dec 29, 2021

Try pDNSf in VPN mode and Proxy (root mode). Sometimes can access blocked website, sometimes cant

@ghost
Copy link
Author

ghost commented Dec 29, 2021

I found temporary solution: Using Fennec - access to about:config
network.proxy.http set to 127.0.0.1
network.proxy.http_port set to 8085
network.proxy.type set to 1

PowerTunnel just need to set to proxy mode. Dont need to enable upstream proxy and change anything in pDNSf or InviZible

Quic/http3 still working

@krlvm
Copy link
Owner

krlvm commented Dec 29, 2021

I found a better solution, which removes pDNSf from the proxy chain, but you need to run Android 8 and higher for this.

  1. Open pDNSf and enable local DNS proxy instead of VPN in additional settings, it will have IP Address 127.0.0.1:5300
  2. Open PowerTunnel Settings, set it to run as VPN and enable "Strict DNS mode" option
  3. Open PowerTunnel Plugins page and enable DNS plugin, set provider to Custom and set DNS IP to 127.0.0.1:5300
  4. In PowerTunnel Settings, set InviZible as upstream proxy server (127.0.0.1:5354)
  5. Start InviZible, then pDNSf, then PowerTunnel

@ghost
Copy link
Author

ghost commented Dec 29, 2021

I found a better solution, which removes pDNSf from the proxy chain, but you need to run Android 8 and higher for this.

1. Open pDNSf and enable local DNS proxy instead of VPN in additional settings, it will have IP Address `127.0.0.1:5300`

2. Open PowerTunnel Settings, set it to run as VPN and enable "Strict DNS mode" option

3. Open PowerTunnel Plugins page and enable DNS plugin, set provider to Custom and set DNS IP to `127.0.0.1:5300`

4. In PowerTunnel Settings, set InviZible as upstream proxy server (`127.0.0.1:5354`)

5. Start InviZible, then pDNSf, then PowerTunnel

What about using root mode in pDNSf?

@krlvm
Copy link
Owner

krlvm commented Dec 29, 2021

I don't have a rooted device to test.

@ghost
Copy link
Author

ghost commented Dec 29, 2021

I though http3/quic cause that. When i use proxy for http and https, its very stable but only http2. Set proxy for only http, http3 go back but not stable when access blocked website

@ghost
Copy link
Author

ghost commented Mar 11, 2022

So today i found a solution can use pDNSf + InviZible + PowerTunnel without lose HTTP3/QUIC

@ghost
Copy link
Author

ghost commented Mar 11, 2022

PowerTunnel MUST in VPN mode

If you want to use PowerTunnel with pDNSf and DNSCrypt Module in InviZible

Set InviZible to Proxy Mode and enable DNSCrypt module. It will listen at 127.0.0.1:5354

Set pDNSf to Proxy Mode and it will listen at 127.0.0.1:5300

PowerTunnel in VPN Mode and set DNS in Plugin to 127.0.0.1:5300 and whitelist app InviZible in Settings

If you guys dont know how to setup InviZible (DNSCrypt Module) with pDNSf, here is how to: https://invizible.net/en/invizible-and-personaldnsfilter/

If you want to use PowerTunnel with DNSCrypt Module in InviZible

Set InviZible to Proxy Mode and enable DNSCrypt module. It will listen at 127.0.0.1:5354

PowerTunnel in VPN Mode and set DNS in Plugin to 127.0.0.1:5354 and whitelist app InviZible in Settings

If you want to use PowerTunnel with pDNSf

Set pDNSf to Proxy Mode and it will listen at 127.0.0.1:5300

PowerTunnel in VPN Mode and set DNS in Plugin to 127.0.0.1:5300

If internet wont work try whitelist pDNSf in PowerTunnel's settings I forgot LOL

@krlvm
Copy link
Owner

krlvm commented Mar 11, 2022

Thank you!

@krlvm krlvm closed this as completed Mar 11, 2022
@krlvm krlvm pinned this issue Aug 29, 2022
@krlvm krlvm changed the title Any solution to use PowerTunnel with personalDNSfilter Use PowerTunnel with personalDNSfilter Aug 29, 2022
@krlvm krlvm changed the title Use PowerTunnel with personalDNSfilter Using PowerTunnel with personalDNSfilter Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant