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!
No DHCP request being sent
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Jul 26, 2012 3:55 am
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: No DHCP request being sent
please read documentation regarding server-bridge directive first..
Michael.
Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)
Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)
"objects in mirror are losing"
Long live Dino Dini (Kick off 2 Creator)
Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)
"objects in mirror are losing"
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Jul 26, 2012 3:55 am
Re: No DHCP request being sent
My understanding of server-bridge without arguments (since I want my dhcp server--not openvpn--to provide the network information to the client) is that it is equivalent to:
mode server
tls-server
Is that incorrect?
mode server
tls-server
Is that incorrect?
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: No DHCP request being sent
to use bridging with external dhcp server add to your config:
server-bridge
with no parameters
keep in mind that if your dhcp server set default gateway to your clients also add
push "route 0.0.0.0 255.255.255.255 net_gateway"
to your server config as well.
also make sure that:
eth0 & tap0 are both in promisc mode
eth0 & tap0 are bridged together before openvpn comes up
Regards
Michael.
server-bridge
with no parameters
keep in mind that if your dhcp server set default gateway to your clients also add
push "route 0.0.0.0 255.255.255.255 net_gateway"
to your server config as well.
also make sure that:
eth0 & tap0 are both in promisc mode
eth0 & tap0 are bridged together before openvpn comes up
Regards
Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)
Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)
"objects in mirror are losing"
Long live Dino Dini (Kick off 2 Creator)
Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)
"objects in mirror are losing"
-
- OpenVPN Power User
- Posts: 110
- Joined: Wed Oct 19, 2011 1:19 am
Re: No DHCP request being sent
i have a rather strange network setup and i think it might be affecting my ability to do external DHCP. I have a bond (bond0) of two interfaces (p1p1 and p1p3), with two vlans trunked across (bond0.50 and bond0.52). bond0.50 and tap0 are bridged together on br0 with an IP of 192.168.50.1.also make sure that:
eth0 & tap0 are both in promisc mode
eth0 & tap0 are bridged together before openvpn comes up
of the interfaces:
physical - p1p1 and p1p3
bond - bond0
vlans - bond0.50 and bond0.52 (52 should not be relevant)
tap - tap0
bridge - br0
which have to be in promisc mode? can you explain why this is important?