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
- 2.59.161.128
- 5.61.48.198
- 5.188.227.46
- 5.231.123.237
- 15.204.58.167
- 23.95.225.105
- 23.137.251.29
- 23.171.9.5
- 31.20.23.148
- 31.130.138.67
- 38.15.42.226
- 45.9.60.65
- 45.82.80.116
- 45.133.73.35
- 45.134.48.26
- 45.141.119.162
- 45.152.126.20
- 46.29.160.3
- 46.34.3.6
- 46.34.3.7
- 46.102.157.220
- 46.226.106.79
- 47.197.128.198
- 51.159.67.129
- 51.195.20.40
Recently removed entries
- 2.82.21.77
- 5.42.158.85
- 5.134.118.41
- 5.188.24.117
- 5.231.56.133
- 5.252.225.227
- 23.171.9.237
- 31.56.7.32
- 31.56.32.76
- 31.57.56.210
- 31.58.214.126
- 31.70.80.181
- 37.187.131.168
- 38.6.219.92
- 38.49.216.42
- 45.129.2.234
- 45.133.73.184
- 45.141.119.92
- 45.150.238.208
- 45.154.87.1
- 45.178.63.167
- 45.249.91.146
- 46.17.40.64
- 46.29.160.95
- 46.34.3.8
