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
dnscrypt boot script for init.d #558
Comments
Dear uzen, would be great if you can describe your way how to install/start/stop the proxy in a few words and what userdefined afwall-script works. |
tested the work on a clean lineage os in 14.1 without any patches. When the system is booted the AFWall+ starts the script from folder init.d. If you stop the firewall the script will be turned off and redirection tables are cleared. flash zip with v2.0.16 arm + arm64 AFWall > custom script Start: server_names = ['scaleway-fr', 'google', 'yandex', 'cloudflare'] |
The proxy server launching in the background. The function wait_for_demon must check its functionality before applying the rules. |
Dear uzen! Thanks for the input! I would recommend activating this in dnscrypt-proxy.toml How do you setup Afwall+ if the fallbackserver needs to be active? But I need to activate manual a second afwall-script for letting the fallbackserver through Is there a way to do this in one script together and everythings working automatically? |
it'll be better not to trust afwall and add in the beginning of iptables_rules() of your script before case-switch (it's an uncomplete example only, all tables and rules had to be thoroughly cleaned for total block):
thus you'll kill two hares with one shot:
in the case 0) of iptables_rules() after this total deleting all had to be recreated back, of course. ;-) and if you'd set logging of init.d execution, you'll find that your 99dnscrypt surprisingly had run twice on every boot. ;-Ъ |
and if you'd set logging of init.d execution, you'll find that your 99dnscrypt surprisingly had run twice on every boot. ;-Ъ build repo https://github.com/uzen/dnscrypt-android @admzzz , so, can you do it by sending a pull-request in my repo? |
so, your script had to satisfy both type of users (usually, scripts in init.d or su.d ARE executed on system's startup). hint: scripts with the dot in the name (i.e. afwall.on or afwall.off or dnscrypt. or .halt_tcp) are not executed automatically. a lot of (a little old, elas) info could be found at https://4pda.ru/forum/index.php?forums[]=284&topics[]=508427&act=search&source=pst&query=afwall (in russian, read backwards, from the oldest to the newest messages). |
updated startup script Start: |
@uzen , |
what you think?
Afwall custom script
Start:
. /system/etc/init.d/99dnscrypt start &
Stop:
. /system/etc/init.d/99dnscrypt stop &
The text was updated successfully, but these errors were encountered: