Hi,
I am having an issue with OpenVPN and a Windows 7 client. After setup I have been able to connect my Win 7 client and get and IP address however what I have observed is that I am unable to browse files on the Samba server which is set in a Workgroup. I have also noticed that the client disconnects automatically then attempts to re-connect sometimes with failure. After I have manually disconnected it also appears I can no longer reconnect.
I am basically expecting that I can be able to remote connect to the server using the client and be able to browse the files in its Samba workgroup called 'AWC'... I can browse locally but not remotely.
Please this is my first time setting up OpenVPN so if I am missing any outputs please let me know. Many thanks for any help.
Ubuntu Server (Samba, OpenVPN) @ 192.168.0.25
ADSL Router (Open ports 1194, 443, 943,22 for Server-0.25/ LAN IP 192.168.0.1)
Win Client (IP Assigned from OpenVPN 192.168.0.201)
Below is my server config.
;local a.b.c.d
port 1194
;proto tcp
proto udp
dev tap0
;dev tun
;dev-node MyTap
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh2048.pem
;server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
server-bridge 192.168.0.25 255.255.255.0 192.168.0.201 192.168.0.211
;server-bridge
push "route 192.168.0.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
route add -net 192.168.0.0/24 gw 192.168.0.25
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 192.168.0.1"
push "dhcp-option DNS 209.244.0.3"
;client-to-client
keepalive 10 120
tls-auth ta.key 0 # This file is secret
comp-lzo
max-clients 10
user nobody
group nogroup
---------------
Interface
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet static
# address 192.168.0.25
# netmask 255.255.255.0
# network 192.168.0.0
# broadcast 192.168.0.255
# gateway 192.168.0.1
# dns-nameservers 192.168.0.1
auto br0
iface br0 inet static
address 192.168.0.25
netmask 255.255.255.0
# network 192.168.0.0
# broadcast 192.168.0.255
--------------
ROUTE -N output
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 br0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
And here is my client config
client
dev tap
;dev tun
;dev-node MyTap
;proto tcp
;proto tcp
proto udp
remote mydomain.net 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nogroup
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca ca.crt
cert client-name.crt
key client-name.key
ns-cert-type server
ns-cert-type server
tls-auth ta.key 1
;cipher x
comp-lzo
verb 3
verb 3
;mute 20