Good morning.
I've changed my job to a new company and I "inherited" an openvpn server already configured.
Some clients are configured to have an static ip addresses and all works well.
But there's only one client that gives me a headache because some times it gets a different address than the one he actually was configured for.
when i ping the cliente using his name i get echo replies with a different ip address than the one he was configured with.
Does anyone have any tips regarding this problem?
Static ip addresses
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: Static ip addresses
for anyone else reading this, the answer is to use --ifconfig-push in a ccd entry for a static ip for the vpn client
example in net30 (default): ifconfig-push 10.8.0.5 10.8.0.6
example in topology subnet or tap: ifconfig-push 10.8.0.5 255.255.255.0
you are likely thinking that using the option --ifconfig-pool-persist is giving static IPs, but it is not.
the option --ifconfig-pool-persist ipp.txt does NOT create static ips, note that the entries in this file are treated by OpenVPN as suggestions only, based on past associations between a common name and IP address. They do not guarantee that the given common name will always receive the given IP address.
example in net30 (default): ifconfig-push 10.8.0.5 10.8.0.6
example in topology subnet or tap: ifconfig-push 10.8.0.5 255.255.255.0
you are likely thinking that using the option --ifconfig-pool-persist is giving static IPs, but it is not.
the option --ifconfig-pool-persist ipp.txt does NOT create static ips, note that the entries in this file are treated by OpenVPN as suggestions only, based on past associations between a common name and IP address. They do not guarantee that the given common name will always receive the given IP address.
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: Static ip addresses
i see you double-posted, so i removed the other post.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Fri Oct 08, 2010 6:30 pm
Re: Static ip addresses
I think the other post was mine, not OP's. I solved my problem so no issue with deleting my post, the OP might still need help however.
What helped me is that I didn't realize that mode server is a short cut to a bunch of other options so when I tried to use mode server with ifconfig-pool I got an error. It's not until I realized that I need to substitute mode server with those other options it translates to that my problem was solved.
What helped me is that I didn't realize that mode server is a short cut to a bunch of other options so when I tried to use mode server with ifconfig-pool I got an error. It's not until I realized that I need to substitute mode server with those other options it translates to that my problem was solved.
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: Static ip addresses
oops, sorry if i deleted your post, i thought they were both his
glad you got it handled
glad you got it handled