Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Breed.cn

#1
api问题求助,如何用OPNsense的api,更新防火墙别名的URL Table(IPs)
我在防火墙下,别名里面,新建了一个叫test的URL Table(IPs)类型的别名,内容是URL地址(https://xxx.xxx.xxx.xxx/test.txt),更新时间为1小时,我现在想通过OPNsense的api命令即时更新URL Table(IPs)这个别名的内容,我试过下面的api,提示{"status":"done"},但是实际并没有更新成功,求帮助

    curl -H "Content-Length:0" \
  --user "KEY":"MyPassword" \
  --request POST \
  http://xxx.xxx.xxx.xxx/api/firewall/alias_util/flush/test