|
26 | 26 | # Kubelet API (port 10250) - bound to all IPv6 interfaces, needs cluster access |
27 | 27 | iptables -A INPUT -p tcp --dport 10250 -j ACCEPT |
28 | 28 |
|
29 | | - # kube-proxy (port 10256) - bound to all IPv6 interfaces, needs cluster access |
30 | | - # iptables -A INPUT -p tcp --dport 10256 -j ACCEPT |
31 | | -
|
32 | | - # Calico networking requirements |
33 | | - # Calico Typha (port 5473) - bound to all IPv6 interfaces, needs cluster access |
34 | | - iptables -A INPUT -p tcp --dport 5473 -j ACCEPT |
35 | | - |
36 | | - # VXLAN for overlay networking (port 4789 UDP) - bound to all interfaces |
37 | | - iptables -A INPUT -p udp --dport 4789 -j ACCEPT |
38 | | -
|
39 | | - # Calico metrics ports (29603, 29605) - bound to all IPv6 interfaces |
40 | | - # iptables -A INPUT -p tcp --dport 29603 -j ACCEPT |
41 | | - # iptables -A INPUT -p tcp --dport 29605 -j ACCEPT |
42 | | - |
43 | | - # BGP for node-to-node communication (port 179) - not in netstat but needed for Calico |
44 | | - iptables -A INPUT -p tcp --dport 179 -j ACCEPT |
45 | | - |
46 | | - # IP-in-IP protocol for Calico |
47 | | - # iptables -A INPUT -p 4 -j ACCEPT |
48 | | -
|
49 | | - # DHCP client (port 68 UDP) - for IP assignment |
50 | | - # iptables -A INPUT -p udp --dport 68 -j ACCEPT |
51 | | -
|
52 | | - # NTP (port 323 UDP) - for time synchronization |
53 | | - # iptables -A INPUT -p udp --dport 323 -j ACCEPT |
54 | | -
|
55 | | - # Allow ICMP for connectivity checks |
56 | | - # iptables -A INPUT -p icmp -j ACCEPT |
57 | | -
|
58 | 29 | # Allow traffic to Kubernetes service network (10.96.0.0/12) - required for pod-to-service communication |
59 | 30 | iptables -A OUTPUT -d 10.96.0.0/12 -j ACCEPT |
60 | 31 | iptables -A INPUT -s 10.96.0.0/12 -j ACCEPT |
|
67 | 38 | iptables -A OUTPUT -d 10.1.0.0/24 -j ACCEPT |
68 | 39 | iptables -A INPUT -s 10.1.0.0/24 -j ACCEPT |
69 | 40 |
|
| 41 | + # Calico networking requirements |
| 42 | + # Calico Typha (port 5473) - bound to all IPv6 interfaces, needs cluster access |
| 43 | + iptables -A INPUT -p tcp --dport 5473 -j ACCEPT |
| 44 | + |
| 45 | + # VXLAN for overlay networking (port 4789 UDP) - bound to all interfaces |
| 46 | + iptables -A INPUT -p udp --dport 4789 -j ACCEPT |
| 47 | + |
| 48 | + # BGP for node-to-node communication (port 179) - needed for Calico |
| 49 | + iptables -A INPUT -p tcp --dport 179 -j ACCEPT |
| 50 | + |
| 51 | + # DNS (port 53) - critical for service discovery |
| 52 | + iptables -A INPUT -p udp --dport 53 -j ACCEPT |
| 53 | + iptables -A OUTPUT -p udp --dport 53 -j ACCEPT |
| 54 | +
|
70 | 55 | # Save the rules following Azure Linux 3 approach |
71 | 56 | iptables-save > /etc/systemd/scripts/ip4save |
72 | 57 | path: /tmp/azl3-setup.sh |
|
0 commit comments