Skip to content

Changed script to be more standardized and dynamic #1

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Aadniz
Copy link

@Aadniz Aadniz commented Mar 28, 2025

I came across this bash script, and I felt an urge to maybe improve it a bit.

  • In the main loop, I use an array instead of 3 variables.
  • I moved the gateway adding above the loop, since it just needs to be ran once.
  • You can now set variables via environment variables instead of putting it inside the script. This might be useful for running it as a systemd service for example.
  • Added a trap to delete created IPv6 when application is terminated.

Since there is so much changed, feel free to comment and change on what you want. I didn't implement /48 yet.

@0x6d69636b 0x6d69636b self-assigned this Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants