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 reload_host_config script with iptables rule drop and root credentials caching #554

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

oliveiraleo
Copy link
Contributor

This PR has these actions:

Add some commands to drop all previously applied iptables rules (it helps if running in an already setup OS or if the script is run more than once) (for more information, see this doc page)

Add a root credential cache command (to avoid asking for the password in the middle of the workflow)

Add some inline comments to improve code readability and hopefully reduce future maintenance efforts

TIA

Add some commands to drop all previously applied iptables rules (it helps if running in an already setup OS or if the script is run more than once)

Add a root credential cache command (to avoid asking for the password in the middle of the workflow)

Add some inline comments to improve code readability
reload_host_config.sh Outdated Show resolved Hide resolved
@oliveiraleo oliveiraleo marked this pull request as draft April 6, 2024 13:29
Add a parameter to control if the script will delete or not all the iptables rules. Thanks @linouxis9 for suggesting this modification in free5gc#554 (comment)

Add some safeguards to avoid errors while running the script
Add a safeguard to avoid entering more than two parameters on the script
@oliveiraleo oliveiraleo marked this pull request as ready for review April 10, 2024 19:56
oliveiraleo added a commit to oliveiraleo/free5gc-auto-deploy that referenced this pull request Apr 22, 2024
Warn the user before deleting all the iptables rules
For more context, see this discussion here: free5gc/free5gc#554 (comment)
Copy link
Contributor

@ianchen0119 ianchen0119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ianchen0119 ianchen0119 merged commit 23ac725 into free5gc:main Jun 27, 2024
1 check passed
@oliveiraleo oliveiraleo deleted the update-config-reload-script branch August 31, 2024 13:03
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.

3 participants