Page 1 of 1

How to setup a OpenVPN network where the client specified IP

Posted: Thu Jan 28, 2010 2:12 pm
by gemal
I'm trying to setup a OpenVPN network with a UDP server and have the clients specify their own IP addresses.

How do I do that? Perhaps a simple question but I could need some help.

What I got so far, but it's not working:

[SERVER]
proto udp
dev tun
server 10.8.0.0 255.255.255.0
duplicate-cn

[CLIENT]
dev tun
proto udp
remote SECRET_IP 1194
ifconfig 10.8.0.10 255.255.255.0

Re: How to setup a OpenVPN network where the client specified IP

Posted: Thu Jan 28, 2010 3:16 pm
by ecrist
In your case, I'd recommend a bridged setup - there are no IPs wasted on subnets, etc.

Re: How to setup a OpenVPN network where the client specified IP

Posted: Thu Jan 28, 2010 5:55 pm
by gemal
ecrist wrote:In your case, I'd recommend a bridged setup - there are no IPs wasted on subnets, etc.
forgive my lack of knowledge but can you post a simple config both for server and client for a briged setup?

the clients needs to keep their normal IP address and have OpenVPN run next to it.

Re: How to setup a OpenVPN network where the client specified IP

Posted: Fri Jan 29, 2010 3:10 am
by krzee
gemal wrote:I'm trying to setup a OpenVPN network with a UDP server and have the clients specify their own IP addresses.
you really want clients specifying their own vpn ip address? why would you possibly want that?