Cannot connect to SMB share via OpenVPN on Android only

Post Reply
minions
OpenVpn Newbie
Posts: 4
Joined: Wed Jul 26, 2017 12:03 am

Cannot connect to SMB share via OpenVPN on Android only

Post by minions » Wed Jul 26, 2017 2:27 pm

I have OpenVPN set up on my Raspberry Pi, has well as an SMB share. I am able to connect to the SMB shares just fine through OpenVPN on Windows machines, but I'm having trouble accessing it on Android through OpenVPN Connect.

I have my config files for each client set up the same way:

Code: Select all

client
dev tun
proto udp
remote x.x.x.x 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
remote-cert-tls server
key-direction 1
cipher AES-128-CBC
comp-lzo
verb 3
mute 20
<ca>
-----BEGIN CERTIFICATE-----
xxxxxxxxxxxxxxxxxxxxx
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
xxxxxxxxxxxxxxxxxxxxx
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN RSA PRIVATE KEY-----
xxxxxxxxxxxxxxxxxxxxx
-----END RSA PRIVATE KEY-----
</key>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
xxxxxxxxxxxxxxxxxxxxx
-----END OpenVPN Static key V1-----
</tls-auth>
OpenVPN Connect tells me I'm connected and gives me the static IP that I specified for that Android device on the server, but when I go to connect to the SMB share, it just times out.

I am using FX Explorer to connect to the share. I specify the IP address of the RPi server with the directory I'm trying to connect to, and the user and password are correct but it doesn't work.

Furthermore, when I am on my home network (without VPN connection), I CAN connect to the SMB share by specifying the hostname of the server with the directory, and it works.

I am puzzled as to what causes this, and appreciate any help you can give me. I'm willing to give you further information if needed.

Thanks!

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 2830
Joined: Fri Jun 03, 2016 1:17 pm

Re: Cannot connect to SMB share via OpenVPN on Android only

Post by TinCanTech » Wed Jul 26, 2017 2:41 pm

Check your server firewall.

minions
OpenVpn Newbie
Posts: 4
Joined: Wed Jul 26, 2017 12:03 am

Re: Cannot connect to SMB share via OpenVPN on Android only

Post by minions » Wed Jul 26, 2017 6:41 pm

Oh right! So if I'm using Raspbian Jessie, where would I find that?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 2830
Joined: Fri Jun 03, 2016 1:17 pm

Re: Cannot connect to SMB share via OpenVPN on Android only

Post by TinCanTech » Wed Jul 26, 2017 6:41 pm

On the Raspbian Jessie support centre.

minions
OpenVpn Newbie
Posts: 4
Joined: Wed Jul 26, 2017 12:03 am

Re: Cannot connect to SMB share via OpenVPN on Android only

Post by minions » Thu Jul 27, 2017 12:18 am

Ah yes.

I went there and they told me that there is no firewall installed in Raspbian by default, and I didn't install one. Is there a setting in OpenVPN that I might have to tweak to allow that particular host?

Post Reply