chef-lctp/site-cookbooks/lctp-network/templates/default/iptables.rules.erb

11 lines
265 B
Plaintext

# iptables.rules for <%= @node.name %> managed by Chef. Changes will be overwritten.
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
# masquerading (NAT)
-A POSTROUTING -o <%= @node.lctp_network.gateway_device %> -j MASQUERADE
COMMIT