Hi all,
On Wednesday, November 27, 2013 2:19 PM, Suresh Sadhu <[email protected]> wrote: try enabling the Internet connection sharing option on VPN Connection properties to get the internet access after connecting to vpn,. . Once you connected to vpn ,your system will get from a guest IP range regards sadhu -----Original Message----- From: Jake G. [mailto:[email protected]] Sent: 27 November 2013 08:06 To: [email protected]; Jake G. Subject: Re: No Internet after connecting to CS VPN I am using a Standard Isolated network I noticed after connecting to the cloudstack VPN on a Standard Isolated network that my connection does not have a default gateway. Perhaps this is the reason I am unable to access the internet while connected to the VPN? Thanks, Jake On Tuesday, November 26, 2013 9:15 PM, Jake G. <[email protected]> wrote: Standard Isolated network On Tuesday, November 26, 2013 9:01 PM, Geoff Higginbottom <[email protected]> wrote: Jake, And just to clarify, are you connecting to a standard isolated network, or a VPC network Regards Geoff Higginbottom D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581 [email protected] -----Original Message----- From: Jake G. [mailto:[email protected]] Sent: 26 November 2013 11:38 To: [email protected] Subject: Re: No Internet after connecting to CS VPN Hi Geoff, The settings are remote.access.vpn.client.iprange= 192.168.1.10-192.168.1.20 Best, Jake On Tuesday, November 26, 2013 8:34 PM, Geoff Higginbottom <[email protected]> wrote: Jake, What is the setting within global setting 'remote.access.vpn.client.iprange' Regards Geoff Higginbottom D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581 [email protected] -----Original Message----- From: Jake G. [mailto:[email protected]] Sent: 26 November 2013 11:31 To: [email protected] Subject: Re: No Internet after connecting to CS VPN No my VPN subnet is different than my local LAN subnet VPN subnet: 192.168.1.0/25 VPC subnet: 172.3.9.0/25 (CS guest network for instances) Local Lan subnet: 10.10.5.0/25 (my desktop) On Tuesday, November 26, 2013 8:24 PM, Shanker Balan <[email protected]> wrote: Comments inline. On 26-Nov-2013, at 4:08 pm, Jake G. <[email protected]> wrote: > Hi all, > > From my desktop I am unable to connect to the internet after connecting to a > Cloudstack VPN I set up. > > I tried to uncheck the "Use default gateway on remote network" setting in the > VPN connection networking properties in windows and I can get to the internet > but then I can no longer connect to the instances in my CS network, even though the VPN is still connected. The only way to access my instance in cloudstack via VPN is to leave that checkbox checked on my desktop. > > Anyone know how to resolve this? Is your VPC subnet the same as your “local” LAN subnet? -- @shankerbalan M: +91 98860 60539 | O: +91 (80) 67935867 [email protected] | www.shapeblue.com | Twitter:@shapeblue ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 055 CloudStack Bootcamp Training on 27/28 November, Bangalore http://www.shapeblue.com/cloudstack-training/ This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark. This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark. This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark. This is the only solution I could find that allowed me to connect to the internet while connected to my Cloudstack VPN. Maybe we can put this on the cloudstack wiki. Here is how: 1. Before you connect to the your CloudStack VPN go into Control Panels > Network and Sharing Center > Change Adapter Settings > right click your VPN connection and chose Properties. From the Network properties window select the Networking Tab > click once on IPv4 thenProperties > Advanced > uncheck Use default gateway on remote network > click OK till you close all the windows. 2. Connect to your CloudStack VPN 3. After connected (must be connected first to make this work), run the below as a .bat script and run as an administrator to create a persistent route for CloudStack VPN traffic (change 192.168.1 (VPN subnet) and 172.18.3.0 (guest subnet) and mask to match your cloud stack network ) : @EcHO OFF For /f "usebackq tokens=2 delims=:" %%f in (`ipconfig ^| findstr /c:"192.168.1"`) do route add -p 172.18.3.0 mask 255.255.255.0 %%f metric 2 REM echo Your IP Address is: %%f You will see a quick windows popup and disappear in a blink of an eye and now you should have internet access while connected to your CloudStack VPN 4. To delete the persistent route open a cmd prompt as administrator and enter the following command: > route delete 172.18.3.0 Thanks again, Jake
