How to setup a OpenVPN network where the client specified IP

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
User avatar
gemal
OpenVpn Newbie
Posts: 6
Joined: Thu Jan 14, 2010 7:23 am

How to setup a OpenVPN network where the client specified IP

Post by gemal » Thu Jan 28, 2010 2:12 pm

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

User avatar
ecrist
Forum Team
Posts: 237
Joined: Wed Nov 26, 2008 10:33 pm
Location: Northern Minnesota, USA
Contact:

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

Post by ecrist » Thu Jan 28, 2010 3:16 pm

In your case, I'd recommend a bridged setup - there are no IPs wasted on subnets, etc.
OpenVPN Community Administrator
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN

User avatar
gemal
OpenVpn Newbie
Posts: 6
Joined: Thu Jan 14, 2010 7:23 am

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

Post by gemal » Thu Jan 28, 2010 5:55 pm

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.

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

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

Post by krzee » Fri Jan 29, 2010 3:10 am

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?

Post Reply