1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-04 06:23:04 +00:00
Commit graph

1544 commits

Author SHA1 Message Date
M66B
29d3c74a9a Use reentrant read/write lock to protect database / optimize performance
Refs #243
2016-02-10 18:54:22 +01:00
M66B
e738cddd80 Make database helper single instance
Refs #243
2016-02-10 12:50:51 +01:00
M66B
5b93010a9a Crowdin sync 2016-02-10 12:30:33 +01:00
M66B
bdcb1056b4 Log number of logcat lines
Refs #243
2016-02-10 12:29:52 +01:00
M66B
92f8dd662d Native ACK remote FIN without delay 2016-02-10 12:07:39 +01:00
M66B
0608189bdf Nobody 2016-02-10 10:22:13 +01:00
M66B
ad9610cd43 Enable use hosts after download 2016-02-10 09:32:36 +01:00
M66B
6916fda17e Hint destination port to be 5353
Closes #304
2016-02-10 09:16:37 +01:00
M66B
5c13c4ab0c 2016020902 beta 2016-02-09 21:30:19 +01:00
M66B
b6b1e0d251 Native TCP socket close handling 2016-02-09 21:16:16 +01:00
M66B
47a27f61c4 Native refactoring 2016-02-09 19:56:05 +01:00
M66B
e638533e06 Native refactoring 2016-02-09 18:59:20 +01:00
M66B
8eba191c43 Native is numeric address, reverse DNS for numeric access addresses 2016-02-09 16:31:56 +01:00
M66B
d6e9f711f4 Fixed lint warnings 2016-02-09 15:29:28 +01:00
M66B
e43c76b264 Added hint texts to port forward add dialog 2016-02-09 15:10:12 +01:00
M66B
285e2e7f13 Port forwarding UDP/TCP dropdown
Refs #303
2016-02-09 14:56:34 +01:00
M66B
5436b12fbf Default native log level error 2016-02-09 14:20:37 +01:00
M66B
f28f2ec461 Move session info to bottom corner 2016-02-09 14:20:18 +01:00
M66B
32223b6c4f Native refactoring 2016-02-09 13:43:18 +01:00
M66B
fec3593a73 Fixed build.gradle
Refs #298
2016-02-09 12:33:14 +01:00
M66B
03ff9d7d12 0.86 beta 2016-02-09 11:36:15 +01:00
M66B
9c9a7a7523 Native increase select timeout 2016-02-09 11:32:03 +01:00
M66B
27cc16eb2e Basic port forwarding UI
Fixes #292
2016-02-09 11:24:59 +01:00
Marcel Bokhorst
a5ace98900 Merge pull request #298 from smarek/gradle-experimental-upgrade
Upgrade to Gradle experimental plugin 0.6.0-alpha5
2016-02-09 08:12:27 +01:00
M66B
b8716554f0 Native better receive window handling 2016-02-09 07:59:26 +01:00
M66B
da99bca7a1 Native calculate receive window 2016-02-08 22:20:38 +01:00
M66B
b3458e3bd9 2016020803 beta 2016-02-08 21:14:13 +01:00
M66B
e5f22a9029 Native less agressive scaling 2016-02-08 21:01:20 +01:00
M66B
d0a50b53f9 2016020802 beta 2016-02-08 20:41:31 +01:00
M66B
0a8dd5a41b Native scale UDP/TCP timeout 2016-02-08 20:36:16 +01:00
M66B
09be0d58d9 Revert "Native keep sessions shorter to prevent too many open files"
This reverts commit c14a79623a.
2016-02-08 19:26:28 +01:00
M66B
c14a79623a Native keep sessions shorter to prevent too many open files 2016-02-08 19:12:33 +01:00
M66B
11f2d1a7fc Show session count in traffic stats 2016-02-08 19:03:12 +01:00
M66B
6f9fa2951f Native delete locale references to prevent table overflow 2016-02-08 18:14:03 +01:00
M66B
73367e068c Native RST when data queued after close linger 2016-02-08 17:43:00 +01:00
M66B
6397fcc29a 2016020801 beta 2016-02-08 16:58:24 +01:00
M66B
bbbcbaa34d Crowdin sync 2016-02-08 16:45:23 +01:00
M66B
1291bdaf61 Show forwarding as extra data
Refs #292
2016-02-08 16:39:54 +01:00
M66B
2f04f8b884 Native new forwarding
Refs #292
2016-02-08 16:34:54 +01:00
M66B
673b3d0da0 Native move port forwarding to Java
Refs #292
2016-02-08 14:33:33 +01:00
M66B
d62e20ef34 Native check packet lengths, check ICMP type 2016-02-08 13:18:55 +01:00
M66B
146fc7bde7 Native calculate next event time, fixes 2016-02-08 12:52:09 +01:00
M66B
eb582141e5 Native TCP close revised
Closes #300
2016-02-08 11:51:40 +01:00
M66B
03e26b2550 Native TCP rewrite
Refs #300
2016-02-07 23:01:48 +01:00
M66B
1413788373 Native buffer FIN/ACK
Refs #300
2016-02-07 20:15:40 +01:00
M66B
eacdb900b9 New file 2016-02-07 19:24:26 +01:00
M66B
741da619e1 Check remote sequence only for ACK
Fixes #299
2016-02-07 18:49:00 +01:00
M66B
cde04f9829 Native reset when remote closes with data buffered 2016-02-07 17:47:18 +01:00
M66B
29c173f155 Native prepare for generic port forwarding 2016-02-07 17:44:23 +01:00
Marek Sebera
72bf5f42a1 Upgrade to Gradle experimental plugin 0.6.0-alpha5 2016-02-07 14:27:18 +01:00
M66B
45ac98b0a3 2016020701 beta 2016-02-07 10:57:07 +01:00
M66B
898f6cd3c6 Disable challenge/response for Play store installs 2016-02-07 10:37:28 +01:00
M66B
9532e33c2d Added option to purchase all pro features 2016-02-07 10:34:26 +01:00
M66B
719094d103 Show default icon in access log for root/mediaserver/unknown packages 2016-02-07 10:12:00 +01:00
M66B
56421a954f Fixed FIN with buffered data
Fixes #293
2016-02-07 10:06:57 +01:00
M66B
11dadcf93f Group addresses for access notifications 2016-02-07 09:43:28 +01:00
M66B
a2c1f1c5eb Fixed potential crashes
Google: after all these years we are still missing a reliable AsynTask / Dialog

Fixes #291
2016-02-07 09:28:02 +01:00
M66B
6aa89b8038 Own fault 2016-02-06 20:24:48 +01:00
M66B
a31d0b3bfe Preference hint 2016-02-06 19:52:29 +01:00
M66B
548a00b315 Set roaming default to black listing
With the new permission request, people will come with questions otherwise
2016-02-06 19:50:31 +01:00
M66B
fe5ebd50ad 0.85 beta 2016-02-06 19:23:13 +01:00
M66B
86334e72aa Simplified and improved DNS selection logic 2016-02-06 18:46:32 +01:00
M66B
4038831c7b Crowdin sync 2016-02-06 16:19:43 +01:00
M66B
369cbbea94 Require approval for port forwarding 2016-02-06 16:17:31 +01:00
M66B
8842a3dfe4 Check of emty DNS addresses
Refs #290
2016-02-06 15:07:08 +01:00
M66B
1831f2f961 Native forwarding fixes 2016-02-06 12:54:44 +01:00
M66B
f5a47dee6f Added copyright notice 2016-02-06 12:26:30 +01:00
M66B
2cff43d045 Native port forward by intent
Closes #272
2016-02-06 12:25:20 +01:00
M66B
d0c0caf69f Simplify access notification 2016-02-06 10:12:49 +01:00
M66B
fd50fc3cd8 Show access time 2016-02-06 10:12:11 +01:00
M66B
9f1be43455 Only TCP and UDP have port numbers 2016-02-06 10:05:17 +01:00
M66B
b59d1a1e3e Native check if tun is writable 2016-02-06 09:55:17 +01:00
M66B
110b40290e root is needed for name resolving 2016-02-06 09:34:55 +01:00
M66B
e1f01dd803 Native port 0 is reserved and should not be used 2016-02-06 09:12:43 +01:00
M66B
bfc6a509fb Relate packages with same uid 2016-02-06 08:52:13 +01:00
M66B
06a1819f52 Search on uid equality 2016-02-06 08:40:37 +01:00
M66B
73fc59828b Native refactoring 2016-02-06 08:04:15 +01:00
M66B
3be710c3e6 Native SYN data handling, TCP forward time-out 2016-02-06 08:03:34 +01:00
M66B
4fd1333358 Added mediaserver to application list 2016-02-06 07:35:02 +01:00
M66B
fd022f4065 ICMP has no real port numbers 2016-02-05 22:10:12 +01:00
M66B
dc93dc4ad2 Dump /proc/net line 2016-02-05 21:59:47 +01:00
M66B
695c46714a Reset access on set 2016-02-05 21:13:32 +01:00
M66B
e4c64b7034 Filter by version and protocol
Fixes #284
2016-02-05 21:11:39 +01:00
M66B
21ef2377ed Improvement 2016-02-05 20:50:30 +01:00
M66B
4f263330d2 Store access version/protocol
Refs #284
2016-02-05 20:44:12 +01:00
M66B
f01138caeb 0.84 beta 2016-02-05 18:59:19 +01:00
M66B
3fd5c71cb8 Native rewritten traffic forwarding 2016-02-05 18:55:07 +01:00
M66B
02a665103e Request required permissions on import
Fixes #288
2016-02-05 16:59:40 +01:00
M66B
8b641422b5 Native properly compare sequence numbers 2016-02-05 16:30:18 +01:00
M66B
40985f9d93 Native attempt to received larger tun messages 2016-02-05 15:57:33 +01:00
M66B
30f6a516e9 Native simplified logging 2016-02-05 13:52:11 +01:00
M66B
e9e48115b6 Native buffer data to forward 2016-02-05 11:20:47 +01:00
M66B
03140b5a1a The application access log supports UDP and TCP only for now 2016-02-04 17:17:02 +01:00
M66B
b6718e4db3 Sort applications on name depending on locale 2016-02-04 16:44:47 +01:00
M66B
2dcaccd75a Add root to application list
Shell is already part of the list

Fixes #283
2016-02-04 16:43:06 +01:00
M66B
f6c2a3462f More robust database upgrades 2016-02-04 15:09:26 +01:00
M66B
2ae2bbdd54 Crowdin sync 2016-02-04 14:53:01 +01:00
M66B
f98e4a0f44 Added refresh menu to traffic log
For when live updates are disabled
2016-02-04 14:49:37 +01:00
M66B
be214bd9f2 Refresh adapter on resume 2016-02-04 14:06:33 +01:00
M66B
57481d9005 0.83 beta 2016-02-04 13:21:44 +01:00
M66B
b23d5482c9 0.83 beta 2016-02-04 13:11:15 +01:00
M66B
ce9c03329a Crowdin sync 2016-02-04 13:11:04 +01:00
M66B
f746b2214f Fixes 2016-02-04 13:00:33 +01:00
M66B
943a463782 Batch changed notifications 2016-02-04 12:16:22 +01:00
M66B
f4657ea00f Crowdin sync 2016-02-04 11:10:39 +01:00
M66B
c4391a7c94 Filter traffic log on udp/tcp/other and blocked/allowed
Fixes #282
2016-02-04 11:07:48 +01:00
M66B
be00ef48c0 Better handle blocked UDP traffic 2016-02-04 10:09:31 +01:00
M66B
989303efc6 Show allowed/blocked/hosts count only if there is something to count 2016-02-04 08:54:54 +01:00
M66B
df2c62aca0 Conditionally create database indices
Refs #256
2016-02-04 07:40:18 +01:00
M66B
ac1ffb569d Limit application access log to 50 entries 2016-02-04 07:23:27 +01:00
M66B
338bf5ccec Remove last download time on local import of hosts file
Fixes #275
2016-02-04 07:14:30 +01:00
M66B
edf9e11993 Disable name resolving while logging 2016-02-04 07:06:54 +01:00
M66B
5bfc880751 Substract network speed of NetGuard from total when filtering 2016-02-04 07:05:36 +01:00
M66B
f018e963da Layout improvement 2016-02-04 06:55:24 +01:00
M66B
0667a58408 DNS table cleanup 2016-02-03 20:38:38 +01:00
M66B
7e6b9a34eb 0.82 beta 3 2016-02-03 19:50:20 +01:00
M66B
0209cc2afd More logging 2016-02-03 19:50:12 +01:00
M66B
836000529a Fixed updating uid/IP map 2016-02-03 19:35:12 +01:00
M66B
e186d5a7c6 0.82 beta 2 2016-02-03 19:20:35 +01:00
M66B
caac35154d Give me a little space, please! 2016-02-03 19:19:57 +01:00
M66B
921e137955 Crowdin sync 2016-02-03 19:17:37 +01:00
M66B
099db1b820 Make room for all those new features ;-) 2016-02-03 19:14:10 +01:00
M66B
013e5b8cc2 Fixed updating dns table 2016-02-03 18:58:15 +01:00
M66B
18b780bfa4 Added setting to disable storing resolved domain names (default enabled) 2016-02-03 18:41:11 +01:00
M66B
40b8dcc5bd Native fixed warnings 2016-02-03 18:32:25 +01:00
M66B
14fa20dfda Revert "Native experiment: route DNS traffic into dnscrypt-proxy"
This reverts commit 0d61d804d8.
2016-02-03 18:25:49 +01:00
M66B
abc16d3bef Revert "Native disabled DNS experiment"
This reverts commit be3dbe50dc.
2016-02-03 18:25:40 +01:00
M66B
4a042339ba Resolve using the database 2016-02-03 17:59:24 +01:00
M66B
f8c5a4cf32 Persists resolved DNS 2016-02-03 17:09:12 +01:00
M66B
f20b586710 Added indices to facilitate searching 2016-02-03 16:51:01 +01:00
M66B
4434a61280 Updated, added text
https://tools.ietf.org/html/rfc2308
2016-02-03 16:27:04 +01:00
M66B
2a0d7661e0 Allow searching on resolved names 2016-02-03 16:10:25 +01:00
M66B
be3dbe50dc Native disabled DNS experiment
Refs #272
2016-02-03 15:53:28 +01:00
M66B
0d61d804d8 Native experiment: route DNS traffic into dnscrypt-proxy
Setup:

- download dnscrypt-proxy compiled for Android from https://dnscrypt.org/
- copy the following files to /system/xbin using recovery:

-rwxr-xr-x root     root       224320 2016-02-03 14:44 dnscrypt-proxy
-rwxr-xr-x root     root       130432 2016-02-03 14:40 hostip
-rwxr-xr-x root     root       268196 2016-02-03 14:40 libsodium.so

- make these files executable (chmod 755)
- copy dnscrypt-resolvers.csv to /sdcard//Download/dnscrypt/
- run this script from the shell:

export LD_LIBRARY_PATH="/system/xbin"
dnscrypt-proxy -a127.0.0.1:5353 --loglevel=7 --resolver-name="dnscrypt.org-fr" --resolvers-list=/sdcard//Download/dnscrypt/dnscrypt-resolvers.csv

- make sure you set an IPv4 DNS server in NetGuard
- note that Android caches DNS responses for 10 minutes
- profit!

Refs #272
2016-02-03 15:47:45 +01:00
M66B
2834f1e555 Layout improvement 2016-02-03 14:01:07 +01:00
M66B
5ab87cdca8 Remove checks for Wi-Fi and telephony
Fixes #267
2016-02-03 13:42:03 +01:00
M66B
859caa6536 Check permissions for roaming whitelisting 2016-02-03 13:28:29 +01:00
M66B
a0dc8d46be Remember last hosts file download, improvements
Fixes #273
2016-02-03 13:23:54 +01:00
M66B
b4685b256d 0.82 beta 2016-02-03 11:59:28 +01:00
M66B
7069bac392 Crowdin sync 2016-02-03 11:56:28 +01:00
M66B
191fa26cf3 Hosts file download option 2016-02-03 11:54:17 +01:00
M66B
d6e5acd091 Some more port names 2016-02-03 09:04:07 +01:00
M66B
df32990789 IP6 multicast support (untested) 2016-02-03 08:47:10 +01:00
M66B
1b7e0966e7 Correct maximum messages sizes 2016-02-03 08:46:46 +01:00
M66B
87da34c19d Increase ICMP timeout 2016-02-03 07:42:06 +01:00
M66B
bd78a165b7 Scroll to item after clearing access rules 2016-02-03 07:41:02 +01:00
M66B
bdfc007218 Explain what to be sure about 2016-02-03 07:33:06 +01:00
M66B
b33ed72d3c Show access rule count instead of access attemps count, comments 2016-02-03 07:19:28 +01:00
M66B
b928510207 Rename menu 2016-02-03 07:04:41 +01:00
M66B
a3f9464554 Show number of hosts
Refs #271
2016-02-02 20:39:26 +01:00
M66B
1f3e638dd0 Fixed technical info 2016-02-02 19:50:28 +01:00
M66B
1164ae404e 0.81 beta 2016-02-02 18:59:26 +01:00
M66B
c35f44a93e Log number of sessions 2016-02-02 18:15:20 +01:00
M66B
b669864845 Workaround bug in phread_kill on SDK < 16
Refs #243
2016-02-02 18:02:45 +01:00
M66B
b311ec7b77 Layout fixes
Refs #243
2016-02-02 16:30:57 +01:00
M66B
d88b1f39e5 Better lifecycle logging and potential fix for stop hang
Refs #243
2016-02-02 16:13:33 +01:00
M66B
b724a5c61a Crowdin sync 2016-02-02 15:11:09 +01:00
M66B
ff4beabac7 native ICMP
Fixes #252
2016-02-02 14:54:07 +01:00
M66B
67fbad0441 Fixed getting logcat
Refs #243
2016-02-02 10:06:32 +01:00
M66B
7c43ba977d Fixed up navigation
http://developer.android.com/training/implementing-navigation/ancestral.html

Refs #243
2016-02-02 09:01:04 +01:00
M66B
7f9e435504 Request VPN approval after autostart fail
Refs #243
2016-02-02 08:49:39 +01:00
M66B
262f07e69a Typo 2016-02-02 08:35:57 +01:00
M66B
7c1e7f4845 Notify autostart failed
Refs #243
2016-02-02 08:20:57 +01:00
M66B
b968a2b595 Updated text 2016-02-02 08:09:07 +01:00
M66B
d6460d368b Fixed export file name
Refs #243
2016-02-02 07:46:50 +01:00
M66B
f224b54139 Fixed notify internet app setting not sticking 2016-02-02 07:32:22 +01:00
M66B
55eeda5bf9 Search on port number
Closes #228
2016-02-01 20:48:14 +01:00
M66B
c665f114b4 Keep filtering
Refs #228
2016-02-01 20:45:35 +01:00
M66B
477c3a604a Added settings to disable access notifications per application
Fixes #268
2016-02-01 20:22:39 +01:00
M66B
b77efa6291 Crowdin sync 2016-02-01 19:51:57 +01:00
M66B
1a4e18acf3 Use hosts is an advanced option 2016-02-01 19:51:33 +01:00
M66B
d18d91550f Display number of hosts
Fixes #248
2016-02-01 19:43:17 +01:00
M66B
cf031885a2 0.80 beta 4 2016-02-01 18:22:50 +01:00
M66B
5757c66e79 Use checkbox preferences for Android < 5.0
SwitchCompat cannot be used because there is currently no MultiSelectListPreference
2016-02-01 18:19:25 +01:00
M66B
29d1c26166 Revert "Preference compat"
This reverts commit 8a2ddf6cac.
2016-02-01 17:42:36 +01:00
M66B
8a2ddf6cac Preference compat 2016-02-01 17:42:18 +01:00
M66B
4b6873b278 Base theme 2016-02-01 17:29:02 +01:00
M66B
d78b9b6543 Crowdin sync 2016-02-01 16:37:35 +01:00
M66B
5c59740dd7 Write external storage permission is required for before Android 5 :-( 2016-02-01 16:02:57 +01:00
M66B
93f368cf4a Use hosts by default, so that import hosts will work out of the box 2016-02-01 16:02:36 +01:00
M66B
7402ae02af Log app when log disabled 2016-02-01 15:44:47 +01:00
M66B
f307cd9fd4 Fixed preference dependency
Refs #243
2016-02-01 15:33:10 +01:00
M66B
f9141cba78 When in doubt
Refs #243
2016-02-01 15:06:01 +01:00
M66B
4c0eb31e6c What a horrible Android bug
Refs #243
2016-02-01 14:23:58 +01:00
M66B
959d610a2e Fixed <Android 5.0 compatibility
Refs #243
2016-02-01 13:32:18 +01:00
M66B
51c12cd922 Crowdin sync 2016-02-01 10:07:21 +01:00
M66B
fe8e7a88e2 Export/import application access filters
Fixes #269
2016-02-01 10:04:17 +01:00
M66B
d9bf4682b6 Hide keyboard on search submit 2016-02-01 08:36:22 +01:00
M66B
64b00b73b8 Added option to enable application access logging 2016-02-01 08:25:08 +01:00
M66B
ccc0471418 Auto expand search with one result 2016-02-01 07:55:04 +01:00
M66B
af4c9e170a Fixed theming 2016-02-01 07:37:13 +01:00
M66B
585c6383c8 Reload stats after import 2016-02-01 07:32:53 +01:00
M66B
d9f3b0e5cd Fixed default 2016-02-01 07:31:15 +01:00
M66B
931dd8006d Added notes 2016-01-31 19:52:31 +01:00
M66B
8dade510a6 Cache record records by InetAddress 2016-01-31 19:34:24 +01:00
M66B
f958e2e453 0.80 beta 3 2016-01-31 18:54:31 +01:00
M66B
2b719c2aee ICS+ compatibility
Fixes #243
2016-01-31 18:47:57 +01:00
M66B
31403f73bc Improved PCAP file init
Refs #259
2016-01-31 18:46:44 +01:00
M66B
e6f47cd400 Fixed name resolving for IP filtering 2016-01-31 17:16:56 +01:00
M66B
33c84c6f90 Fixed lint warnings 2016-01-31 16:43:32 +01:00