VPN won't route across bridge

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
cxe@cxeonline.com
OpenVpn Newbie
Posts: 3
Joined: Fri Mar 27, 2020 8:53 pm

VPN won't route across bridge

Post by cxe@cxeonline.com » Fri Mar 27, 2020 9:08 pm

Hello,
I'm fairly new to OpenVPN but have some networking experience in general
Yesterday and today I have setup OpenVPN on a few different client's Windows servers following the guide here https://community.openvpn.net/openvpn/w ... dows_Guide. I haven't really been able to get it to even ping the server it is installed on without setting it to bridge mode and bridging the TAP adapter and the Ethernet adapter of the server, but doing that seems to let me be able to ping the server.
Yesterday afternoon I was even able to ping other devices on the network over the VPN and setup one of the employees to print into the office printer from home. Today nothing will ping except the server the OpenVPN software is actually running on. This includes both the original server and one more that I bridged the Ethernet adapter in.
I've gone through the config file and tried a few different settings, then reset it and just done what seem to be normal settings and nothing lets me connect to anything except the server.
I've run out of ideas, hoping someone here has run into a similar problem or has some idea where else I can look to trace the problem. Thanks for taking the time to look at this.

server config:
server config
1
local 192.168.1.2
2
port 1194
3
proto udp
4
dev tap
5
ca ca.crt
6
cert server.crt
7
key server.key
8
dh dh2048.pem
9
topology subnet
10
server-bridge 192.168.200.4 255.255.255.0 192.168.200.50 192.168.200.100
11
push "route 192.168.1.0 255.255.255.0"
12
duplicate-cn
13
keepalive 10 120
14
tls-auth ta.key 0
15
cipher AES-256-CBC
16
persist-key
17
persist-tun
18
status openvpn-status.log
19
verb 3



client config
1
client
2
dev tap
3
proto udp
4
remote remote.myclient.com 1194
5
resolv-retry infinite
6
nobind
7
persist-key
8
persist-tun
9
ca ca.crt
10
cert Office-VPN.crt
11
key VOffice-VPN.key
12
remote-cert-tls server
13
tls-auth ta.key 1
14
cipher AES-256-CBC
15
verb 3

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN won't route across bridge

Post by TinCanTech » Fri Mar 27, 2020 11:45 pm

Do not use a bridge

cxe@cxeonline.com
OpenVpn Newbie
Posts: 3
Joined: Fri Mar 27, 2020 8:53 pm

Re: VPN won't route across bridge

Post by cxe@cxeonline.com » Mon Mar 30, 2020 2:30 pm

Ok... I'm fine with this in general, but so far I haven't gotten it to do anything at all without the bridge. Here's config files from a 3rd server that I've tried to setup without the bridging if someone could please take a look and see if I'm missing something.

non-bridged server config
1
local 10.0.0.2
2
port 1194
3
proto udp
4
dev tap
5
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
6
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
7
key "C:\\Program Files\\OpenVPN\\config\\server.key"
8
dh "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"
9
topology subnet
10
server 10.9.0.0 255.255.255.0
11
push "route 10.0.0.0 255.255.255.0"
12
push "dhcp-option DNS 10.0.0.2"
13
duplicate-cn
14
keepalive 10 120
15
tls-auth ta.key 0
16
cipher AES-256-CBC
17
persist-key
18
persist-tun
19
status openvpn-status.log
20
log openvpn.log
21
verb 3


and of course
non-bridging client config
1
client
2
dev tap
3
proto udp
4
remote myclient.no-ip.org 1194
5
resolv-retry infinite
6
nobind
7
persist-key
8
persist-tun
9
ca ca.crt
10
cert my-VPN.crt
11
key my-VPN.key
12
remote-cert-tls server
13
tls-auth ta.key 1
14
cipher AES-256-CBC
15
verb 3

Again, thanks for taking a look

cxe@cxeonline.com
OpenVpn Newbie
Posts: 3
Joined: Fri Mar 27, 2020 8:53 pm

Re: VPN won't route across bridge

Post by cxe@cxeonline.com » Tue Mar 31, 2020 3:55 pm

Anybody have an idea what might need to be done to get this working?

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN won't route across bridge

Post by TinCanTech » Tue Mar 31, 2020 5:12 pm

cxe@cxeonline.com wrote:
Fri Mar 27, 2020 9:08 pm
Yesterday afternoon I was even able to ping other devices on the network over the VPN and setup one of the employees to print into the office printer from home. Today nothing will ping except the server the OpenVPN software is actually running on
This is an unsupportable position to be in.

Simply follow the Howto and setup a standard VPN server.

If you want something more complicated you will need to expand your knowledge of networking.

You can contact me privately for assistance: tincanteksup <at> gmail (Fees apply)

Post Reply