-
Notifications
You must be signed in to change notification settings - Fork 31
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
Avoid duplicate rules #38
Comments
After #40 program will produce even more duplicate rules on container startup to sync the rules, that's fine. However, I'm not sure I should even consider duplication check for couple of reasons.
For now, I consider this is not necessary to implement. |
So this is entirely normal and can be ignored? When using
|
Hi @pannal , In your example your rules are not duplicate, they are all unique. IIRC I was talking about exact duplicate rule check when adding ufw rules. For example, when adding a new rule, Does your pod have multiple networks? I am curious how you ended up with such rules.
|
I've got these:
The machine itself has only one NIC. |
👍 does your container has multiple IPs? |
No it doesn't. What you see there is what came after a reboot of the host machine. The xxxx container had the IP .3 before the reboot and .9 after the reboot. The second set of forwards were added automatically added to ufw upon reboot. |
Got it. Are you on latest version |
Well, I've installed it a couple of hours ago, so I'm pretty sure it's the latest one. ( I've just tried to reproduce it. I did After |
@pannal Have you managed to solve this issue? I'm having the exact same problem: when I reboot (or shutdown) the host, the IPs of the containers change and new rules get added without deleting the old ones. Thanks :) |
Unfortunately not, no. |
Right now program is relying on
ufw
for duplicate entries handling. Duplicate rules are produced on some scenario like defining allowed ports specifically.The text was updated successfully, but these errors were encountered: