有些情况,可能造成自己的IP被Synology NAS锁住了,像是邮件主机架在Synology NAS上,结果邮件密码设置错误。
或是Synology在内网,未正确设置好真实IP的forward header,不管什么原因,我们想透过命令行的方式去移除被锁住的IP。
以下提供我的操作范例
ssh root@cc
Synology strongly advises you not to run commands as the root user, who has
the highest privileges on the system. Doing so may cause major damages
to the system. Please note that if you choose to proceed, all consequences are
at your own risk.
root@CCC:~# sqlite3 /etc/synoautoblock.db
SQLite version 3.34.1 2021-01-20 14:10:07
Enter ".help" for usage hints.
sqlite>
进入后
delete from AutoBlockIP where IP ="被锁的IP";
您也可以下select命令查看
select * FROM AutoBlockIP;
要离开,可以下命令
sqlite> .exit
No Comment
Post your comment