|
|
@@ -0,0 +1,16 @@
|
|
|
+# Without this, internal services would be accessible by forcing resolution of
|
|
|
+# an internal domain into the external IP. Eg:
|
|
|
+#
|
|
|
+# curl -v --resolve sonarr.lan.jibby.org:443:<external IP> https://sonarr.lan.jibby.org
|
|
|
+#
|
|
|
+---
|
|
|
+apiVersion: traefik.io/v1alpha1
|
|
|
+kind: Middleware
|
|
|
+metadata:
|
|
|
+ name: lanonly
|
|
|
+ namespace: kube-system
|
|
|
+spec:
|
|
|
+ ipWhiteList:
|
|
|
+ sourceRange:
|
|
|
+ - 10.0.0.0/24 # LAN access
|
|
|
+ - 10.42.0.0/16 # Pod access
|