Locked out of your QNAP?

When using the feature „Security – Security Level – Allow Connections from the list only“ you will lock yourself out, when not adding your local network.
Well, if this happened you access your device via SSH using the network which you already allowed. Then you go to

[/mnt/HDA_ROOT/.config] and edit ipsec.conf.
Add another row with your local network. This can look like this:

1:192.168.0.0:255.255.255.0:0:1444485407

Reboot your QNAP and try accessing it from your local network.