No DHCP request being sent
Posted: Thu Jul 26, 2012 4:20 am
Hello!
I am trying to set up a simple bridged tunnel that will give clients addresses from the DHCP server on my network.
The openvpn installation is on my router (call it 192.168.0.1)
The dhcpd installation is on a separate internal server (call it 192.168.0.10)
Server config:
mode server
tls_server
client_to_client
port 1194
proto udp
dev tap0
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
keepalive 10 120
comp_lzo
persist_key
persist_tun
status openvpn-status.log
log openvpn.log
verb 3
Client config:
client
remote (router external interface IP)
ca ca.crt
cert me.crt
key me.key
comp-lzo
dev tap
proto udp
nobind
persist-key
persist-tun
route-delay 10
Client connects fine, but gets no IP address.
Server log reports: "MULTI: no dynamic or static remote --ifconfig address is available for Me/(Client Public IP):(Port)"
DHCP log shows no request for a lease having been received at all.
The same client connects to the same server just fine if I replace "mode server" and "tls-server" in the server config with a "server-bridge gateway netmask pool-start-IP pool-end-IP" statement (and then push the gateway and the dns server), but I want the DHCP to come from the DHCP server, provide ddns, bind, blah-blah-blah. I want my client on the lan. All the way.
Am I missing something obvious?
Thanks in advance!
I am trying to set up a simple bridged tunnel that will give clients addresses from the DHCP server on my network.
The openvpn installation is on my router (call it 192.168.0.1)
The dhcpd installation is on a separate internal server (call it 192.168.0.10)
Server config:
mode server
tls_server
client_to_client
port 1194
proto udp
dev tap0
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
keepalive 10 120
comp_lzo
persist_key
persist_tun
status openvpn-status.log
log openvpn.log
verb 3
Client config:
client
remote (router external interface IP)
ca ca.crt
cert me.crt
key me.key
comp-lzo
dev tap
proto udp
nobind
persist-key
persist-tun
route-delay 10
Client connects fine, but gets no IP address.
Server log reports: "MULTI: no dynamic or static remote --ifconfig address is available for Me/(Client Public IP):(Port)"
DHCP log shows no request for a lease having been received at all.
The same client connects to the same server just fine if I replace "mode server" and "tls-server" in the server config with a "server-bridge gateway netmask pool-start-IP pool-end-IP" statement (and then push the gateway and the dns server), but I want the DHCP to come from the DHCP server, provide ddns, bind, blah-blah-blah. I want my client on the lan. All the way.
Am I missing something obvious?
Thanks in advance!