npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xbrother2026/pkg-nft-rbc02pro

v1.0.1

Published

FAU RBC02-PRO nftables firewall package

Readme

nftables 防火墙

适用于 FAU-RBC02-PRO。执行后创建独立的 inet fau_doctor_rbc02pro 表, 只处理本包声明的 TCP/UDP 目标端口,不修改系统其他 nftables 表。

参数均使用英文分号 ; 分隔,分号后允许有空格:

  • tcp_ports:需要屏蔽的 TCP 目标端口,例如 22;80;8555
  • udp_ports:需要屏蔽的 UDP 目标端口,例如 53;123
  • whitelist:白名单 IPv4 或 CIDR,例如 192.168.1.0/24;10.0.0.5

白名单规则先于端口屏蔽规则执行,白名单来源可以访问这些端口。三个参数都 可以留空;端口范围必须是 1 到 65535。脚本会先用 nft -c 校验完整规则, 校验通过后保存到 /etc/nftables.d/fau-doctor-rbc02pro.nft 并加载。

脚本会确保 /etc/nftables.conf 包含:

include "/etc/nftables.d/*.nft"

因此重启时会加载该目录下全部 .nft 规则文件;脚本会启用并重启系统的 nftables.service,修改主配置前会保存一份 /etc/nftables.conf.fau-doctor.bak 备份。没有 systemd 服务时才回退为直接加载规则。stage1/run.sh 支持 root 权限切换:root 直接执行,非 root 会使用包内与 参考升级包一致的 root 密码通过 su 切换。注意:root 密码因此会包含在 源码和 npm 发布包中,发布前应确认这是目标设备的统一临时密码,并在后续版本 中改为安全的凭据注入方式。