OpenVPN AS Static IP setup

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
jboren
OpenVpn Newbie
Posts: 3
Joined: Mon Jun 17, 2013 2:04 am

OpenVPN AS Static IP setup

Post by jboren » Mon Jun 17, 2013 2:20 am

Greetings. I tried searching the forums for this, but since the forum software won't accept "static", "IP", "DHCP", or "address" (The following words in your search query were ignored because they are too common words:), no luck.

Seems like I'm missing something, but I'm trying to set the OpenVPN AS to a static IP. The FAQ page at: http://openvpn.net/index.php/access-ser ... iance.html

Says "Log in to the Appliance Management web interface using the URL: https://vmware_appliance_ip_address:5480", however the appliance isn't listening on that port so obviously it won't work.

If i log on at https://vmware_appliance_address:943 on the Server Network Settings Page, i can put in a different IP there, but it doesn't seem to change the IP of the server. It's still only listening on the DHCP address.

What am I missing?

Thanks,

atg
OpenVpn Newbie
Posts: 9
Joined: Fri Jun 21, 2013 10:26 pm

Re: OpenVPN AS Static IP setup

Post by atg » Fri Jun 21, 2013 11:23 pm

I am having the exact same problem. I am using the appliance for ESXi v 1.8.4.400 (64-Bit)

I originally had an issue where the setup would fail on the IP...but I had to place it into a network that had a DHCP server to complete the config.

I also went a step further than above and looked at the console of the appliance. I do not see any such referenced "welcome" screen.

I also tried to edit the .vmx file (I didn't see how that would help, but I took a stab) and nothing is there.

Can someone please tell me how to do the most basic of operations...that is change the IP address of my OpenVPN ESXi Appliance??

jboren
OpenVpn Newbie
Posts: 3
Joined: Mon Jun 17, 2013 2:04 am

Re: OpenVPN AS Static IP setup

Post by jboren » Fri Jun 21, 2013 11:34 pm

Here's how I "solved" the problem.

Let the server get it's IP thru DHCP, check to see what the address is. Go to the DHCP server and convert the DHCP lease to a Reservation. So at least it will always have the same IP. This works well enough in my situation and I have other fish to fry. If you don't have DHCP I'm afraid I don't know how to make it static.

And i figured out that the IP address you can enter on the page https://vmware_appliance_address:943/admin --> Server Network Settings Page needs to be the external, publicly visible IP address of the server. My OpenVPN AS is behind NAT so I had to put it's external IP in there to get the connectivity test to work. Then clients were able to connect just fine.

Thanks,

atg
OpenVpn Newbie
Posts: 9
Joined: Fri Jun 21, 2013 10:26 pm

Re: OpenVPN AS Static IP setup

Post by atg » Fri Jun 21, 2013 11:57 pm

Thanks for the reply.

I actually found out a way to get it to work...I had two follow two guides. One of which was on this site, the other on a Debian site:

http://openvpn.net/index.php/access-ser ... nment.html

you go to the section titled (appropriately) "Configure Static IP Addressing (optional)" There it will detail how to change the IP address (through editing Interfaces).

Now I had problems editing my interface as written there...it kept failing to read the file as I had written it. I found this on a Debian site (the underlying OS on the appliance is Debian)

http://wiki.debian.org/NetworkConfiguration

I formatted my config as was detailed here, and finally, finally got my static IP address configured!!!

jboren
OpenVpn Newbie
Posts: 3
Joined: Mon Jun 17, 2013 2:04 am

Re: OpenVPN AS Static IP setup

Post by jboren » Sat Jun 22, 2013 12:04 am

Wow, that's awesome. Nice work putting that together, and thanks for posting it.

The reservation is working for me but it's in a weird range for a server in my IP block so I might go back and set it to a static, now that i have a guide.

Thanks a ton.

Cheers!
Joe

Post Reply