Hi,
I've set up a new OpenVPN server on Windows in bridge mode. The physical NIC and the OpenVPN TAP driver are in a bridge and the IP is manually set to 192.168.0.65/24 with the DG and DNS being the router of 192.168.0.1.
Clients can connect fine and get a 192.168.0.x address from the pool in the config file and the VPN connected clients can communicate with the local clients fine. The problem is that the VPN clients don't use the public IP address of the OpenVPN server but instead use the IP of their local ISP.
Here is my server config:
port 1194
proto udp
dev tap
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel if you
# have more than one.
# Non-Windows systems usually don't need this.
dev-node OpenVPN
# script used to add the tap interface to the bridge
# windows servers comment this out
;up up.sh
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\hpserver.crt"
key "C:\\Program Files (x86)\\OpenVPN\\config\\hpserver.key"
dh "C:\\Program Files (x86)\\OpenVPN\\config\\dh2048.pem"
ifconfig-pool-persist ipp.txt
server-bridge 192.168.0.65 255.255.255.0 192.168.0.80 192.168.0.90
push "dhcp-option DNS 192.168.0.1"
# can clients see each other? (regardless of firewalling on the server)
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
And this is the client config:
client
dev tap
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one.
;dev-node MyTap
proto udp
remote mudpirate.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\jean-laptop.crt"
key "C:\\Program Files\\OpenVPN\\config\\jean-laptop.key"
ns-cert-type server
comp-lzo
verb 3
Any help on this?