yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mermade:
Strangely, today when I checked by running the app and monitoring the connection in the log, I correctly see the app icon, name, id. Guess it was a temporary issue. I will continue to observe this with other apps and report it if I find anything strange.
[Android Apps and Games] lancelotly:
2. I mean it would be better to block the app directly in the logs page. It will redirect to the apps settings page.
[Android Apps and Games] netpatch:
Only DNS results can be cached, not connections. The DNS results is a domain-name to ips mapping.

You can check this page: https://en.wikipedia.org/wiki/Domain_Name_System

The android system dns doesn't matter, when NF is enabled, all DNS queries are routed to NF.

If you haved blocked abc.com, then NF will refuse the dns query for abc.com, but same apps maybe try to get the ip address by itself(maybe cached or saved in the app) when dns query failed.

In this case, if NF can figure out the domain name of the ip address, NF will block the connection, you will see the data usage of the connection is "send: 0, received: 0".
[Android Apps and Games] netpatch:
Thank you for your feedback. The next version will improve the network log function, hoping to fix this bug.
[Android Apps and Games] netpatch:
Thank you for your suggestion, I already understand. I have it recorded in my list.
[Android Apps and Games] kouaoua:
Hi OP,

A feature request here: In Rules Settings > Domain Groups > Default_block, it will be great if there could be a tool to sort out the items on this list in alphabetical order. I have today 48 items on this list and it would be convenient if I could sort the list so as to be able to locate an item quickly. This sorting could be available IN ADDITION to the default sorting used today i.e. in which new items get appended at the end of the list. Both sorting methods are useful.

Thank you.
[Android Apps and Games] umeshxda:
Feature request

1. Automatically disable when data is turned off and automatically enable when data is turned on

2. Widget to quickly enable and disable firewall
[Android Apps and Games] mermade:
I installed a new app today and again see the connections being shown from another app in the log. I believe this only happens for newly installed apps. Please continue to fix this issue.
[Android Apps and Games] padloj:
App crash

Hello, I have start using this app and I like it.

I found little bug, when u try import bad file - app crash. (not sure if it make different filetype or text in file) :cool:
[Android Apps and Games] netpatch:
Hi mermade, Thank you for your feedback.

Can you confirm that, when stop NF(Android settings->Apps->NetPatch Firewall->force stop) and reopen NF, do the error logs display the correct App?
[Android Apps and Games] Geeks Empire:
one of the best tool concept i have ever seen!

definitely going to install and test it more

Good Luck
[Android Apps and Games] netpatch:
Thank you for your feedback, it will be fixed on the next version.
[Android Apps and Games] netpatch:
Thank you, I have recorded it. I will think about and study it.
[Android Apps and Games] netpatch:
Hi, Thank you for your suggestions.

1, Why need disable NF when data is turned off? Are you concerned the battery?

2, I have recorded it. I will think about and study it.
[Android Apps and Games] umeshxda:
1. No.. It would be great to have it
[Android Apps and Games] netpatch:
:) Thank you for your suggestions, But too little time to develop too many functions in NetPatch Firewall. There are already a lot of things in my list.
[Android Apps and Games] mermade:
When I checked today, the problem was fixed and I was able to see the correct app details and icon in the network log. Will try your workaround the next time I install an app.
[Android Apps and Games] mermade:
Today, I installed a new app and again observed this issue so followed your suggestion. But that did not work. I disbled NF firewall, and then force stopped NF in settings. I again ran NF and enabled the firewall. Post that, launched the new app and still saw the log showing incorrect app details.
[Android Apps and Games] netpatch:
NetPatch Firewall v0.12 available

—---------------------------------------------------

1, Network logs: add swipe down refresh.

2, Network logs: add logs summary.

3, Add: edit domain name or IP in group.

4, Add setting: notify for new App.

5, Shadowsocks: Deprecate OTA.

6, Add prevent DNS leak for proxy group.

7, Add prevent IPv6 setting.

8, Tap App name to show App info in Apps Settings.

9, Remove de/es/fr/it/ja/pt/ru machine translation language.

10, Fix some bugs and improvement.

Welcome translators to go to POEditor to help translate NetPatch Firewall. https://poeditor.com/join/project/SO7B3ihkJ0

It's okay to leave some strings untranslated if you think it should use the same string as English (US).
[Android Apps and Games] netpatch:
Hi [MENTION=7835752]mermade[/MENTION], Can you check the new version(v0.12) to fix this bug?
[Android Apps and Games] mermade:
Great work with the new update. Will check and let you know. Thanks!
[Android Apps and Games] brackenhill_mob:
I'm doing something wrong ;)

No matter what I do the VPN service won't start. I haven't configured any apps, just the settings for my Shadowsocks server. It doesn't matter what encryption method I choose.

If i reset the configuration, setup up the proxy and stay the VPN it works for a second. The moment I either try to configure apps or open the network settings page the VPN stops and will never restart until I reset the configuration and start again.

All help gratefully received - if i can get this to work I won't need root in the future ;)
[Android Apps and Games] netpatch:
[MENTION=254777]brackenhill_mob[/MENTION] Thank you for your feedback.

Can you send me the debug info on the "Other Settings"(long tap to copy)? The failed screenshot when starting NetPatch Firewall is also useful.
[Android Apps and Games] brackenhill_mob:
[MENTION=7926692]netpatch[/MENTION] thanks for the quick response. More info: I can enter the network settings for the proxy and the VPN stays up. The moment I change any setting on the network or apps pages NetPatch barfs. I've tried it on multiple phones and my tablet and get the same result every time which is why I think I'm doing something wrong. Below is the debug info and screenshot for my daily driver phone (the one I need NP on because it can't be rooted)

Debug Info

---------

Device: HONOR/KNT-AL20/KNT-AL20/7.0

Product: v0.12/release/google_play

Type: wifi

System Dns: fe80::1691:82ff:fe31:91cf%wlan0, 10.0.0.254

MTU: 1400

IPs: [10.0.0.1, fdc5:e236:1672:0:d0c2:a951:76a2:1615, fdc5:e236:1672:0:f6cb:52ff:fe21:6e99, fe80::f6cb:52ff:fe21:6e99]
[Android Apps and Games] exodius48:
[MENTION=7926692]netpatch[/MENTION]

Does both apk same?
[Android Apps and Games] netpatch:
Thank you very much for your feedback, it seems that initiating VPN status failed, I will check and test NetPatch Firewall as soon as possible.
[Android Apps and Games] netpatch:
Yes, They are the same.
[Android Apps and Games] brackenhill_mob:
[MENTION=7926692]netpatch[/MENTION] let me know if you need me to test anything
[Android Apps and Games] netpatch:
[MENTION=254777]brackenhill_mob[/MENTION]

Thank you for your help, it seems that NetPatch Firewall can't handle your network correctly.

If you can, you can test it on another network and describe the network environment you are using.
[Android Apps and Games] netpatch:
In addition, Do you mean "change any setting on the network or apps pages" cause NetPatch Firewall to crash or just vpn stop?

My google hangouts: netpatch.co@gmail.com if you think need.
[Android Apps and Games] brackenhill_mob:
When you say "another network" do you mean via another wifi router or another Shadowsocks server? Sorry if I'm being dumb ;)

Assuming you mean router, I'm using LEDE on a Linksys WRT1900ACS. My phone is on the true 5g setup (Marvell 88W8864 chip, 802.11nac) using WPA2 PSK (CCMP) encryption.

Just the VPN - the key symbol in the notification bar goes out but the app stays on the main page.

The easiest way for me to replicate my issue is as follows:

1. clear all the settings on other settings page

2. turn on Netpatch on home page (the key appears)

3. set up the proxy (key remains on)

4. turn off UDP forwarding on Network Settings page (key disappears and app returns to home page)

FYI I'm currently using the Shadowsocks app v4.0 which works fine. My Shadowsocks server was set up using the Streisand utility.
[Android Apps and Games] netpatch:
Thank you for your information.

"Other network" means another wifi router or switch to mobile network to test.

I will send you a debug version to test as soon as possible.
[Android Apps and Games] brackenhill_mob:
Do you want me to try with another router running Tomato or wait for a test version? Don't have a data plan on our phones as we work from home and the is plenty of WiFi where we are. I can get a data sim if it helps you debug this.
[Android Apps and Games] mermade:
Hi op, after installing the new version 0.12, the app crashes sometimes especially when watching videos on YT website in Firefox browser. It also crashed couple of times when watching videos on the Hotstar app. It crashes randomly. Screenshots and debug info attached just in case. Can you check.

Debug Info

---------

Device: Xiaomi/Redmi Note 3/kenzo/6.0.1

Product: v0.12/release/google_play

Type: wifi

System Dns: 192.168.1.1

MTU: 1500

IPs: [fe80::66cc:2eff:fe15:3659, 192.168.1.5]
[Android Apps and Games] Soli M:
Not bad
[Android Apps and Games] netpatch:
I will release a new version as soon as possible to better target the problem.

Can you send me the "export configure" file first before that? You can send it to my email: netpatch.co@gmail.com , thank you.
[Android Apps and Games] netpatch:
Thank you for your feedback. :crying: I will release a new version as soon as possible for better debugging.
[Android Apps and Games] mxx777:
Installing the app with default settings is blocking WiFi calling. WiFi Calling app itself appears on the list, but doesn't get clickable "allow/deny" option. Is there a specific configuration that needs to applied for WiFi Calling to work?
[Android Apps and Games] netpatch:
[MENTION=8095278]mxx777[/MENTION] What's the problem? Do you can not answer the phone or can not make a phone call?

Maybe you can try the method below, looking forward to your feedback.
[Android Apps and Games] mxx777:
WiFi calling shows "unable to connect" when firewall is on. The log doesn't show that anything WiFi Calling, or system-related has been blocked... I have tried the method above, even tried allowing all connections.

---------- Post added at 06:04 AM ---------- Previous post was at 05:59 AM ----------

Interestingly, the app also doesn't allow to manage connectivity of Google Play Services, Framework and others. Why is that?
[Android Apps and Games] netpatch:
[MENTION=8095278]mxx777[/MENTION] Can you give me a link to the "WiFi Calling" App on google play? You can try uncheck "Block IPv6 Connection" on Network Settings.

About "Google Play Service", these Apps with the same uid can only be allowed/blocked access to the internet as a group.
[Android Apps and Games] brackenhill_mob:
Done.

The config is with the change to the network settings that causes the barf
[Android Apps and Games] mxx777:
Ah I see, It didn't occur to me they are a group until I looked at IDs.

So the WiFi Calling app that gets blocked is pre-installed from TMobile. It has the same ID as many other system components (Call Services, SIM Toolkit, Network etc.) Giving them access as a group still doesn't resolve the issue. Some other VPN firewalls have something called "subnet routing" that seems to fix it. Any ideas what it could be related to?
[Android Apps and Games] brackenhill_mob:
[MENTION=7926692]netpatch[/MENTION] did you get my logs?

Any progress?

TIA
[Android Apps and Games] brackenhill_mob:
[MENTION=7926692]netpatch[/MENTION] is everything OK? You haven't posted since March 28. As you were very active helping us with your app, this is unusual to say the least. Hope you're alright.
[Android Apps and Games] netpatch:
I'm very sorry to reply too late. Thank you for your patience and kindness.

I got caught up with other things in the past two weeks.

There is no problem with the configuration file you sent to me.

I have found a bug of my app, I think it causes NetPatch Firewall does not work properly on your devices.

Tomorrow I will release a new version to fix this bug.
[Android Apps and Games] netpatch:
"Subnet routing" maybe able to solve the problem of WiFi Calling, the problem of "Subnet routing" is it need create a very large route table on android system, it need add all IP space except the ips WIFI Calling uses to system route table, It will significantly reduce system performance.

I will continue to keep an eye on this problem to find a better solution.

It seems that WIFI Calling uses some of the system services to accept the connection, you can try to add more system apps to the white list.
[Android Apps and Games] kouaoua:
Good to hear from you. NetPatch is indeed saving me internet mobile data!

Kouaoua
[Android Apps and Games] netpatch:
Thank you for your support, very pleased that NetPatch Firewall is useful to you.
[Android Apps and Games] mermade:
Hi OP, I have noticed what I believe is a bug in v0.12 and wanted to highlight it to you. I have been monitoring the connections from various apps since many days now and have noticed at times that the Network Log of some apps shows incorrect domains under a particular IP address. This happens randomly and not with a particular app. It's a pretty lengthy one and I will try to explain the issue as clearly as possible :)

I have taken few screenshots for your reference. In both the screenshots, you will see that under the IP address, there is a group of domains listed with only one of them related to the actual app.

In the first screenshot, you will see that the highlighted domains (xx.market.xiaomi.com) are no way related to the app for which the connection is being monitored ("Saavn" which is a music streaming app). The domains are actually from an in-built "Themes" app on my Xiaomi phone. I can say this because I have also monitored the "Themes" app and see these same domains from that app too. This is also seen in the first screenshot. However, you will observe that one of the domains from this group is actually related to the app (c.saavncdn.com).

The same is true for the other apps. In the second screenshot, you will see that the domains listed for the Truecaller app (xxx.deviantart.net) are no way related to the Truecaller app. However, in this case, I do not have the Deviantart app installed on my phone. Even in this case, you will see that one of the domains from the group actually belongs to Truecaller (images1.truecaller.com). At another instance, I monitored the Truecaller app and again saw some other domains which are no way related to Truecaller (as seen in the same screenshot).

I have monitored some other apps too and observed the same behaviour with them. Just to be sure, I have disabled NP and used another firewall app (Netguard) and did not see these other domains from these apps in it's log. Let me know if you need more information. Thanks!
[Android Apps and Games] netpatch:
NetPatch Firewall v0.13

—---------------------------------------------------

* Fix bugs and some improvement

* Add submit bug in other settings

* View run log, crash log in submit bug page

https://play.google.com/store/apps/details?id=co.netpatch.firewall
[Android Apps and Games] netpatch:
[MENTION=7835752]mermade[/MENTION] Thank you for your feedback, I will carefully investigate the problem, and reply to you later.
[Android Apps and Games] netpatch:
[MENTION=254777]brackenhill_mob[/MENTION], try the new version v0.13, I think it has fixed the bug.
[Android Apps and Games] kouaoua:
Thank you. A small "cosmetic" change which you may consider in the future: In Rules Settings > IP Groups or >Domain Groups > Ad Malware Tracking, when we renew the list of blocked items, we get after updating/renewing the message "Renew group successfully". Perhaps it should be "Renewed group successfully" or "Renew group successful".

Another suggestion: On your website https://firewall.netpatch.co/, it would be intuitive if you would keep the version number as well as it existed earlier e.g. NetPatch_Firewall-v0.12-netpatch-release.apk. For v 0.13, the file name is simply app-netpatch-release.apk. This is no big deal though :).

kouaoua
[Android Apps and Games] brackenhill_mob:
Well yes and no ;)

The app no longer crashes and creates the VPN. Unfortunately every app is blocked from the internet even when their settings and the default settings are "on" :(
[Android Apps and Games] netpatch:
Thank you for your feedback. Good idea, I will fix the "Renew" and apk file name problems in the next version.
[Android Apps and Games] netpatch:
Hi [MENTION=254777]brackenhill_mob[/MENTION], Thank you for your feedback, can you check the things below?

1, View the "blocked requests" or "network logs", are there any items that are not expected here?

2, In the "other settings" => "Submit Bug" page, you can view the run log and crash log, check are there any error info.

3, Check that the proxy server information is correct. You can delete the proxy first and check, or check the logs in proxy server.

Looking forward to your feedback.
[Android Apps and Games] lancelotly:
BUG?

I installed NetPatch to my another testing device through same Google Play account. I found that I cannot start the 7 days-trial. No response.
[Android Apps and Games] netpatch:
[MENTION=8073333]lancelotly[/MENTION], There should be a successful or failed tip here when click the "Start Free 7-Day Trial" button. Did you seen the tip message?
[Android Apps and Games] lancelotly:
I saw it, but it not clickable.... (The new device I installed NF is Android 5.0.2, Samsung)
[Android Apps and Games] netpatch:
What is the message?
[Android Apps and Games] brackenhill_mob:
There is nothing in the logs to tell me why every connection is blocked, and there are no errors that I can see. I can't look at the server logs because it doesn't save them. If there is nothing that you can think of that I can try, I'll rebuild the server to save logs.

Just a thought, I use chacha20. Would that make a difference?
[Android Apps and Games] netpatch:
First, please delete the proxy and check is the Internet OK?

chacha20 is no difference from the others. Do you set DNS through proxy? It needs the server enable udprelay mode.

Also check that the password is correct.
[Android Apps and Games] brackenhill_mob:
Done all of this several times. I'm currently using Shadowsocks-R so I know my server and settings are ok. I can't see why this shouldn't be working. Using a browser I get ERR_CONNECTION_CLOSED every time.

Other Shadowsocks apps have a neat testing feature to check that communications with the proxy server are working. Is there any chance this could be added to NetPatch? It would help narrow down these sorts of problems
[Android Apps and Games] kouaoua:
Two small bugs?

1. In Rules Settings > Domain Groups > Default_block list, I am able to add similar entries without NetPatch warning me of adding a duplicate item. I have an item on this list named .criteo.com which I've put earlier. Then I added another item named cas.criteo.com . Afterwards, I hold my finger briefly on cas.criteo.com to bring the Edit Domain menu. I deleted the "cas" part and I am left with .criteo.com . NetPatch accepts .criteo.com as a new item despite that I have already a similar item earlier on the list. I can continue this way to add several .criteo.com similar entries.

2. Today I got the message "Default_block group can't be edited" when I clicked on Domain Groups > Default_block i.e. the text part on the left. However clicking on its corresponding arrow ">" to its right hand side brings the list of items normally without any message.

/kouaoua
[Android Apps and Games] netpatch:
[MENTION=254777]brackenhill_mob[/MENTION], ShadowsocksR is a variant of Shadowsocks, but the two protocols are not compatible.

Currently, NF does not support the ShadowsocksR protocol, you can only use one Shadowsocks server. https://shadowsocks.org/en/download/servers.html

ShadowsocksR support is in my plan, may be released in the next version.
[Android Apps and Games] netpatch:
[MENTION=8082647]kouaoua[/MENTION], thank you for you feedback.

1, It's a bug, will be fixed.

2, Yes, the message is not very accurate, there is some confusion, I will try to improve it. In fact, the name, priority and rule of the default group cannot be edited , but the items can be.
[Android Apps and Games] brackenhill_mob:
I've also got Shadowsocks app installed which works for all versions below v4.12 when the Dev decided that all UDP packets would be redirected to the proxy - I've not had time to install udprelay on my server hence my switch to SSR. The login settings for both apps are the same with no changes needed on the server, so I don't think this is the reason why I'm having problems.

I wasn't aware that the R variant was a different protocol. Good info, thanks.
[Android Apps and Games] kouaoua:
Thank you. A suggestion: In Network Logs, say we click a browser app. We get a long list of all the sites that the browser has connected to. For one such entry we may have 2 items e.g.

TCP(receive: ...and so on)

android.clients.google.com

redirector.googlevideo.com

If we now click on the above entry, we get a "Block Domain" menu listing the two items. If we want to block both domains, we have to repeat the whole operation twice i.e. block one item and then block the second item. Sometimes we may have say half a dozen of items, then it can become cumbersome. Is it not possible in the Block Domain menu to have "item check boxes" like we have on Windows 8 - 10 in explorer, whereby a small check box is displayed to the left of each item and then we can check which ones we would want to block (or unblock)?

I am getting the impression that we had such a feature in an earlier release of NetPatch. But perhaps I am wrong and this was for another app.

Thank you.

Kouaoua

---------- Post added at 03:25 PM ---------- Previous post was at 03:17 PM ----------

Perhaps it would help if there was a sorting feature say in alphabetical order of the items in the Block_Domain list. This sorting feature would be in addition to what exists today. I pointed this out earlier. This can help to minimise similar entries if any.

kouaoua
[Android Apps and Games] mermade:
I was about to post a thread with this suggestion :)

OP, I think this is a much needed feature. I have felt the need to block multiple domains under a IP address instead of adding them one after the other. Look at the attached screenshot. If one has to block all the domains under a IP, currently we have to do this one at a time. However, it would be very convenient to include a button named "Add All" on this pop-up page where all the domains get added in one go. Very useful feature.
[Android Apps and Games] kouaoua:
I've noticed a seemingly small bug in the time difference given by the Network Logs and the Run Log (added feature in v0.13). I am in the time zone of GMT +0400 on my phone and times in the Run log are four (4) hours earlier than those of the Network Logs. The Run Log depicts the times at which NetPatch is initialised and I launched apps like browser etc just afterwards and looked at the Network Logs times. In my case perhaps the 4 hours difference has to do with my GMT +0400 setting. The Network Logs actually point to the correct times. Anyone else who has noticed this?

Kouaoua
[Android Apps and Games] mermade:
I see the same issue. I see the time in the Network Log (under Log Summary) as

04-29/14:22 ~ 04-29/14:30 (7m)

In the Run Log, I see the log start date as 20/04/2017 till 01/05/2017. Now, if we consider only the date Apr 29 (as seen in the Network Log), I see the time starting from 00:43:57 till 09:00:20 and does not have any time captured during 14:22 to 14:30.

Op, can you look into this?