weizhouapache commented on PR #10262:
URL: https://github.com/apache/cloudstack/pull/10262#issuecomment-2612170458

   
   iptables rules for ingress look good
   ```
   -A FORWARD -d 10.200.0.0/24 -o eth2 -j ACL_INBOUND_eth2
   -A FORWARD -d xx.xx.80.0/24 -o eth2 -j ACL_INBOUND_eth2
   -A FORWARD -d xx.xx.81.0/24 -o eth2 -j ACL_INBOUND_eth2
   ```
   
   however, the rules for egress seem wrong
   ```
   -A PREROUTING -s 10.200.0.0/24 ! -d 10.200.0.1/32 -i eth2 -m state --state 
NEW -j ACL_OUTBOUND_eth2
   -A PREROUTING -s 10.200.0.0/24 ! -d xx.xx.80.0/24 -i eth2 -m state --state 
NEW -j ACL_OUTBOUND_eth2
   -A PREROUTING -s 10.200.0.0/24 ! -d xx.xx.81.0/24 -i eth2 -m state --state 
NEW -j ACL_OUTBOUND_eth2
   
   ```
   
   I think it should be like
   ```
   -A PREROUTING -s 10.200.0.0/24 ! -d 10.200.0.4/32 -i eth2 -m state --state 
NEW -j ACL_OUTBOUND_eth2
   -A PREROUTING -s xx.xx.80.0/24 ! -d 10.200.0.4/32 -i eth2 -m state --state 
NEW -j ACL_OUTBOUND_eth2
   -A PREROUTING -s xx.xx.81.0/24 ! -d 10.200.0.4/32 -i eth2 -m state --state 
NEW -j ACL_OUTBOUND_eth2
   ```
   
   note:
   in my testing, private gatway ip is 10.200.0.4, gateway is 10.200.0.1
   


-- 
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]

Reply via email to