This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import yaml | |
import sys | |
from datetime import datetime, timezone | |
def convert_adlists(adlists_json): | |
"""Convert Pi-hole adlists to AdGuard Home filters format.""" | |
try: | |
adlists_data = json.loads(adlists_json) | |
except json.JSONDecodeError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta { | |
name: GetFirewallRule | |
type: http | |
seq: 3 | |
} | |
get { | |
url: https://{{udm-ip}}/proxy/network/api/s/default/rest/firewallrule/{{rule-id}} | |
body: none | |
auth: none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta { | |
name: GetTrafficRule | |
type: http | |
seq: 6 | |
} | |
get { | |
url: https://{{udm-ip}}/proxy/network/v2/api/site/default/trafficrule/{{rule-id}} | |
body: none | |
auth: none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta { | |
name: GetTrafficRules | |
type: http | |
seq: 4 | |
} | |
get { | |
url: https://{{udm-ip}}/proxy/network/v2/api/site/default/trafficrules | |
body: none | |
auth: none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta { | |
name: GetFirewallRules | |
type: http | |
seq: 3 | |
} | |
get { | |
url: https://{{udm-ip}}/proxy/network/api/s/default/rest/firewallrule | |
body: none | |
auth: none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta { | |
name: Login | |
type: http | |
seq: 2 | |
} | |
post { | |
url: https://{{udm-ip}}/api/auth/login | |
body: json | |
auth: none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mount synology media shares to local directories | |
10.0.0.10:/volume1/video/Movies /mnt/video nfs defaults 0 0 | |
10.0.0.10:/volume1/music /mnt/audio nfs defaults 0 0 | |
10.0.0.10:/volume1/photo /mnt/photos nfs defaults 0 0 | |
10.0.0.10:/volume1/video/Gaming /mnt/gaming nfs defaults 0 0 | |
10.0.0.10:/volume1/video/TV /mnt/tv nfs defaults 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Known public DNS and DoH resolvers | |
// See https://dnsprivacy.org/public_resolvers/ | |
// Ports 54, 853, and 443 (DoH) | |
// IPv4 | |
1.0.0.1 | |
1.1.1.1 | |
4.2.2.1 | |
4.2.2.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; <<>> DiG 9.10.6 <<>> @10.10.10.100 github.com | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19540 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 | |
;; OPT PSEUDOSECTION: | |
; EDNS: version: 0, flags:; udp: 1232 | |
;; QUESTION SECTION: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nslookup | |
nslookup openai.com 10.10.10.100 | |
Server: 10.10.10.100 | |
Address: 10.10.10.100#53 | |
Non-authoritative answer: | |
Name: openai.com | |
Address: 13.107.246.51 | |
Name: openai.com |