bash上的mikrotik命令

问题描述 投票:0回答:2

我想通过bash脚本阻止某些网站。我有一个网站名称列表list.txt的列表。路由器是mikrotik。我需要语法帮助。 ssh连接后无法发送命令

文件=“ list.txt”

行= cat $ file

sshpass -p'blabla'ssh [email protected]

对于$行中的行;做

“ / ip代理访问权限添加dst-host =” $ line“ action = deny comment =” list“

完成

bash ssh mikrotik
2个回答
0
投票

0
投票
© www.soinside.com 2019 - 2024. All rights reserved.