Direct Restore to Microsoft Azure | VeeamPN software-defined networking
Post Reply
pmansfield
Enthusiast
Posts: 43
Liked: never
Joined: Jun 30, 2015 3:59 pm
Contact:

VeeamPN - How to configure DHCP options?

Post by pmansfield » Jun 05, 2017 1:43 pm

I've got the Hub setup, have configured a gateway with a site to site link, and added a standalone client.

I can connect my client to the hub, and get can access resources in the linked site via IP address. The next step will be to push specific DHCP settings, so I can specify a DHCP pool, and some DNS servers. In a standard OpenVPN setup, this would be done with the /etc/openvpn/server.conf file, but that file doesn't exist on the Hub appliance. Does it live somewhere else, or is there a different way of configuring this stuff with the VeeamPN appliance?

Oh, any chance we could have a subforum for VeeamPN questions?

Thanks :)

AVasilyev
Veeam Software
Posts: 50
Liked: 11 times
Joined: Jan 01, 2006 1:01 am
Contact:

Re: VeeamPN - How to configure DHCP options?

Post by AVasilyev » Jun 05, 2017 3:30 pm

Hi pmansfield,

VeeamPN dynamically handles connections of clients and pushes network settings to them. Doing what you probably was doing with help of client-connect/disconnect scripts, but through Management interface:https://openvpn.net/index.php/open-sour ... rface.html.

DHCP settings are not configurable for now. VeeamPN needs control over IP addresses to do proactive management of changing clients (auto-reconnects, changing routing etc...)
Currently
- site-to-site DHCP settings are 10.8.0.0/16 starting from 10.8.0.2
- point-to-site DHCP settings are 10.9.0.0/16 starting from 10.9.0.2

You can configure pushing DNS settings by editing openvpn config files. They are located
- site-to-site config: /usr/share/Veeam/hub/SiteOVPN.cfg
- point-to-client config: /usr/share/Veeam/hub/EndpointOVPN.cfg

If you would like to edit these files make sure you turn off corresponding services in UI first.

For pushing DNS settings you can for example add following lines in config files:
push "dhcp-option DNS 1.2.4.3"
push "dhcp-option DOMAIN example.lan"

Thank you! Your every post here gives more and more sense to the idea of opening VeeamPN dedicated subforum :)

pmansfield
Enthusiast
Posts: 43
Liked: never
Joined: Jun 30, 2015 3:59 pm
Contact:

Re: VeeamPN - How to configure DHCP options?

Post by pmansfield » Jun 06, 2017 1:23 pm

Thanks Alexey - I've got DNS working now.

pdemidov
Veeam Software
Posts: 28
Liked: 13 times
Joined: Feb 14, 2010 3:03 pm
Full Name: Pavel Demidov
Contact:

Re: VeeamPN - How to configure DHCP options?

Post by pdemidov » Jun 06, 2017 1:39 pm

Hi everyone,

configuring DHCP options is also documented on the bottom of this page:
https://helpcenter.veeam.com/docs/veeam ... tml?ver=10

...but Alexey's answer is better=)

petewesty
Novice
Posts: 3
Liked: never
Joined: Aug 20, 2018 3:59 am
Full Name: Pete Weston
Contact:

Re: VeeamPN - How to configure DHCP options?

Post by petewesty » Aug 29, 2018 7:26 am

Noobie here - Can someone please list the actual Ubuntu commands to achieve the above?
I setup the HUB on Azure, Site Tunnel and Laptop tunnel successfully and able to reach IP resources in the site. But DNS does not work at all, fairly useless without it.

Logging into the VeeamPN Appliance and entering /usr/share/Veeam/hub/SiteOVPN.cfg results with 'No such file or directory'.
What are the commands to change directory or open up the CFG and once updated how to commit changes etc
Thanks,
Pete

Case # 03153446

drillingit
Lurker
Posts: 1
Liked: never
Joined: Oct 09, 2018 3:25 am
Full Name: IT
Contact:

Re: VeeamPN - How to configure DHCP options?

Post by drillingit » Oct 09, 2018 3:30 am

Hi Pete,

Did you have any success? Did anyone get back to you?

I also SSH into the appliance but can't see a 'Veeam' folder in the directory only 'VeeamPN' but going to this directory it doesn't have the .cfg's mentioned..

I'm running my hub in Azure not on prem wonder if this makes a difference.

Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest