基于安全考虑,OPNsense未提供基于Web界面的Shell、pftop工具,以及对系统文件编辑功能,如果是高阶用户,知道如何防控使用风险,可以自行添加这些功能。
同时为方便对OPNsense进行补充汉化,也一并提供了在线汉化工具。
下载附件并解压缩,上传到防火墙,进入安装文件目录执行以下命令进行安装:
sh install.sh
安装完成刷新一下浏览器,然后导航到服务>其他工具菜单进行操作。
(https://pfchina.org/wp-content/uploads/2025/02/PixPin_2025-04-05_18-20-07.png)
命令行工具
(https://pfchina.org/wp-content/uploads/2025/02/PixPin_2025-04-05_18-19-54.png)
编辑文件
(https://pfchina.org/wp-content/uploads/2025/02/PixPin_2025-04-05_18-19-41.png)
pftop工具
(https://pfchina.org/wp-content/uploads/2025/02/PixPin_2025-04-05_18-11-20.png)
汉化工具
下载:常用工具 (https://pfchina.org/wp-content/uploads/2025/04/tools.zip)
I apologise, I don't speak Chinese and that's why I write in English. But I wanted to test pfTop and gave your addon/tool a go (I did do a quick translation of your tool to English otherwise I would have been lost :) ).
After going to the page (pfTop) for the first time and no filter set:
opnsense_other_pftop_no-filter-yet.jpeg
... and in pfTop if I set a filter the upper part of the dialog disappears and I can't press anything in the menu on the left.
opnsense_other_pftop_with-filter.jpeg
Btw: after installing it with install.sh you don't have to reboot. Delete the files /tmp/opnsense_acl_cache.json and /tmp/opnsense_menu_cache.xml and reload the webpage.
Thank you for your tip. I optimized the installation script and added the command to delete these two files, so that there is no need to restart the firewall. I also provide the English version of this tool.
other tools (english) (https://pfchina.org/wp-content/uploads/2025/02/other-tools%EF%BC%88english%EF%BC%89.zip)
Excellent, does pfTop work for you with a filter set? Do you still see the upper part of the content?
I have modified my code, you can download it again and try it.
Quote from: opnwall on April 01, 2025, 10:58:14 AMEnter the filter content and press Enter to display the filtered content. Try entering udp and press Enter to display the ongoing upd.
Is there something wrong with the code I modified?
Hi, in didn't work with the 1st version either. If you look at the second picture in my first post, you can see the 'Excute command...'. That is all fine and I can adjust the filter, that is also fine.
But all the part above that is ('Sort By', 'States' etc) are not show when I apply a filter. And if I click on anything in the menu on the left, nothing happens.
Quote from: patient0 on April 01, 2025, 11:06:34 AMQuote from: opnwall on April 01, 2025, 10:58:14 AMEnter the filter content and press Enter to display the filtered content. Try entering udp and press Enter to display the ongoing upd.
Is there something wrong with the code I modified?
Hi, in didn't work with the 1st version either. If you look at the second picture in my first post, you can see the 'Excute command...'. That is all fine and I can adjust the filter, that is also fine.
But all the part above that is ('Sort By', 'States' etc) are not show when I apply a filter. And if I click on anything in the menu on the left, nothing happens.
I didn't expect you to reply so quickly.Re-download and test it.
Quote from: opnwall on April 01, 2025, 11:24:31 AMRe-download and test it.
I'll that later today and let you know, thank you already :)
I installed the new version and now pfTop works excellent, thanks a lot!