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
How to setup a OpenVPN network where the client specified IP
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
- gemal
- OpenVpn Newbie
- Posts: 6
- Joined: Thu Jan 14, 2010 7:23 am
- 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
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
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN
- 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
forgive my lack of knowledge but can you post a simple config both for server and client for a briged setup?ecrist wrote:In your case, I'd recommend a bridged setup - there are no IPs wasted on subnets, etc.
the clients needs to keep their normal IP address and have OpenVPN run next to it.
- 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
you really want clients specifying their own vpn ip address? why would you possibly want that?gemal wrote:I'm trying to setup a OpenVPN network with a UDP server and have the clients specify their own IP addresses.