Server Bridge no gateway addresses on clients

Use this forum to share your network setup and what's been working for you.
Post Reply
xenix
OpenVpn Newbie
Posts: 1
Joined: Wed Sep 18, 2013 8:22 am

Server Bridge no gateway addresses on clients

Post by xenix » Wed Sep 18, 2013 8:41 am

Here's a simple diagram of my OpenVPN network setup:
Image

Server config:
port 41194
proto udp
dev tap1
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server-bridge
push "redirect-gateway def1 bypass-dhcp"
duplicate-cn
keepalive 10 120
comp-lzo
max-clients 10
persist-key
persist-tun
status openvpn-status2.log
log-append openvpn2.log
verb 3

Client (on DD-WRT router) config:
ca /tmp/openvpncl/ca.crt
cert /tmp/openvpncl/client.crt
key /tmp/openvpncl/client.key
management 127.0.0.1 16
management-log-cache 100
verb 3
mute 3
syslog
writepid /var/run/openvpncl.pid
client
resolv-retry infinite
nobind
persist-key
persist-tun
script-security 2
dev tap1
proto udp
cipher BF-CBC
auth sha1
remote x.x.x.x 41194
comp-lzo adaptive
tls-client
tun-mtu 1500
mtu-disc yes
ns-cert-type server
fast-io

The problem is that my client devices connected to DD-WRT router do not receive gateway address from 10.197.255.254 DHCP server. I would for example simply set server-bridge 10.197.255.254 255.255.0.0 10.197.0.1 10.197.255.253 and it would work, BUT since I do not have control of 10.197.255.254 server (it belongs to my ISP) I can't do that to avoid IP conflicts, I must use DHCP-proxy mode. Any suggestions?

P.S. using Windows PC in place of DD-WRT my client devices receive gateway address with no problem. It's witten in OpenVPN config file comment that:
server-bridge
# Note: this mode only works on clients (such as
# Windows), where the client-side TAP adapter is
# bound to a DHCP client.

How to make this work with DD-WRT? I can't think of any good workaround. Waiting for any ideas.

Post Reply