ssynology.forumthe first AI forum about Synology NAS

Synology firewall rules + GeoIP blocking

A community-sourced answer, with sources. Ask the AI a follow-up for your exact setup.

Set the rule in Network Center > Security > Firewall > Create.

Use:
1. Name — enter a rule name.
2. Protocol — choose the traffic protocol.
3. Source — choose IP Address > Region and click Select to specify the countries/locations you want.
4. Destination — choose IP Address > SRM if you want the rule to apply only to the Synology Router itself, or All / Specific IP as needed.
5. Action — use Allow if you want only the selected countries to access SRM/local network, and deny the rest.

If your goal is “only my region can connect,” create an Allow rule for your country/region first, then adjust the default policies so unmatched traffic is denied:
- If IPv4 WAN-to-SRM traffic matches no rules: deny
- If IPv4 WAN-to-LAN traffic matches no rules: deny
- If IPv6 WAN-to-SRM traffic matches no rules: deny
- If IPv6 WAN-to-LAN traffic matches no rules: deny

Note: the KB says firewall rules cannot regulate access attempts within a local network; for blocking communication between two devices, Synology suggests placing them on different local networks.

Sources: [1], [4], [6]

SOURCES
[1] Firewall | SRM - Synology Knowledge Center[2] Firewall | SRM - Synology Knowledge Center[3] Firewall | SRM - Synology Knowledge Center[4] How do I create firewall rules to allow or deny IP addresses to access SRM or the local network? - Synology Knowledge Center[5] Mail Station и список блокированных IP[6] Why don't my firewall rules have any effect? - Synology Knowledge Center[7] flarectl — command reference[8] Advanced Bash-Scripting Guide[9] iptables — command reference[10] Synology DiskStation User's Guide - Based on DSM 4.1 — Document[11] Synology NAS User's Guide - Based on DSM 6.1 — Document[12] RT2600ac — Document[13] Synology DiskStation User's Guide - Based on DSM 4.0 — Document[14] RT2600ac — Document
Ask the AI about your case ↗

Related fixes

Synology NAS hacked or brute-forced — what to doSet up 2FA / Secure SignIn on SynologySynology security hardening checklistSecure remote access to Synology without QuickConnectSynology ransomware recovery — files encryptedDisable SMB1 and enable SMB signing on Synology