weizhouapache commented on pull request #5532: URL: https://github.com/apache/cloudstack/pull/5532#issuecomment-930917244
> @weizhouapache > > > which cloudstack version are you testing with ? > > 4.15.0.0 > > > could you please tell how to reproduce the issue ? > > 1. Create a VPC; > 2. Observe VR's `iptables` (use `iptables-save | grep SNAT`); > 3. Add public IPs to the VPC and assigned functions (`static NAT`, `port forwarding`...) to them; > > * Before the changes: > > 1. Every public IP will turn into a `source NAT`, i.e.: > > ``` > -A POSTROUTING -s 10.0.0.0/24 -d 10.0.0.247/32 -o eth2 -j SNAT --to-source 10.0.0.1 > -A POSTROUTING -s 10.0.0.247/32 -o eth1 -j SNAT --to-source 192.168.100.96 > -A POSTROUTING -o eth1 -j SNAT --to-source 192.168.100.52 > -A POSTROUTING -o eth1 -j SNAT --to-source 192.168.100.96 > ``` > > * After the changes: > > 1. Only `source NAT` IP is `source NAT`, others IPs will have only the real function to which they were assigned. > > ``` > -A POSTROUTING -s 10.0.0.0/24 -d 10.0.0.247/32 -o eth2 -j SNAT --to-source 10.0.0.1 > -A POSTROUTING -s 10.0.0.247/32 -o eth1 -j SNAT --to-source 192.168.100.96 > -A POSTROUTING -o eth1 -j SNAT --to-source 192.168.100.52 > ``` @GutoVeronezi thanks. it looks like a small valid issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
