The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Hot answers tagged

11

Answering an old question, I know, but Android 4.2 has "Always-on VPN" in the menu on the VPN Settings page: setting a VPN profile under this will maintain the VPN connection, and only allow network traffic when connected to it. More info: http://support.google.com/nexus/bin/answer.py?hl=en&answer=2819573 (It may have been added in an earlier version ...


9

I had the same problem, but I found a solution. I just chose Pattern, turned off the screen, turned it back on and clicked on Forgot in the lower-right corner. After I gave in my Google password it changed automatically back to slide. In the settings the option "none" is still grayed-out but it's selected anywhere and it works.


9

Unfortunately the stock Android tethering application does not work with VPNs. This limitation is an oversight in the software and not a system limitation. However there is an application called ClockworkMod Tether that will allow you to tether and use a VPN at the same time. In fact it makes use of the standard tethering application and then fixes up the ...


8

Yes, 3G traffic will go through your VPN if it's set up correctly. Whether or not your service provider supports that is another matter; some block VPN traffic (such as Verizon - see this thread).


8

Turns out you can forward all traffic over the network by entering 0.0.0.0/0 You can then check by doing a google search for your IP and it should now be the public IP of your VPN's gateway


8

I found some information that consists of adding iptables rules using command-line in your rooted device. I tested it on my Android 4.4 on Blu studio and it works fine. Quoted text originally written by SmokeyTech1 of XDA-Developers here: You need a rooted device Make sure you have a VPN app, like OpenVPN or DroidVPN ( I use DroidVPN and its the ...


8

Your http://xxx.com/proxy.pac is not a proxy server, it is the address to a proxy automatic configuration (PAC) file. A PAC file contains a Javascript function that determines which proxy address to use and/or whether you're allowed to go direct when connecting to a particular URL. ProxyDroid (requires root) claims to support proxy configuration using PAC ...


7

A VPN is a virtual private network. Your device connects to a VPN server through a public connection and tunnels a second virtual and private (to you) connection through the VPN server to see all devices that are protected behind the VPN server (such as a company's whole network infrastructure for example). This feature is mostly used for road warriors ...


6

You can solve this issue either from the Android side or from the Windows side: From the Android side Tap your device "menu" button, and select "settings"; Tap "Wireless & networks"; Tap "Wi-Fi settings"; Tap your device "menu" to bring up extra options and select "advanced"; Tap "Use static IP"; Fill in your local network static IP details and dns ...


6

No Android version natively supports IKEv2 yet. But you can install the free and open-source strongSwan VPN Client that uses IKEv2 and runs on Android 4 and newer.


5

As described in this how-to, you can do this by installing a "chrooted" Linux distro on Android such as Ubuntu, and then downloading, installing and configuring Hamachi manually. Hamachi is a vpn program which can be used to link up computers. With hamachi on an android you would be able to access the files on multiple computers from anywhere in the ...


5

If you have access to a computer that a) is on the same Wi-Fi network; and b) runs wireshark (http://www.wireshark.org/) you can probably find out the port that way.


5

Found this, it's a hack but it works for on my galaxy nexus 2.1.2 Here's the steps: Set your lock screen security to what you want, slide/none Go to create VPN profile Create a pattern lock Setup VPN profile Lock device Unlock but input the wrong pattern until device locks for 30. Tap "Forgotten Pattern" Enter your google account details. Cancel the "Screen ...


4

This is really a continuation of @Zuul's answer, to cover the DNS settings in Android 4.0+ (ICS), which is a little harder to find IMO. AFAIK Zuul's answer covers Android <2.3 settings. From the Android side (Android 4.0+ ICS) Settings WiFi (click on word "WiFi", not ON/OFF switch) Press and hold (long tap) your wireless network until dialog pops up ...


4

The free and open-source OpenVPN for Android app supports this. In the profile configuration dialog, there is an 'allowed apps' tab that allows you to select a list of apps that is either excluded or excluded from using the established VPN: 'VPN is used for all apps but exclude selected' 'VPN is used for only for selected apps' (sic) The list then ...


4

I used to use PPTP, but switched to OpenVPN, which is now what I prefer. As far as security, OpenVPN is known to be pretty bulletproof. PPTP is the only one with real issues, though it's still fine for protecting against your average dope using Firesheep at Starbucks. Given the recent NSA revelations I personally wouldn't touch the ones by Cisco and/or ...


4

In the regular XAuth/RSA authentication scheme both client and server are mutually authenticated using RSA certificates during Phase 1 of the Internet Key Exchange protocol (IKEv1) that is used to negotiate IPsec connections. In a second authentication step the client authenticates itself using XAuth (e.g. with username/password, but there can be other ...


3

This is for security reasons: If you lose your phone with VPN set up, anyone can log into your network. Having a pin lock mitigates this threat. If you happen to have CyanogenMod 7+ installed there's an option called Profiles. You can setup your default profile to have no screen lock at all (not even slide lock). That's the closest I got. Hint: This feature ...


3

If Joe's device is rooted and Joe has a server (with full SSH access) running somewhere on internet, Joe should use SSH Tunnel app with socks proxy option checked (for dynamic port forwarding). There's no need to install VPN server or proxy server. There's no need to do complicated configurations on server. Plus, Joe's data will be secured inside powerful ...


3

If you are trying to VPN from your phone to publicly accessible computer that is also part of your LAN, it really doesn't matter what port the VPN client on your phone uses.


3

I'm using the Private Internet Access app for the same situation. It has a "kill switch" to prevent the leaking. It only works with the private internet access vpn service though.


3

You can't use the native option for OpenVPN as it's not compatible with IPSec, IKE, PPTP, or L2TP, which are the only types of VPNs supported by Android: http://openvpn.net/index.php/open-source/341-openvpn-compatibility.html


3

Yes. F-Secure Freedome (a VPN client) is running on my Note 2. I have Note 2 tethered to an Ubuntu machine and an Android tablet. My tablet and laptop post a Germany IP address, while I am on the other side of the ocean. Make sure that your data plan allows tethering. Make sure that you are on the cell network. However, USB tether to Wifi VPN on the phone ...


3

As stated by Lie Ryan's answer, the proxy.pac file is a javascript file. In the Proxy Settings on your Android, you can only enter the address, port number, and sometimes a username and password. What you can do is either ask your SysAdmin for the Proxy Server and Port Number, or just look at the file yourself. On a system that's already on the network, ...


3

I've just found an issue in AOSP that tracks this and has a suggested fix for it: I tried Textra as a texting replacement app (for other reasons). In the settings it has an option to use either System or Legacy protocols for MMS. It even tells the user to try System if they have a VPN enabled. I switched to System from the default Legacy, and now my ...


3

You can use adguard for this purpose which has the capability of both a firewall and an adblocker. It sets up a local vpn for non rooted phones. It also has a proxy mode. ( inorder to use with other vpns).


3

Yes its possible, I have covered one method to achieve this already on this post. Alternatively, our fellow user, Mygod has shared one application to achieve this called VPN Hotspot and is available both on XDA Labs or F-Droid. As expected both these methods need root, for non root solution you may have to look at something like PDANet+


3

When you open incognito tabs in chrome, there is a notification that appears with the message "Close all incognito tabs". You can use it to automate the process of launching your app. Using Automate: In the Interface section, select the Notification posted block. Click on it, select chrome as the package and set Chrome as the title on the Input arguments ...


2

You could use DroidWall for this IF you're rooted. Just deny all traffic and then allow traffic to your VPN IP/port. If you need to use a custom script see the man page of iptables for the syntax. Here's a quick, untested example. iptables -P FORWARD ACCEPT iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -A OUTPUT -p udp --dport 1194 -d xxx.xxx.xxx....


2

Here are the ports used by VPNs PPTP To allow PPTP tunnel maintenance traffic, open TCP 1723. To allow PPTP tunneled data to pass through router, open Protocol ID 47. L2TP over IPSec To allow Internet Key Exchange (IKE), open UDP 500. To allow IPSec Network Address Translation (NAT-T) open UDP 5500. To allow L2TP traffic, open UDP 1701.


Only top voted, non community-wiki answers of a minimum length are eligible