Nethsecurity 8.8.0#1642
Open
gsanchietti wants to merge 76 commits into
Open
Conversation
bec5c03 to
12597d6
Compare
ef5c857 to
f23b035
Compare
Open
36 tasks
4001fc2 to
841b872
Compare
…lity Implement two key improvements to package restoration after system upgrades: 1. Resilient retry mechanism: Script now tracks installation failures and exits with code 1 when packages fail to install. The procd respawn policy (respawn 300 30 10) will automatically retry on the next boot, accounting for WAN initialization delays and transient network failures. 2. Reliable output reporting: Only report "Restored package: X" when the package installation actually succeeds (apk exit code 0). Failed installations are reported separately, and the service is not disabled until all packages are successfully restored. This relies on apk's reliable exit codes instead of opkg's unreliable behavior. The service now remains enabled after failures, allowing the procd respawn mechanism to retry on subsequent boots until all packages are restored. Closes #1606 Assisted-by: Copilot:claude-haiku-4.5
b0a81c6 to
03b27b7
Compare
…lient tunnels counter (#1689)
Avoid recurring errors like: E! [inputs.ethtool] Error in plugin: "eth3.835" stats: operation not supported E! [inputs.ethtool] Error in plugin: "pppoe-wan" stats: operation not supported
Avoid errors like: procd: /etc/rc.d/S99snort: Traceback (most recent call last): procd: /etc/rc.d/S99snort: File "/usr/bin/ns-snort-rules", line 195, in <module> procd: /etc/rc.d/S99snort: main() procd: /etc/rc.d/S99snort: ~~~~^^ procd: /etc/rc.d/S99snort: File "/usr/bin/ns-snort-rules", line 178, in main procd: /etc/rc.d/S99snort: rules = filter_official_rules(official_policy, alert_excluded, disabled_rules, oinkcode) procd: /etc/rc.d/S99snort: File "/usr/bin/ns-snort-rules", line 106, in filter_official_rules procd: /etc/rc.d/S99snort: for rule in snort.parse_file(file): procd: /etc/rc.d/S99snort: ~~~~~~~~~~~~~~~~^^^^^^ procd: /etc/rc.d/S99snort: File "/usr/lib/python3.13/site-packages/nethsec/snort/__init__.py", line 375, in parse_file procd: /etc/rc.d/S99snort: FileNotFoundError: [Errno 2] No such file or directory: '/mnt/data/ns-snort/snort-rules/snort3-community-rules/snort3-community.rules'
Merge the builtin adblock catalog into the Threat Shield generated custom feed file so public feeds such as adguard remain available when ts_enabled=1. This restores mixed builtin and Threat Shield DNS feeds after the 8.8 adblock sync without changing the local adblock fork. Assisted-by: Copilot:gpt-5.4
Bundle https-dns-proxy in the image and default\ndnsmasq_config_update to '-'. This keeps the package available\nout of the box without changing dnsmasq or starting the service\nuntil an administrator enables it.\n\nTreat dnsmasq_config_update='-' as the disabled state so image\nupgrades can keep the default-off behavior. This can disable the\nservice again after an upgrade if dnsmasq integration remains\ndisabled, which is acceptable for now because configuration is\nsupported only from the command line.\n\nAssisted-by: Copilot:gpt-5.4
Store dnsmasq DHCP leases on /mnt/data when storage is available and keep /tmp/dhcp.leases as the compatibility path for existing readers. Switch back to /tmp before storage removal and restart victoria-metrics around fstab changes so the data mount can be released cleanly. Assisted-by: Copilot:gpt-5.4
Added few adjustments to the package: - readme - dynamic config based off the storage - needed restart of rsyslog
During boot, if the network is not still ready, adblock may fail to download the lists. Just wait for 30 seconds before trying to setup the service. This especially usefull in scenarios where the WAN uses a PPPoE connection.
Co-authored-by: Giacomo Sanchietti <giacomo.sanchietti@nethesis.it>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #1637