Clinet IP fixed IP adress, how to give it with bridge server

This forum is for admins who are looking to build or expand their OpenVPN setup.

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.
Post Reply
adis763
OpenVpn Newbie
Posts: 13
Joined: Fri Apr 22, 2011 7:26 am

Clinet IP fixed IP adress, how to give it with bridge server

Post by adis763 » Thu Apr 28, 2011 1:17 pm

Hello,

I have a bridge server with dhcp settings . This ist my settings for server config file
#
local 192.168.0.16
port 1194
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
ifconfig-pool-persist ipp.txt
server-bridge 192.168.0.16 255.255.255.0 192.168.0.200 192.168.0.250
push "route 192.168.0.0 255.255.255.0"
client-config-dir ccd
route 192.168.0.16 255.255.255.252
keepalive 10 60
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3

I will connect with 6 clients, now i connect but every client get IP address 192.168.0.200,
and my vpn connections work for a minute then break up.

I think maybe the DHCP is not working properly ad fixed IP address will lose problem.

WBR!
Adis

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Clinet IP fixed IP adress, how to give it with bridge se

Post by janjust » Thu Apr 28, 2011 1:42 pm

a few comments:
* use

Code: Select all

dev tap0
instead of 'tap'
* what is inside the 'ccd' directory
* is each client assigned its own certificate - this is a requirement
* what does the server log file show when the second client connects

also, ask yourself if you REALLY need bridging - 99% of the people don't

adis763
OpenVpn Newbie
Posts: 13
Joined: Fri Apr 22, 2011 7:26 am

Re: Clinet IP fixed IP adress, how to give it with bridge se

Post by adis763 » Thu Apr 28, 2011 1:52 pm

Every client has own certificate.
IN ccd file ist txt with the certificat name of client ((klijent6) in this case ) file with this line
ifconfig-push 192.168.0.16 192.168.0.209

also i have ipp.txt file with this lines
server,192.168.0.200
klijent6,192.168.0.209

I use a bridge connestions for remote printing, becouse I had a problems with remote printing.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Clinet IP fixed IP adress, how to give it with bridge se

Post by janjust » Thu Apr 28, 2011 2:34 pm

change the CCD file syntax to

Code: Select all

<IP> 255.255.255.0
Comment out the 'ifconfig-pool-persist' line and restart the server - using both 'client-config-dir' and 'ifconfig-pool-persist' does not make sense and is asking for trouble.

adis763
OpenVpn Newbie
Posts: 13
Joined: Fri Apr 22, 2011 7:26 am

Re: Clinet IP fixed IP adress, how to give it with bridge se

Post by adis763 » Fri Apr 29, 2011 10:59 am

It helps, thank you!

Post Reply