-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[bug] wireguard with cillium example doesn't work #1618
Comments
It looks like is not a race condition, is about not allowing UDP/51871 communication between nodes, cilium wireguard is configured to tunnel all encryption data thru this port I tested the example disabling the creation of security groups in eks module and it worked out of the box create_node_security_group = false Now testing adding the udp/51871 ingress, because I don't we want to recommend to open everything up between the nodes # Extend node-to-node security group rules
node_security_group_additional_rules = {
ingress_cilium_wireguard = {
description = "Allow Cilium Wireguard node to node"
protocol = "udp"
from_port = 51871
to_port = 51871 # Cilium Wireguard Port https://github.com/cilium/cilium/blob/main/Documentation/security/network/encryption-wireguard.rst
type = "ingress"
self = true
}
} |
Allowing traffic is not enough to get encrypted traffic working. I tried with with all default security groups and additional one for Then I tried with with all default security groups and additional one for |
closed in #1619 |
Description
When using the example wireguard-with-cilium the example pod
client
is not communicating because is configured before cilium wireguard is established.we need to put some type of sleep/delay before creating the client pod
Steps to reproduce the behavior:
git clone branch
cd examples/wireguard-with-cilium/
terraform init
terraform apply -auto-approve
follow readme and run
tcpdump -A -c 3 -i cilium_wg0
commandExpected behaviour
For
tcpdump -A -c 3 -i cilium_wg0
to show encrypted trafficActual behaviour
The
tcpdump -A -c 3 -i cilium_wg0
coammand doesn't show any outputAdditional context
Thank you to @aaroniscode and the blog Transparent encryption of node to node traffic on Amazon EKS using WireGuard and Cilium he authored to debug the issue
The steps on the blog uses eksctl and there is more time between installing cilium and deploying the client pod, this is why it works if you use the blog instructions
The text was updated successfully, but these errors were encountered: