Skip to content

Commit 14015d9

Browse files
committed
Add 198.51.100.0/24 to non-masq ranges.
Groupped the IP ranges by RFC and type. Change reference for 198.18.0.0/15 from RFC 2544 to RFC 6815.
1 parent 08afeb8 commit 14015d9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

cluster/addons/ip-masq-agent/ip-masq-agent.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
kubernetes.io/cluster-service: "true"
99
addonmanager.kubernetes.io/mode: Reconcile
1010
---
11-
# https://github.com/kubernetes-incubator/ip-masq-agent/blob/v2.3.0/README.md
11+
# https://github.com/kubernetes-incubator/ip-masq-agent/blob/v2.4.1/README.md
1212
apiVersion: apps/v1
1313
kind: DaemonSet
1414
metadata:
@@ -32,7 +32,7 @@ spec:
3232
hostNetwork: true
3333
containers:
3434
- name: ip-masq-agent
35-
image: k8s.gcr.io/ip-masq-agent-amd64:v2.3.0
35+
image: k8s.gcr.io/ip-masq-agent-amd64:v2.4.1
3636
args:
3737
- --masq-chain=IP-MASQ
3838
- --nomasq-all-reserved-ranges

cluster/gce/gci/configure-helper.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,14 @@ function config-ip-firewall {
119119
iptables -w -t nat -A IP-MASQ -d 10.0.0.0/8 -m comment --comment "ip-masq: RFC 1918 reserved range is not subject to MASQUERADE" -j RETURN
120120
iptables -w -t nat -A IP-MASQ -d 172.16.0.0/12 -m comment --comment "ip-masq: RFC 1918 reserved range is not subject to MASQUERADE" -j RETURN
121121
iptables -w -t nat -A IP-MASQ -d 192.168.0.0/16 -m comment --comment "ip-masq: RFC 1918 reserved range is not subject to MASQUERADE" -j RETURN
122+
iptables -w -t nat -A IP-MASQ -d 240.0.0.0/4 -m comment --comment "ip-masq: RFC 5735 reserved range is not subject to MASQUERADE" -j RETURN
123+
iptables -w -t nat -A IP-MASQ -d 192.0.2.0/24 -m comment --comment "ip-masq: RFC 5737 reserved range is not subject to MASQUERADE" -j RETURN
124+
iptables -w -t nat -A IP-MASQ -d 198.51.100.0/24 -m comment --comment "ip-masq: RFC 5737 reserved range is not subject to MASQUERADE" -j RETURN
125+
iptables -w -t nat -A IP-MASQ -d 203.0.113.0/24 -m comment --comment "ip-masq: RFC 5737 reserved range is not subject to MASQUERADE" -j RETURN
122126
iptables -w -t nat -A IP-MASQ -d 100.64.0.0/10 -m comment --comment "ip-masq: RFC 6598 reserved range is not subject to MASQUERADE" -j RETURN
127+
iptables -w -t nat -A IP-MASQ -d 198.18.0.0/15 -m comment --comment "ip-masq: RFC 6815 reserved range is not subject to MASQUERADE" -j RETURN
123128
iptables -w -t nat -A IP-MASQ -d 192.0.0.0/24 -m comment --comment "ip-masq: RFC 6890 reserved range is not subject to MASQUERADE" -j RETURN
124-
iptables -w -t nat -A IP-MASQ -d 192.0.2.0/24 -m comment --comment "ip-masq: RFC 5737 reserved range is not subject to MASQUERADE" -j RETURN
125129
iptables -w -t nat -A IP-MASQ -d 192.88.99.0/24 -m comment --comment "ip-masq: RFC 7526 reserved range is not subject to MASQUERADE" -j RETURN
126-
iptables -w -t nat -A IP-MASQ -d 198.18.0.0/15 -m comment --comment "ip-masq: RFC 2544 reserved range is not subject to MASQUERADE" -j RETURN
127-
iptables -w -t nat -A IP-MASQ -d 203.0.113.0/24 -m comment --comment "ip-masq: RFC 5737 reserved range is not subject to MASQUERADE" -j RETURN
128-
iptables -w -t nat -A IP-MASQ -d 240.0.0.0/4 -m comment --comment "ip-masq: Former Class E range obsoleted by RFC 3232 is not subject to MASQUERADE" -j RETURN
129130
iptables -w -t nat -A IP-MASQ -m comment --comment "ip-masq: outbound traffic is subject to MASQUERADE (must be last in chain)" -j MASQUERADE
130131
fi
131132

0 commit comments

Comments
 (0)