Hello all! I'm Overkill...a sysadmin from the moment I sat in front of a computer and until the day I die 🙂
I inherited the responsibility of configuring/maintaining an OpenVPN server to allow access from a satellite office. Said office needs NetBIOS to work, and they previously had a TAP configuration but switched to TUN because (???). I'm switching back to TAP because my understanding is that the bridged interface allows for NetBIOS where a tunnel does not (and the remote office needs to access a Windows share on the LAN). They kept a backup of the old config but it's not working and I'd like some help getting it configured so that it allows my remote users to use features requiring NetBIOS. If I'm wrong and this can be achieved by modifying the tunnel configuration, I'm
open to that too ;-) I'm unable to spend the time troubleshooting via Google today, but if anybody can get me started I have a strong Linux background, lots of troubleshooting skill/experience, and generally "get it". Thanks in advance!
> LAN is on 192.168.22.0/24
---> DHCP from router is *.2 to *.125
---> OpenVPN server is at *.65 (DHCP reservation)
> Remote network is on 192.168.1.0/24
The working TUN configuration is this:
port 443
proto tcp
dev tun
topology subnet
ca ca.crt
cert server.crt
key thisisakeyfile.key #keepitsecretkeepitsafe
dh dh1024.pem
server 192.168.22.128 255.255.255.128
ifconfig-pool-persist ipp.txt
push "route 192.168.22.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
client-to-client
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
The not working TAP configuration is this:
port 443
proto tcp
dev tap0
ca ca.crt
cert server.crt
key thisisakeyfile.key #keepitsecretkeepitsafe
dh dh1024.pem
server-bridge 192.168.22.65 255.255.255.0 192.168.22.192 192.168.22.254
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
crl-verify crl.pem
Finally, a client configuration looks like this:
client
dev tun
proto tcp
remote our.WAN.IP.addr 443
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert usercertfile.crt
key userkeyfile.key
comp-lzo
verb 3