Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
deb13:haconfig [2026/09/12 15:01] Bernard Condraudeb13:haconfig [2026/09/12 15:16] (current) – [Powershell] Bernard Condrau
Line 103: Line 103:
     server epione 192.168.1.14:8080 check     server epione 192.168.1.14:8080 check
 </code> </code>
 +
 +===== Whitelist =====
 +<code># /etc/haproxy/whitelist.lst
 +# Allow static addresses
 +183.88.218.149
 +109.205.169.18
 +# Allow dynamic addresses 'dig +short host.mydyndns.org'
 +183.88.218.149
 +</code>
 +
 +===== Blacklist =====
 +<code># /etc/haproxy/blacklist.lst
 +# Deny malicious IP addresses
 +148.66.10.94
 +5.188.62.0/24
 +54.39.29.64
 +185.185.134.115
 +185.46.46.0/24
 +</code>
 +
 +===== Powershell =====
 +<code># D:\update-dns.ps1
 +# This is an example Powershell file for DuckDNS updater, see https://www.duckdns.org
 +param($domain)
 +$duckdomain = if (!$domain) { "my-default-domain-name" } else { $domain }
 +$addr = curl.exe -s "https://api.ipify.org"
 +curl.exe -k "https://www.duckdns.org/update?domains=$duckdomain&token=xxxxxxxx-yyyy-zzzz-*my*-*duckdnstoken*&ip=$addr"
 +</code>
 +Use it with ''C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "D:\update-dns.ps1"''