GitHub user jayapalu opened a pull request: https://github.com/apache/cloudstack/pull/842
CLOUDSTACK-8843: Fixed issue in default iptables rules on shared network VR On basic zone share network VR default iptables rules are not applied correctly. Due to this ssh to VR got failed. In shared network the VR type is 'dhcpsrvr' not router. So corrected it in the ''del_standard' method to select the correct type. Testing: 1. VR is deployed correctly. 2. Tested restart, stop, start VR. 3. New VM deployment is success. 4. ssh to VR from the host is successful. 5. iptables rules on the VR came up correctly. below is the output from the VR: iptables -L INPUT -nv Chain INPUT (policy DROP 16 packets, 1056 bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- * * 0.0.0.0/0 224.0.0.18 0 0 ACCEPT all -- * * 0.0.0.0/0 225.0.0.50 104 9800 ACCEPT all -- eth0 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 281 36500 ACCEPT all -- eth1 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 0 0 ACCEPT all -- eth2 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 6 504 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 2 656 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:67 13 780 ACCEPT tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3922 state NEW,ESTABLISHED 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 state NEW 0 0 ACCEPT tcp -- eth0 * 10.147.40.0/23 0.0.0.0/0 state NEW tcp dpt:8080 You can merge this pull request into a Git repository by running: $ git pull https://github.com/jayapalu/cloudstack shareNwVR Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/842.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #842 ---- commit a15df0569fa0e56b14a9a119858c53e8ae6085c3 Author: Jayapal <jaya...@apache.org> Date: 2015-09-16T09:52:33Z CLOUDSTACK-8843: Fixed issue in default iptables rules on shared network VR ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---