Skip to content

Conversation

@tamilmani1989
Copy link
Member

What this PR does / why we need it:
This PR restores CNS state on reboot and enablws outbound snat rule if snat is enabled. Also it fixes the bug introduced in Makefile in previous PR.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

cmd := fmt.Sprintf("iptables -t nat -A POSTROUTING -m iprange ! --dst-range 168.63.129.16 -m addrtype ! --dst-type local ! -d %v -j MASQUERADE",
primaryNic.Subnet)
err = executeShellCommand(cmd)
err = common.SetOutboundSNAT(nicInfo.Subnet)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For iptables commands, we can use this library:
https://github.com/coreos/go-iptables

routingTable: routingTable,
state: serviceState,
}, nil

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

@tamilmani1989 tamilmani1989 merged commit 93917e5 into Azure:master Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants