Skip to content

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