OPNsense adds pfTop, file edit and shell tools

Started by opnwall, March 30, 2025, 11:39:19 AM

Previous topic - Next topic
March 30, 2025, 11:39:19 AM Last Edit: April 05, 2025, 02:37:57 PM by opnwall
基于安全考虑,OPNsense未提供基于Web界面的Shell、pftop工具,以及对系统文件编辑功能,如果是高阶用户,知道如何防控使用风险,可以自行添加这些功能。
同时为方便对OPNsense进行补充汉化,也一并提供了在线汉化工具。

下载附件并解压缩,上传到防火墙,进入安装文件目录执行以下命令进行安装:

sh install.sh
安装完成刷新一下浏览器,然后导航到服务>其他工具菜单进行操作。


命令行工具


编辑文件


pftop工具


汉化工具


下载:常用工具

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:
You cannot view this attachment.

... 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.
You cannot view this attachment.

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.
Deciso DEC740

March 31, 2025, 03:31:19 AM #2 Last Edit: March 31, 2025, 04:55:05 AM by opnwall
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)

Excellent, does pfTop work for you with a filter set? Do you still see the upper part of the content?
Deciso DEC740

April 01, 2025, 10:58:14 AM #4 Last Edit: April 01, 2025, 11:13:40 AM by opnwall
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.
Deciso DEC740

Quote from: patient0 on April 01, 2025, 11:06:34 AM
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.
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 :)
Deciso DEC740

I installed the new version and now pfTop works excellent, thanks a lot!
Deciso DEC740