https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1 Open raw list Description
Filter list covering allowlist. Format: IPs (IPv4). Maintained by Wu Tingfeng. See the project homepage for details and inclusion criteria.
Integration
- Go to Firewall → pfBlockerNG → DNSBL → DNSBL Groups (or IP for IP lists).
- Click Add, give the group a name and add the URL below as source (Format: Auto).
- Save, then run Update → Force Reload.
https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1 Address list per script
Fetch the list and import it into an address list called blocklist:
/tool fetch url="https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1" dst-path=blocklist.rsc
/import blocklist.rsc If the list is a plain text file with one address or CIDR per line, convert it first:
/tool fetch url="https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
/ip firewall address-list add list=blocklist address=$line comment="Syncthing Relay Server IPs"
} Use the list in the firewall
/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="Syncthing Relay Server IPs"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="Syncthing Relay Server IPs" Schedule the fetch with /system scheduler to keep the list current. Very large lists consume RAM, so check the available memory of your device first.
banIP (recommended)
- Install the package:
opkg update && opkg install banip luci-app-banip - Open LuCI → Services → banIP → Feeds and add a custom feed with the URL below.
- Enable the feed and click Save & Apply.
https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1 Manual with nftables
wget -qO /tmp/blocklist.txt "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1"
nft add set inet fw4 blocklist { type ipv4_addr; flags interval; }
nft -f - <<EOF
$(awk '!/^[#;]/ && NF {print "add element inet fw4 blocklist { " $1 " }"}' /tmp/blocklist.txt)
EOF
nft add rule inet fw4 forward ip saddr @blocklist drop ipset create blocklist hash:net -exist
curl -fsSL "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1" | grep -Eo '^[0-9]{1,3}(.[0-9]{1,3}){3}(/[0-9]{1,2})?' |
while read -r net; do ipset add blocklist "$net" -exist; done
iptables -I INPUT -m set --match-set blocklist src -j DROP
iptables -I FORWARD -m set --match-set blocklist src -j DROP Persist the set and re-run the download from cron to keep it current:
ipset save blocklist -f /etc/ipset.blocklist
# /etc/cron.daily/blocklist
Add the list as an ipset in /etc/firehol/firehol.conf:
ipset4 create blocklist hash:net
ipset4 addfile blocklist "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1"
blacklist4 full inface any src ipset:blocklist Reload with firehol try and confirm before making it permanent.
- Go to Firewall → Aliases and click +.
- Choose type URL Table (IPs), set a refresh interval (for example 1 day) and paste the URL below.
- Save and apply, then use the alias as source in a block rule under Firewall → Rules.
https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1 - Go to Firewall → pfBlockerNG → IP → IPv4 and click Add.
- Paste the URL below as source, set State to ON and pick the action (Deny Both is the usual choice).
- Save, then run Update → Force Reload → IP.
https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1 curl -fsSL "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1" -o /var/lib/suricata/data/blocklist.txt Reference the file from a rule using a dataset:
alert ip [!$HOME_NET] any -> $HOME_NET any (msg:"Syncthing Relay Server IPs match";
ip.src; dataset:isset,blocklist, type string, load blocklist.txt; sid:1000001;) Recent changes
Recently added entries
- 1.163.234.163
- 2.135.147.126
- 5.45.65.149
- 5.182.87.70
- 23.94.63.173
- 23.137.251.20
- 31.56.7.32
- 31.57.56.123
- 31.70.111.17
- 37.114.48.224
- 37.221.65.85
- 38.49.216.42
- 45.91.92.179
- 45.118.145.140
- 45.130.147.175
- 45.133.73.8
- 45.133.73.184
- 45.150.109.210
- 58.152.140.168
- 64.235.45.16
- 65.108.156.90
- 73.218.56.22
- 75.127.13.75
- 76.191.190.130
- 77.90.35.161
Recently removed entries
- 2.27.170.76
- 5.42.158.85
- 5.61.48.198
- 23.95.225.105
- 23.171.9.5
- 31.6.1.164
- 31.58.214.63
- 31.135.195.102
- 45.9.75.132
- 45.139.163.86
- 45.140.169.220
- 45.249.91.146
- 51.15.62.88
- 62.214.95.86
- 77.238.144.128
- 78.128.127.117
- 79.101.93.54
- 81.30.220.160
- 82.76.8.108
- 85.121.50.155
- 85.191.36.174
- 85.209.51.221
- 85.215.43.211
- 89.125.139.145
- 91.121.242.54
