sadhu suresh created CLOUDSTACK-4373: ----------------------------------------
Summary: vpn:fai to connect to vpnserver after restartnetwork with cleanup option Key: CLOUDSTACK-4373 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4373 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Management Server Affects Versions: 4.2.0 Reporter: sadhu suresh 1. create an account 2.deploy a vm, and on sourcenat IP,enable the VPN 3.once its enabled,create a VPN user 4.try to connect to vpnserver with yuser and security key form windows client 5.once its successful,try to restart the network with cleanup true actual result: fail to connect to vpn server and error message remote device port closed. when we restart network without cleanup option its successfully connected but when we restart with cleanup option its fail to connect. mysql> select * from firewall_rules where ip_address_id =15\g; +----+--------------------------------------+---------------+------------+----------+--------+----------+----------+------------+-----------+------------+--------------------------------------+---------------------+-----------+-----------+---------+------+--------+--------------+ | id | uuid | ip_address_id | start_port | end_port | state | protocol | purpose | account_id | domain_id | network_id | xid | created | icmp_code | icmp_type | related | type | vpc_id | traffic_type | +----+--------------------------------------+---------------+------------+----------+--------+----------+----------+------------+-----------+------------+--------------------------------------+---------------------+-----------+-----------+---------+------+--------+--------------+ | 34 | a122e338-a3b4-4d08-8668-2e9a1496236e | 15 | 500 | 500 | Staged | udp | Vpn | 5 | 1 | 223 | 434398d4-ca2c-41a7-b865-5b620c7070db | 2013-08-16 18:21:20 | NULL | NULL | NULL | User | NULL | NULL | | 35 | 41d840b7-90c4-47ee-b358-2ca5a6704feb | 15 | 500 | 500 | Active | udp | Firewall | 5 | 1 | 223 | f3e45c33-359e-4f79-a1c0-e7e5c692319a | 2013-08-16 18:21:20 | NULL | NULL | 34 | User | NULL | Ingress | | 36 | dc67ab3e-8219-4a8a-85d0-65dd875e9a7f | 15 | 1701 | 1701 | Staged | udp | Vpn | 5 | 1 | 223 | 32ac790e-29fc-4bd3-9b61-7b2a741e261e | 2013-08-16 18:21:20 | NULL | NULL | NULL | User | NULL | NULL | | 37 | c6776d99-e2d3-4705-8aba-1ca4e958d48b | 15 | 1701 | 1701 | Active | udp | Firewall | 5 | 1 | 223 | 6fe74eb0-640d-43cc-ac7e-82ba49229f7d | 2013-08-16 18:21:20 | NULL | NULL | 36 | User | NULL | Ingress | | 38 | 9f6da5e1-82d8-45b2-bcf1-650bf35d4727 | 15 | 4500 | 4500 | Staged | udp | Vpn | 5 | 1 | 223 | fcfe6392-8ee7-4f8f-aa6b-f9091c84cf66 | 2013-08-16 18:21:20 | NULL | NULL | NULL | User | NULL | NULL | | 39 | eedd2298-d52a-407b-91bd-d8c54ed2b2c5 | 15 | 4500 | 4500 | Active | udp | Firewall | 5 | 1 | 223 | 61f87e78-e24b-4865-b7a4-758398176f53 | 2013-08-16 18:21:20 | NULL | NULL | 38 | User | NULL | Ingress | +----+--------------------------------------+---------------+------------+----------+--------+----------+----------+------------+-----------+------------+--------------------------------------+---------------------+-----------+-----------+---------+------+--------+--------------+ 6 rows in set (0.00 sec) mysql> select * from vpn_users; +----+--------------------------------------+----------+-----------+----------+--------------------------+--------+ | id | uuid | owner_id | domain_id | username | password | state | +----+--------------------------------------+----------+-----------+----------+--------------------------+--------+ | 2 | 2e27aa46-16a9-4097-835d-b85fc870f1ed | 2 | 1 | sadhu | opdA+miUfegu7w28oG3eTg== | Active | | 3 | 0192ef10-5982-47fb-bd60-d7a952da84ae | 2 | 1 | abc | tVtieFgprl/etfV3YyKfqQ== | Active | | 5 | 88fa78b0-c134-49cb-9478-25216fb171d7 | 2 | 1 | vvv | RiaD8MfY5tMWzgsaiLi7mQ== | Active | | 6 | 1dd5cb6f-0809-4d15-a2b3-6a221c440869 | 5 | 1 | lll | KGAvGkMHelK+opY+sRCAdQ== | Active | +----+--------------------------------------+----------+-----------+----------+--------------------------+--------+ 4 rows in set (0.00 sec) mysql> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira