Anyone know about O...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Anyone know about OpenVPN on Android?

8 Posts
4 Users
0 Reactions
56 Views
Posts: 2053
Free Member
Topic starter
 

I've managed to get openvpn to connect to my home router from my android phone, when I browse the web it thinks my IP is that of my home network, so it appears to be working.

I'm having issues getting RDP or SMB protocols to go through the VPN on my phone though, if I try to use microsoft remote desktop via the VPN it just says it can't find the remote computer, if I scan the network for available hosts it appears to return a list of PCs on my work wifi (that I'm connected to on my phone) rather than the ones on my home network so I'm not sure its routing the traffic through the VPN.
In ES Explorer when trying to connect to an SMB share, it times out trying to connect to a stored setting for one on my home network and if I scan the network it doesn't show any servers, so I assume this is also not being sent through the VPN.

I'm pretty sure its a setting somewhere in the client side, the settings files were created by the web interface from my router setup not by me manually so i'm not sure what I should be looking for?


 
Posted : 01/03/2017 11:27 am
Posts: 4954
Free Member
 

Are you using up address for rdp or computer name (which will probably be resolved by some NetBIOS/ WINS thing)


 
Posted : 01/03/2017 11:32 am
Posts: 2053
Free Member
Topic starter
 

Aha! thats fixed the RDP, works fine if I use the IP, great!

Now, just the pesky SMB to go...


 
Posted : 01/03/2017 11:39 am
Posts: 0
Free Member
 

For DNS to work you will need to add something along the lines of this to your server.conf (assuming you have a DNS server at home)

push "dhcp-option DNS XXX.XXX.XXX.XXX"
push "dhcp-option DOMAIN mydomain.co.uk"


 
Posted : 01/03/2017 11:42 am
Posts: 77659
Free Member
 

Now, just the pesky SMB to go...

Same applies, no? \\192.168.0.2 rather than \\myhomepc ?


 
Posted : 01/03/2017 11:45 am
Posts: 2053
Free Member
Topic starter
 

[quote=slowbloke ]For DNS to work you will need to add something along the lines of this to your server.conf (assuming you have a DNS server at home)
push "dhcp-option DNS XXX.XXX.XXX.XXX"
push "dhcp-option DOMAIN mydomain.co.uk"

I don't (think I) have a DNS server at home.

[quote=Cougar ]Now, just the pesky SMB to go...
Same applies, no? \\192.168.0.2 rather than \\myhomepc ?

You'd have thought so, but ES file explorer just says it can't find the server.


 
Posted : 01/03/2017 11:53 am
Posts: 2053
Free Member
Topic starter
 

Aha, after yesterdays lesson on windows firewall logging, it looks like its the windows firewall on the PC with the SMB share thats dropping the connection attempt.

Just need to figure out how to tweek the rules to allow it through now!


 
Posted : 01/03/2017 12:03 pm
Posts: 4954
Free Member
 

You probably won't have a DNS at home. It will be NetBIOS doing its thing when you are at home. (Probably broadcast NetBIOS has several modes)


 
Posted : 01/03/2017 12:15 pm
Posts: 2053
Free Member
Topic starter
 

Fixed it, for anyone thats interested, the rule for port 445 in the Private profile is what was causing the problem, the scope was only the local subnet, changed that to any IP and it works.
I do wonder if I should just add the subnet of the VPN connections but I think it'll take a bit more digging to find what that actually is.
Edit - just added the range of local IPs that the VPN spits out onto ie. 192.168.254.1 - 254
Works fine now. 🙂


 
Posted : 01/03/2017 12:56 pm