...

Text file src/edge-infra.dev/pkg/sds/ien/k8s/controllers/nodeagent/plugins/networking/iptables/rules/nat-POSTROUTING-egressgw.rules

Documentation: edge-infra.dev/pkg/sds/ien/k8s/controllers/nodeagent/plugins/networking/iptables/rules

     1{{- if .IsGateway}}
     2-s {{.TunnelNetwork}} -m comment --comment "egress gateway" -j MASQUERADE
     3{{- end}}
     4
     5{{- if not .IsGateway}}
     6-o tun+ -s {{.LocalNodeIP}} -j MASQUERADE -m comment --comment "egress gateway nat return traffic"
     7{{- end}}

View as plain text