Page 1 of 1

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

Posted: Thu Apr 28, 2011 1:17 pm
by adis763
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

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

Posted: Thu Apr 28, 2011 1:42 pm
by janjust
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

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

Posted: Thu Apr 28, 2011 1:52 pm
by adis763
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.

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

Posted: Thu Apr 28, 2011 2:34 pm
by janjust
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.

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

Posted: Fri Apr 29, 2011 10:59 am
by adis763
It helps, thank you!