Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update firewall.sh #126

Merged
merged 9 commits into from Jun 5, 2023
Merged

Update firewall.sh #126

merged 9 commits into from Jun 5, 2023

Conversation

jumpsmm7
Copy link
Contributor

@jumpsmm7 jumpsmm7 commented May 26, 2023

https://www.snbforums.com/threads/wan-ip-outbound-blocked.85184/post-843884

  • The above thought process was revised per @dave14305 suggestions, instead of deleting entries only when CDNWhitelisting is disabled, new CDNWhitelist entries will be curl to a file in /tmp which later gets added back to the IPset after the current CDNWhitelisting entries have been deleted. Then the file in /tmp gets removed.
  • fix the order for removing NVRAM entries on skynet start-up.

* This update focus once more on the CDNWhitelisting. Before the CDNWhitelist would be completely deleted from the IPset before downloading the New CDNWhitelisting Entries. The behavior for CDNWhitelisting should be to delete entries only when CDNWhitelisting is disabled. The enabled behavior should only be to remove duplicates if present in newly downloaded CDNwhitelists. This reduces the likelihood of CDNWhitelisting breaking itself as described here in the SNBForums.
https://www.snbforums.com/threads/wan-ip-outbound-blocked.85184/post-843884
* remove blank space
* fix the order for removing NVRAM entries on skynet start-up.
firewall.sh Outdated Show resolved Hide resolved
* make it portable and functional while deleting possibly expired CDN entries. Satisfy @dave14305 concerns.
@jumpsmm7
Copy link
Contributor Author

@Adamm00 I pulled in your changes for v7.4.2, if you decide to add these so it wouldn't conflict with your branch

* switch "nvram save" to "nvram commit" courtesy of @dave14305 .
@jumpsmm7
Copy link
Contributor Author

I fixed the nvram save, which should be nvram commit per @dave14305 suggestion.

@Adamm00 Adamm00 merged commit 4c8dbd7 into Adamm00:master Jun 5, 2023
@Adamm00
Copy link
Owner

Adamm00 commented Jun 5, 2023

Thanks for the pull requests as always.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants