A Python command-line tool for enabling or disabling IPv6 Privacy Extensions using nmcli on Linux systems.
- Python: >= 3.10
- NetworkManager (
nmclimust be installed and accessible to the current user)
Clone the repository and run the script directly:
git clone https://github.com/codemorra/ipv6-privacy-toggle-cli.git
cd ipv6-privacy-toggle-cliMake the script executable:
chmod +x privacy_toggle.pyNow you can run it directly:
./privacy_toggle.pyThis script manages the IPv6 Privacy Extensions configuration by modifying the active NetworkManager connection through nmcli.
IPv6 Privacy Extensions create temporary, randomized IPv6 addresses to improve user privacy. While this helps protect against address tracking, it can cause issues with services that rely on a consistent IP address, such as:
- Port forwarding
- Remote access
- Hosting local servers
This tool allows you to quickly switch between using a temporary (privacy) and a static IPv6 address depending on your current needs.
./privacy_toggle.py (-s | -e | -d)| Short | Long | Description |
|---|---|---|
-h |
--help |
Show help message |
-s |
--status |
Show the current status |
-e |
--enable |
Enable IPv6 Privacy Extensions |
-d |
--disable |
Disable IPv6 Privacy Extensions |
This project is licensed under the MIT License.
See LICENSE for the full license text.
Developer: Codemorra
Project Page: https://github.com/codemorra/ipv6-privacy-toggle-cli
© 2026-present Codemorra – All rights reserved.