mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
add a command for a ready to use list
This commit is contained in:
parent
b4e939425f
commit
2ebd81db62
1 changed files with 7 additions and 0 deletions
|
@ -90,4 +90,11 @@ Using the connexion to allow, go to <https://ip.guide/> and click on "Autonomous
|
|||
You can now copy all the IP adresses in the "routes" section, remove all quotation marks, commas and spaces, but keep one IP per line, then paste the result into your allowlist.
|
||||
It should look like the list in the previous section.
|
||||
|
||||
You can use the following command to automatically give you a ready-to-use list:
|
||||
|
||||
```bash
|
||||
AS="$(curl -sL ip.guide | jq -s --indent 1 ".[].network.autonomous_system.asn")" | curl -sL ip.guide/AS"$AS" | jq -s --indent 1 ".[].routes" |
|
||||
sed "/\[/d;/{/d;/]/d;/}/d;s/ \"//;s/\",//;s/\"//"
|
||||
```
|
||||
|
||||
**Note:** maybe you'll need to do this step multiple times, as some Internet provider have multiple ASN numbers. So if one day your AdGuard Home refuses to reply, it might be because of this.
|
||||
|
|
Loading…
Add table
Reference in a new issue