mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-08-16 23:37:11 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f51d1818d | ||
|
|
8b0ec6884c | ||
|
|
f61932c6c6 | ||
|
|
ff806523b7 | ||
|
|
dcb4ce828b |
@@ -3521,6 +3521,7 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Mount for file copy
|
||||
MNT="${WORK_DIR}/mnt"
|
||||
mkdir -p "${MNT}/esp" "${MNT}/live"
|
||||
@@ -3688,12 +3689,11 @@ fi
|
||||
|
||||
cp "${MNT}/esp/boot/grub/grub.cfg" "${MNT}/esp/EFI/BOOT/grub.cfg"
|
||||
|
||||
# Build GRUB EFI — restored to the simple pre-e1a53297 working version.
|
||||
# The "hardened" variant added disk/usb/usbms/ahci/ata modules (none
|
||||
# exist in x86_64-efi — disks come from the EFI firmware) and a
|
||||
# multi-stage search fallback that landed in a grub> shell on real
|
||||
# UEFI hardware. This version was reported working on bare-metal
|
||||
# amd64 in v2.10.x and earlier; keep it as-is and don't gold-plate.
|
||||
# Build GRUB EFI — verbatim from v2.10.3 (last known-good real UEFI
|
||||
# boot). Do NOT optimise this block: every "improvement" attempted in
|
||||
# the v2.12.x series (Secure Boot shim, $cmdpath, search --fs-uuid,
|
||||
# extra modules, multi-stage fallbacks) broke at least one piece of
|
||||
# hardware. Stay simple, stay shipped.
|
||||
GRUB_MODS="part_gpt part_msdos fat ext2 normal linux boot configfile loopback chain efi_gop efi_uga ls search search_label gfxterm all_video"
|
||||
|
||||
cat > "${WORK_DIR}/grub-embed.cfg" <<'EMBEDCFG'
|
||||
|
||||
@@ -443,6 +443,16 @@ table inet secubox_filter {
|
||||
# HTTP/HTTPS (SecuBox UI)
|
||||
tcp dport { 80, 443 } accept
|
||||
|
||||
# DHCP client — accept DHCPOFFER / DHCPACK on UDP 68. The
|
||||
# conntrack `established,related` clause above doesn't help
|
||||
# for DHCP because the request goes out from 0.0.0.0:68 and
|
||||
# the reply comes back broadcast (or unicast direct to the
|
||||
# offered IP before it's actually bound), neither of which
|
||||
# match the original 5-tuple. Without this rule networkd's
|
||||
# DHCP times out and secubox-net-fallback's ARP-probe takes
|
||||
# over — operator ends up on a random fallback subnet.
|
||||
udp dport 68 accept
|
||||
|
||||
# WireGuard
|
||||
udp dport 51820 accept
|
||||
|
||||
|
||||
Reference in New Issue
Block a user