in cmd/ip-masq-agent-v2/ip-masq-agent.go [412:420]
func (m *MasqDaemon) ensurePostroutingJump() error {
_, err := m.iptables.EnsureRule(utiliptables.Append, utiliptables.TableNAT, utiliptables.ChainPostrouting,
"-m", "comment", "--comment", postroutingJumpComment(),
"-m", "addrtype", "!", "--dst-type", "LOCAL", "-j", string(masqChain))
if err != nil {
return fmt.Errorf("failed to ensure that %s chain %s jumps to MASQUERADE: %v", utiliptables.TableNAT, masqChain, err)
}
return nil
}