sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

[cfgmgr/natmgrd] added disabling of NAT feature (Azure#1835)

Open KonstiantynHalushka opened this issue 3 years ago • 6 comments

Signed-off-by: KonstiantynHalushka [email protected]

What I did Added disabling of NAT feature Why I did it IP table rule was not removed after config reload (Azure#1835) How I verified it sudo config feature state nat enabled sudo config nat feature enable sudo iptables -nL -t nat

target prot opt source destination DNAT all -- 0.0.0.0/0 0.0.0.0/0 to:1.1.1.1 fullcone Chain INPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination

sudo config reload sudo iptables -nL -t nat

Chain PREROUTING (policy ACCEPT) target prot opt source destination
Chain INPUT (policy ACCEPT) target prot opt source destination
Chain POSTROUTING (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination

Details if related

KonstiantynHalushka avatar Dec 20 '21 17:12 KonstiantynHalushka

/azpw run

KonstiantynHalushka avatar Dec 21 '21 15:12 KonstiantynHalushka

/AzurePipelines run

mssonicbld avatar Dec 21 '21 15:12 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Dec 21 '21 15:12 azure-pipelines[bot]

@prsunny please, review this PR

KonstiantynHalushka avatar Dec 22 '21 08:12 KonstiantynHalushka

@KonstiantynHalushka Please address my comment.

AkhileshSamineni avatar Feb 25 '22 15:02 AkhileshSamineni

@AkhileshSamineni Could you tell me exactly what you mean?

KonstiantynHalushka avatar Mar 17 '22 08:03 KonstiantynHalushka