Commit Graph

11 Commits

Author SHA1 Message Date
Chester A. Unal e4c001251e bsbf-openwrt-resources: improve iface type detection and DNS
To find the correct network interface to create a network entry for, check
which driver is driving the network interface.

Restrict creating a network entry with DHCP client to network interfaces
driven by the cdc_ether, r8152, rndis_host, or ipheth driver.

Ensure UCI section name derived from interface name is proper.

Do not disable using DNS servers advertised by the ISP. This was a
requirement of bsbf-bonding. We can now do this as we transparently proxy
all DNS traffic to Xray which resolves queries.

Do not exit non-zero as it's useless.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-05-17 10:13:54 +01:00
Chester A. Unal 6d7476f2e0 bsbf-openwrt-resources: add network to firewall wan zone
Add the network entries that bsbf-autoconf-cellular and bsbf-autoconf-dhcp
create, to the firewall wan zone.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-05-12 08:01:35 +01:00
Chester A. Unal 1e4751cdb7 bsbf-resources: update to GIT HEAD of 2026-05-06
Update bsbf-resources to the GIT HEAD of 2026-05-06.

- Remove bsbf-route as bsbf-mptcp now includes the functionality it
  provides.
- Remove bsbf-plpmtu as that functionality is now provided with the
  plp-mtu-discovery package.
- Remove bsbf-tcp-in-udp as it's not a production-ready solution as it is.
- Add bsbf-client-web.
- Update the dependencies of bsbf-mptcp to curl, fping, ip-full, and
  mptcpize.
- Remove files/etc/config/bsbf-mptcp as that functionality is now provided
  using the /etc/bsbf/bsbf-mptcp-subflow-backup file.
- Remove files/etc/hotplug.d/iface/99-bsbf-mptcp as that functionality is
  now provided by the bsbf-mptcp service.
- Update the dependencies of bsbf-bonding to bsbf-client-web, bsbf-mptcp,
  bsbf-rate-limiting, and xray-core.
- Get rid of fw4 dependency and 99-bsbf-bonding.nft in favour of
  resources-client/bsbf_bonding.nft. Add a oneshot service to apply it at
  boot.
- Move from bsbf-openwrt-resources to bsbf-resources directory as we now
  install resources-client/xray.json and resources-client/bsbf_bonding.nft.
- Add the bsbf-bonding command.
- Run `bsbf-bonding --enable` at the end on the uci-defaults script.
- Add the tc package as a dependency for bsbf-rate-limiting.

Fixes: https://github.com/openwrt/packages/issues/29306
Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-05-07 05:53:10 +01:00
Chester A. Unal ba55fc5cae bsbf-bonding: fix checking if interface is a bridge
The current check would match a uci device section that doesn't say if the
interface is a bridge. Check that the type option is bridge to address
this.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-05-07 05:53:10 +01:00
Chester A. Unal 80d95db425 bsbf-rate-limiting: add
Update bsbf-resources to the GIT HEAD of 2026-03-24. Add bsbf-rate-limiting
and make bsbf-bonding depend on bsbf-rate-limiting.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-03-25 07:47:51 +02:00
Chester A. Unal 6b23febb15 bsbf-openwrt-resources: add BSBF URL to packages
Add the BondingShouldBeFree URL to the bsbf-openwrt-resources packages.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-03-13 07:37:59 +02:00
Chester A. Unal 709b2c629c bsbf-plpmtu: add
Update bsbf-resources to the GIT HEAD of 2026-03-12. Add bsbf-plpmtu and
make bsbf-bonding depend on bsbf-plpmtu.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-03-13 07:37:59 +02:00
Chester A. Unal 1cb70a0b3c bsbf-autoconf-dhcp: switch to wan_$DEVICENAME naming scheme
Use wan_$DEVICENAME naming scheme instead of using consecutive numbering
for the network name.

This makes it easier to match the network interface to the corresponding
network.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-03-07 12:07:15 +02:00
Chester A. Unal 6990436459 bsbf-autoconf-cellular: set device option for network
Set the device option for the network. This is solely for the ease of
matching the network to the corresponding network interface.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-03-07 12:07:15 +02:00
Chester A. Unal a6be73da21 bsbf-autoconf-cellular: add
bsbf-autoconf-cellular creates a network with MBIM or QMI protocol using a
newly created network interface. It uses metric values from 1 to 8.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-03-04 12:41:29 +02:00
Chester A. Unal 6037422f53 bsbf-openwrt-resources: add
Designate bsbf-openwrt-resources as the package to contain the BSBF
packages without a remote source to fetch.

Move bsbf-bonding and bsbf-usb-netdev-autodhcp into bsbf-openwrt-resources.
Change bsbf-usb-netdev-autodhcp to bsbf-autoconf-dhcp along with the logic.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
2026-03-04 12:41:29 +02:00