Should I use server bridging or something else?

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
cwmxc
OpenVpn Newbie
Posts: 1
Joined: Wed Mar 06, 2024 12:02 am

Should I use server bridging or something else?

Post by cwmxc » Wed Mar 06, 2024 12:15 am

I have set up OpenVPN 2.5.9 x86_64-pc-linux-gnu on Ubuntu 22.04. Other devices running the OpenVPN Client can successfully connect to the server, but cannot resolve any IP inside or outside the network.

My network consists of a consumer grade router which assigns LAN clients IPs in the 192.168.1.0/24 range. The OpenVPN server has a static lease on 192.168.1.123.

My goal is for all clients to be able to access the internet as though they were on the LAN, and communicate with other devices on the LAN. For example, a client would connect through the router's open port 1194 and get assigned 192.168.1.222 (I will assume the router's DHCP server will not assign anything in that range). Or if possible, when a client connects it would contact the router's DHCP server.

1. Why can clients access nothing right now?
2. Should I be using server bridging?

Server Config
port 1194
proto udp
dev tun
ca ca.crt
cert nas.crt
key nas.key # This file should be kept secret
dh none
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway def1 bypass-dhcp"
keepalive 10 120
tls-crypt ta.key
cipher AES-256-GCM
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
explicit-exit-notify 1


Client config
client
dev tun
proto udp
remote home.example.com 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-GCM
auth SHA256
verb 3
key-direction 1
<ca>

Post Reply