yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] netpatch:
1, "sort in alphabetical order" in local domain group will be added in later version.

2, About "Add All to Default_Block", I will try to find a good way to achieve it.

3, As [MENTION=7835752]mermade[/MENTION] had mentioned before, the domains under a IP address has one problem, they are actually all domain names for this IP, even if some domain names are not requested by this APP.

The doman names for one IP address come from the DNS system, but there seems to be no way to distinguish the DNS request between different Apps. I am trying to solve this problem.
[Android Apps and Games] netpatch:
Thank you for your feedbacks, you are right. Time display is unclear. They are actually GMT(+00:00) time in the "RUN LOG". Will be fixed in next version.
[Android Apps and Games] brackenhill_mob:
[MENTION=7926692]netpatch[/MENTION] Just had a thought as to why my setup isn't working.

How big a string is allowed for the password?

I'm using Streisand to set up my VPN on a VPS running Ubuntu and it creates very long complex passwords hence my question.
[Android Apps and Games] netpatch:
In v0.13 version, the max length of password is 149. Doesn't NF work yet?
[Android Apps and Games] brackenhill_mob:
Sadly no, not yet. I'm hoping to get time this week to set up a virtual server on my PC so that I can debug this from the server logs - I can't risk playing with my live vps in case I get something wrong ;)
[Android Apps and Games] netpatch:
Hi [MENTION=254777]brackenhill_mob[/MENTION],

I just PM you a test shadowsocks server, you can check does it work.

Maybe you can use shadowsocks-libev https://github.com/shadowsocks/shadowsocks-libev#pre-build-configure-guide

It can be installed by apt install command.

start shadowsocks server:

ss-server -s your-sever-ip -p port -k password -m chacha20-ietf -u -v
[Android Apps and Games] brackenhill_mob:
[MENTION=7926692]netpatch[/MENTION] Thanks for this. Your server works. The only difference I can see is that you are using a different port number to Streisand's setup (which is just an installer for multiple proxies including the shadowsocks server you referenced).

More investigation needed on my part ;)
[Android Apps and Games] brackenhill_mob:
Feature request

OK so I've got it to work :) I needed to rebuild my VPS with the latest version of Streisand (dated 8 May 2017) which was fun - not!

An immediate problem has come to light hence my new subject title - I cannot watch Netflix or use my VOIP app without turning off Netpatch and so exposing my phone. Please can we have an "Ignore app" setting? The Shadowsocks app and variants of it have a Per-App proxy section which is _really_ useful

TIA
[Android Apps and Games] brackenhill_mob:
Feature Request 2

Ignore that feature request - I've just discovered whitelisting!! Yay :) So Premium version purchased to help things along. Great app.

So now I want to swap out the Shadowsocks app for NP but my Tasker and Automagic scripts don't work as there is no way to script turning the NP firewall on and off. So can we have a tasker/automagic plugin please? Pretty please??!!
[Android Apps and Games] netpatch:
Hi [MENTION=254777]brackenhill_mob[/MENTION], Thank you for your feedback and suggestions. I have just read the Tasker & Automagic plugin introduction, it is interesting, but sorry I recently did not have time to implement this. Recently I will focus on improving the existing features and bug fixes of NetPatch Firewall.
[Android Apps and Games] netpatch:
NetPatch Firewall v0.14 available

=============================

* Add SSR(ShadowsocksR) support

* Add languages: Turkish(thanks to Ozan Parlak) & Portuguese(thanks to Reinaldo)

* Fix some bugs and some improve

https://play.google.com/store/apps/details?id=co.netpatch.firewall
[Android Apps and Games] mermade:
It's good to see a new version with bugs fixed. Can you confirm as to which bugs were fixed in this release?

Was it this one https://xdaforums.com/showpost.php?p=72114457&postcount=257

or

this one: https://xdaforums.com/showpost.php?p=71947088&postcount=235

Thanks!
[Android Apps and Games] netpatch:
Hi [MENTION=7835752]mermade[/MENTION],

1, fix some crash bug in some devices

2, fix bug: edit item in group detail page to an exists item

3, the time bug in running log(https://xdaforums.com/showpost.php?p=72114457&postcount=257)

Add feature: clear items and resort items in alphabetical order in group detail page.

About https://xdaforums.com/showpost.php?p=71947088&postcount=235 , I have no idea to how to fix it.

The domain names listed below IP address are from DNS system, An ip address can bind multiple domain names, In the android DNS system can not distinguish that which app using the domain names,

currently I can only list all domain names bound to the ip address one app connect to, I have not found a way to know the dns requests sent by an application.
[Android Apps and Games] mermade:
Ok, can you take a look at the source code of Netguard (open source) as this problem is not observed there. Maybe, your answer to this problem is there.

https://github.com/M66B/NetGuard
[Android Apps and Games] exodius48:
[MENTION=7926692]netpatch[/MENTION] Hello,

I want to ask, how to create settings if i want to block app to access some IP address, just like custom IP on Windows PC (see attached screenshot).
[Android Apps and Games] netpatch:
[MENTION=5210243]exodius48[/MENTION], you can create/add a IP group in "Rule Settings".
[Android Apps and Games] Xingle:
[MENTION=7926692]netpatch[/MENTION]

Can we have a tab for whitelisted app please? Maybe you can add it to the dropdown menu where we can find Apps (Installed) and System Apps!
[Android Apps and Games] mermade:
[MENTION=7926692]netpatch[/MENTION]: Hope you are keeping fine. Just wanted to check if you have had the time and resource to implement some of the past suggestions notably:

1. Adding an "Edit" button after long tapping a domain name

2. Adding a "Add All" button (or something relevant) to add multiple domains to a group

3. After tapping on a domain name in "Summary of App Logs page", we get the "Add Domain to Default_block" pop-up window. Is it possible to include the list of user created domain groups in a small drop-down list on that window so that the user can actually select the group that he wants to add the domain abc.com to and not just the default block group. Currently, all the domain are added only to the default block group.

4. Currently, long tapping on a domain name/IP address in a domain group/IP group only shows 2 options Cancel and Delete. Can you also include an "Edit" option where one can edit the saved domain name/IP address.

I understand that you have been busy lately and don't mean to push. When you get the time, can you look into the above points and implement these? It's good to have an update after a long time :)
[Android Apps and Games] John Chu:
[MENTION=7926692]netpatch[/MENTION]

Hi, can you consider adding these two features? These are the most needed ones by me.

1. Adding support for AEAD algorithm, because AEAD is proven more secure than OTA: https://github.com/shadowsocks/shadowsocks-org/issues/30

2. Adding support for profile switching for shadowsocks
[Android Apps and Games] CHEF-KOCH:
Pls send me the language file and I translate the app because the limit for translation was reached.
[Android Apps and Games] dirtyreturn:
[MENTION=7926692]netpatch[/MENTION]

Would you be willing to include http proxy??
[Android Apps and Games] mermade:
Not being updated anymore. [MENTION=7926692]netpatch[/MENTION]: Where are you? :(
[Android Apps and Games] RejZoR:
Can someone tell me how to block certain domains? I can't seem to figure out this thing. NoRoot Data Firewall was simple in this regard, but for some reason domain filtering didn't work at all. Here with NetPatch Firewall, I can't seem to even figure out how to input domain name for blocking... The help file from app itself is next to useless as it tells me nothing where to input the domain data at all. It just tells what format to use but not where to use it. Or how.
[Android Apps and Games] sp4ubw:
Is it possible to load the hosts file? So that you do not have to add thousands of domains manually?
[Android Apps and Games] Greatness83:
Anyone have an alternative for this app? Im guessing development stopped so looking for something else
[Android Apps and Games] fanix-uk:
This is exactly why you should NEVER use a closed source firewall application...clearly you are seeing dodgy connections from applications which may or may not be a "bug" from the developer. Using a non open-source firewall is worse than having no firewall at all!

---------- Post added at 08:58 PM ---------- Previous post was at 08:56 PM ----------

Yes! NetGuard, it's open source and very simular. I won't be suprised if the developer forked it and simply modified it with "added features" :cowboy:

https://github.com/M66B/NetGuard
[Android Apps and Games] mermade:
You can give AdGuard a try. I am using that currently and it's good at blocking ads, trackers, etc. It even has a firewall and a filtering log to monitor the connections.
[Android Apps and Games] rootawayasus:
This app has been updated, july 2020:

https://play.google.com/store/apps/details?id=co.netpatch.firewall

I don't how to contact the developer.

Anyway, can i block a single site or domain? There's a way to import an host file? Can i set an address for downloading the host file? (Example, steven black)?
[Android Apps and Games] ignoramous:
Hey everyone,

Shameless plug: One of the developers of RethinkDNS here. We are 3 months into our DNS + Firewall project and just announced v052 with DNSCrypt, DNS over Tor support. Do give us a try and let us know what you think. https://www.rethinkdns.com/

XDA thread: https://xdaforums.com/android/apps-games/app-bravedns-anti-censorship-adblocker-t4144243

---------- Post added at 10:16 AM ---------- Previous post was at 10:16 AM ----------
[Android Apps and Games] zavrey2401:
I know this is an old post but is there a way to use another VPN alongside netpatch firewall?
[Android Apps and Games] cntui:
That's great. If also can Import/Export just one group, it would be better.
[Android Apps and Games] netpatch:
Thanks for your suggestion, It will be added in next version 0.11 .
[Android Apps and Games] netpatch:
I have write a python script in github project(https://github.com/netpatch/groups_for_netpatch_firewall), it Load Adblock filterlists and make a group file.

You can change the Adblock filerlists' urls to make yourself group file, or use the file https://firewall.netpatch.co/files/amt2.txt .
[Android Apps and Games] cntui:
Thank you for adding this feature. :good:
[Android Apps and Games] umeshxda:
Feature requests

1 ability to allow or block net access when new app is installed

Give away some promo codes for initial users to grow much user base for this app... This app have good future... Long live!
[Android Apps and Games] netpatch:
Thanks for your suggestions,

1, I have added this feature to the next version plan:

Allow set App access rules when new App is installed.

2, It sounds very good, I will start preparing it as soon as possible.
[Android Apps and Games] netpatch:
We have changed the price for premium of NetPatch Firewall from $8.99USD to $4.99USD.

If you have purchased premium before, please contact me, I will send you two promo codes to express my thankfulness.

You can send these codes to your friends or any others.
[Android Apps and Games] mermade:
Thank you for making the script. I have added it as a domain group in NP. Will be testing some other functionality and share my feedback/suggestions. I think this app has a bright future :) This is currently my top fav firewall app.
[Android Apps and Games] netpatch:
Some promo codes available.

If you have installed NetPatch Firewall and found it's useful to you, reply to this thread, I will send one promo code to you.

Please write a review on google play if you like NetPatch Firewall, thank you!
[Android Apps and Games] umeshxda:
Really its doing well.... But its eating too much battery and others cannot connect to my Hotspot... Give a option to enable this
[Android Apps and Games] netpatch:
Hi, Thank you for your feedback.

1, Android counts all network's consumption of your device as NetPatch Firewall's.

You can check the "CPU total" in Use details of NetPatch Firewall like below, this reflects the real power used by NetPatch Firewall.

[IMG="Power used by NetPatch Firewall"]https://firewall.netpatch.co/images/power_small.jpg[/IMG]

2, Dose Tethering works with NetPatch Firewall?

I'm not very sure on all devices, if it doesn't works, you can set static ip address on the connecting device, it maybe works.

For USB Tethering, you can set ip 192.168.42.*

For Wi-Fi Tethering, you can set ip 192.168.43.*

Please note Tethering route it's traffic directly to network, Netpatch Firewall can't filter it.

Looking forward for your feedback, thank you!
[Android Apps and Games] umeshxda:
Cant really set static ip on all connecting devices, it would be helpful if you allow tethering in the app itself... Like i have attached a screenshot below from netguard will allows tethering
[Android Apps and Games] netpatch:
The problem is Android only allows to specify the IP addresses which route to NetPatch Firewall, can't specify the IP addresses which bypass NetPatch Firewall.

So the only method is add the all ip space (0.0.0.0 to 255.255.255.255) except 192.168.42/43.* to route table, they are very large and make the app slowly.

Even using this method, the connecting devices also access network directly, there is no way filter the traffics because Android's limits.

The better method maybe is setting static IP on the connecting devices to your phone or disable NetPatch Firewall when you start Tethering on your phone.
[Android Apps and Games] umeshxda:
Oh thats fine then!
[Android Apps and Games] nuetron:
Been testing your firewall out and love the shadowsocks feature. I believe it is the only firewall app that has this. Love it. Would love to see more ciphers built in such as AES though. Thanks!
[Android Apps and Games] netpatch:
Thank you for testing NetPatch Firewall, looking for your feedback.

More ciphers will be added if more users need them.

Actually, I prefer to use chacha20 instead of aes because chacha20 has better performance and security on mobile devices.

https://blog.cloudflare.com/do-the-chacha-better-mobile-performance-with-cryptography/

https://vikingvpn.com/blogs/securit...cipher-suites-all-about-chacha20-and-poly1305
[Android Apps and Games] mermade:
When a domain is blocked for an app, the network log does does not show the blocked domain in connection log of that app. Can you add the feature to show the blocked domain with a strikethrough like this:

googleads.g.doubleclick.net

I found this to be very necessary to check which domains were actually blocked from the host file. Currently, the log only shows the allowed connections.
[Android Apps and Games] theankitkulkarni:
Can I get a promo code? Enjoying your app..
[Android Apps and Games] netpatch:
Hi kulankit97,

The promo code has been sent to you.
[Android Apps and Games] netpatch:
Hi mermade,

Thank you, It's a very good suggestion, I will add it in next version. Maybe there is no way to know which app request this domain, it can only show the blocked domain.
[Android Apps and Games] theankitkulkarni:
Thanks for the promo code..

I have a question to ask.. Can I block ads from Google or any ad servers with this app?
[Android Apps and Games] umeshxda:
Yes... Settings >rules settings >domain groups >add domain group >Subscribe form url > paste this >https://firewall.netpatch.co/files/amt.txt

Voila u blocked all ads
[Android Apps and Games] S_Gurnani:
Nice work dude...?

It would be great if you could give a promo code to me also...
[Android Apps and Games] netpatch:
Hi S_Gurnani, The promo code has been sent to you. Looking forward to your feedback.
[Android Apps and Games] sam_kumar1995:
Great Work man

Thank you so much for the great app... Can I get a promo code too please
[Android Apps and Games] netpatch:
The promo code has been sent to you. Looking forward to your feedback. :)
[Android Apps and Games] umeshxda:
Feature request

Backup and import settings

Bugs

App automatically stops (even though not optimized in doze settings and whitlisted in task killer apps)

And sometimes it fails to start and gives a error: something gone wrong with that request and keeps loading as shown in screenshot
[Android Apps and Games] netpatch:
Thank you for your feedback.

1, The feature is in the next version(v0.11) plan.

2, It seems that the loading rules file error, can you check the memory remaining on your device and is there some large domain groups?
[Android Apps and Games] cottino:
Finally a real firewall for Android :good:

Do you have another promo code? Thank you
[Android Apps and Games] umeshxda:
NetPatch eats around 105mb is that normal?

Memory remaining is good enough around 700mb free

These are my domain groups
[Android Apps and Games] netpatch:
The promo code has been sent to you.
[Android Apps and Games] netpatch:
It should be normal.

NetPatch Firewall cache Apps icons, IP groups, domain groups, and active connections in memory.

Your domain groups are little big, but if memory enough, it is not problem. Your last ad domain group's rule is direct.:)

There is maybe a bug make NetPatch Firewall automatically stop or start failly, Can you notice when is NetPatch Firewall stopped or start which other app to make NetPatch Firewall been stopped?
[Android Apps and Games] umeshxda:
Will let you know... When i encounter the problem again
[Android Apps and Games] netpatch:
Thank you very much.:)
[Android Apps and Games] mermade:
I just observed that you might have duplicate groups for Steven Black Hosts (Group: Ads4). Can you remove one of them and check?
[Android Apps and Games] umeshxda:
Yeah.. Already removed one (but both are different ones) ...now its fine
[Android Apps and Games] mermade:
OP: Can you add an option to reset all the settings to their defaults (just like they were after it was first installed). This would be useful instead of uninstalling and then re-installing the app incase something goes wrong.
[Android Apps and Games] losisli:
I have used shadowsocks-android for a long time but it doesn't support custom rules very well. So I'm excited when I found this app. It is just the app what I want.

Here are some feature requests to make this app even better:

1, support new features in latest shadowsocks-libev like plugin system, obfsproxy. And OTA has been deprecated in version 3.0.0.

2, multiple proxy server support. Different group can use different proxy server. If a group's policy is proxy, there will be a option to choose which proxy server to do proxy.

PS: Can you send me a promo code? Thanks.
[Android Apps and Games] netpatch:
Good suggestion, I will add this in the next version.
[Android Apps and Games] netpatch:
Thank you for your feedback,

1, I will improve the shadowsocks proxy in the future. There are already many other things in my plan-list, I do not have time to do it recently.

2, I am concerned that multiple proxy support will increase the complexity of the UI. I will take this matter seriously, if there are others who need this feature.

The promo code has been sent to you, please check your private message.
[Android Apps and Games] LostInInaka:
Very slick - been looking for a decent firewall app on Android - can't wait to see what future improvements you might add :D

PS: saw in thr first thread, so thought I should ask - any promo codes still available?
[Android Apps and Games] netpatch:
The promo code has been sent to you. Looking forward to your feedback.
[Android Apps and Games] fhjhujjj:
Great job

Best Firewall I have used, custom rules is cool. Thanks!
[Android Apps and Games] losisli:
I first found multiple proxy server feature in a app called postern. Link here: https://play.google.com/store/apps/details?id=com.tunnelworkshop.postern

Please check.
[Android Apps and Games] netpatch:
Thank you for your suggestion, I will consider this after the next version released.
[Android Apps and Games] netpatch:
Thank you, NetPatch Firewall is a very early project.

Looking forward to your feedback.
[Android Apps and Games] losisli:
How about excluding LAN ip in route table? Like this link:

http://www.heypasteit.com/clip/22HO6

The link shows ss-android's tun0 table with lan ip excluded.

8.8.8.8 is DNS I set as ss's remote DNS server.
[Android Apps and Games] netpatch:
What do you want to use the route table? If you want to set rules based ip addresses, you can create a IP group.

If you are looking for country ips, I have created them, https://github.com/netpatch/groups_for_netpatch_firewall
[Android Apps and Games] losisli:
Linux executable files are not in netpatch's app list. So can't add them to whitelist. To bypass vpn, I have to add some route rules. The reason for bypass is that the data filtered by netpatch will lose original uid info which is useful in iptables rules.

Adding a blacklist in netpatch's app setting is also a good solution.

edit: forget to mention lan ip...that's because server ip of my local http proxy running as a linux process is a lan ip.
[Android Apps and Games] pato2015:
is there a promo code available? tnx :) [MENTION=7926692]netpatch[/MENTION]

internet usage is faster compare to other vpn solution.. blocking ads really works! great work! tnx:)
[Android Apps and Games] netpatch:
Hi [MENTION=6610671]pato2015[/MENTION], a promo code has been sent to you, please check your private message.
[Android Apps and Games] pato2015:
tnx for code..it works! great app by the way.. !
[Android Apps and Games] netpatch:
Hi [MENTION=5692009]losisli[/MENTION],

Do you meam that using NetPatch Fireall combined with iptables on your phone? if you want some ips bypass NetPatch Firewall, "ip rule" and "ip route" commands should can do it. But it makes things complicated. So can you tell me what is the problem encountered? Do you want to set a globle http proxy on your phone?
[Android Apps and Games] netpatch:
Thank you! Looking forward to your feedback, it's very useful to NetPatch Firewall.
[Android Apps and Games] losisli:
yes, there is a global http proxy on my phone, and I have the ability to solve these problems. What I want to say is that if app side has done some work, there will be less potential abnormal problems users would encounter.

I want blacklist mode in app setting since whitelist mode has some limits. Both mode are useful.

I have several ss proxy servers and want some sites using server A, some sites using server B...You know some sites are ip region-blocked. Some sites using server A is faster than using server B. Some sites show different contents when using different ip region. So I want multiple proxy servers support. Don't know if there is any other user who has the same need as me.

What do you think?
[Android Apps and Games] exodius48:
Easy to use and friendly UI. Also it has unique features rules setting & block domain. Those will make this app become best no root firewall outhere. Also this app can block ads, wooow....very like it

Rated 5 star on playstore..done. Proof see attachment.
[Android Apps and Games] netpatch:
Thank you for your response. I've been considering about your suggestions.

Making NetPatch Firewall easy to use is very important, so I need to carefully add new functions.

1, So do you encounter problems when using global http proxy? Can you describe how you used it? There may be a way to solve your problem without addtional blacklist.

2, Multi-proxy, I'm designing this feature, it may be added after next version released.
[Android Apps and Games] umeshxda:
Feature request

1. Search for apps in app settings
[Android Apps and Games] netpatch:
Thank you. Good, it will be added in next version.