On the original 2.1 you could connect a VPN and still surf the internet. Now with Froyo you can't. I've searched high and low for a setting in the GUI and on the file system and can't find anything that would allow me to turn off use of the VPN connection as the default gateway. Since many Market apps, in particular my Xtralogic RDP client, often check to make sure they are registered this new VPN "feature" renders all of these apps useless to those who use them through VPN tunnels.
Does anyone know where the settings for VPN connections are stored? Are they human readable? I did find one file in /system/etc/ppp that looks like a standard debian-like interface script, if-up-vpn, but it looks to be binary. However I am using an L2TP connection and can't find anything anywhere. Worst case, is there a way i modify the routing table on the fly? I'm used to UNIX-like manageability using the usual netstat/iptables/ifconfig kind of thing, but Android is far from what I'm used to and doesn't seem to be easily manhandled. Hopefully there is someone around here who knows how to Ginsu this back to normal. Thanks in advance!
Running the Virtuous 2.3 rom with 2.15 radio.
-M
Hello, I apologize if this thread has been created, but I cannot find anything searching "vpn" in this forum since its only 3 chars long.
I would like to connect my G2 to my work's intranet via VPN. I can successfully do so via the built in options under Wireless & Networks option. However I have slight inconveniences with that option.
#1 DNS does not work. I cannot resolve any internal IPs once connected to the VPN which makes the VPN connection useless unless I memorize all the IPs. I manually set the DNS Search Domains option in the VPS settings, but I am still connected to some other DNS server according to IPDroid app.
#2 No password remembering. I dislike having to open up the keyboard to type the password.
Is there a market app that will satisfy my above 2 requirements while doing everything the stock option will allow?
Not out there yet...
Google
VPN for Andriod
Read this
https://supportforums.cisco.com/thread/2012285
Happened across this in another XDA thread:
http://forum.xda-developers.com/showpost.php?p=7674767
They have a patched wpa_supplicant file that can connect to ad-hoc wifi networks, which our default one cannot. It shows ad-hoc wifi networks with a * in front. This can be useful if you're traveling and want to connect to a computer's Internet connection sharing.
Interestingly, it seems to get farther in connecting to WEP networks as well, in that it connects and thinks it's connected, but then the Internet still doesn't work. I took a look at the logs but didn't see anything helpful in there. Maybe someone smarter than I can figure out what the issue is? They're unsecure, but sometimes if you're at a hotel, it's the only game in town.
You can install this just by copying it to your sdcard's root and editing your froyo.user.conf to include a line like:
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
Edit: Update, it turns out that when connected to WEP, it's actually working as well! Unfortunately, the issue seems to be that somehow the DNS is not working. Things that only need IP addresses like sync and entering IP addresses into the browser work fine. If anyone wants to take a stab at fixing this, it'd be much appreciated.
Man, I owe you my life
I tried some solutions and never worked, now I have free ad-hoc internet on android
Unsecured BTW
Cooooooool!
You should get this committed. /system/bin I would think be in the system image... so mention it to stinebd.
Eh, I'll mention something to him now
Seems it'll never get committed...
Code:
+#define ANDROID_IBSS_HACK
+
+#ifdef ANDROID_IBSS_HACK
lol!
arrrghhh said:
Cooooooool!
You should get this committed. /system/bin I would think be in the system image... so mention it to stinebd.
Eh, I'll mention something to him now .
Click to expand...
Click to collapse
pssst.. hey argh I still without a router xD
husam666 said:
pssst.. hey argh I still without a router xD
Click to expand...
Click to collapse
........Ok?
arrrghhh said:
........Ok?
Click to expand...
Click to collapse
cant you remember the other thread about ad-hoc?... whatever
i have the code in a bat file is there a way to mount it on start up?
husam666 said:
cant you remember the other thread about ad-hoc?... whatever
i have the code in a bat file is there a way to mount it on start up?
Click to expand...
Click to collapse
Sorry, lots of threads man...
manekineko included a way to mount it at boot:
manekineko said:
You can install this just by copying it to your sdcard's root and editing your froyo.user.conf to include a line like:
Code:
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
Click to expand...
Click to collapse
godammit whats wrong with my brain
Sent from my FROYO X using the XDA mobile application powered by Tapatalk
Do we know yet whether the problem with WEP is a driver or userland issue?
I played around more with the WEP thing, and I think it's getting really close.
It actually really is connected, there's no incorrect reporting by Android. What's failing is the DNS somehow.
If you run the Terminal Emulator, you're able to ping IP addresses no problem (for that matter you can enter IP addresses into the browser and load webpages no problem). My Gmail sync already had an active connection beforehand, and so it had an IP address to work off of, and even that connected fine on WEP and downloaded new email.
However, no matter what I do, I can't seem to get DNS working.
Here are the things I've discovered in case anyone else wants to carry on the torch:
-In the terminal emulator, DNS never seems to work. Android does not use the standard Linux resolv.conf file, so none of the command line tools can resolve DNS. Puzzlingly, even when using nslookup and specifying your own DNS server does not seem to work.
-Instead, what Android does is store the DNS into two properties: “dhcp.eth0.dns1” and “dhcp.eth0.dns2”. You can read these using the command line command "getprop", and there is already an IP address set in dns1 for me after connecting to WEP, so the problem isn't there I think.
-You can modify these properties, and that normally works to change the DNS server in Android, using the command "setprop". I changed dns1 to the OpenDNS server, and I could verify the change took on the command line using getprop, however, still in my browser I couldn't load any pages by domain name.
Say I download an apk from market.
There are times that I don't want it to access Web (so as not to download any ads and get over my monthly cap). Still i want it to have access to my 192.168.x.x home network.
Is there any way to do this (access only certain IPs per apk)? I'm using Linux and I don't even know how to do it there. So I dont know what to look as to get some ideas.
Probably an ad blocker will take care of downloading banners and such. There might be some apps on the lines of Droid Wall which might allow you to filter traffic. I've never used it.
If you are trying to access your LAN I'm assuming you are using your wireless connection and you might be able to filter traffic from you AP if it has the proper tools and APs usually do.
First of all thanks for the reply.
Ok, an ad-free script could be possible but how can one find out what IPs are being used from a specific apk?
As far as I know there is no log that logs the sockets that are open or even better have been opened...
P.S.: I know my apk pid. The issue is to find out which IPs it uses...
Use terminal emulator to issue "netstat -a" command. I really think that DroidWall could help.
DroidWall cuts all connections (say all wiFi connections)!!! And I don't want that. I want my apk to be able to connect to my home network but cut off all other connections. But only for the specified apk.
netstat -a doesn't say which application uses which port.
Thanks for the ideas. I have already tried those. Feel free to tell other ideas as well though.
I tether with t-mobile for xbox live and it works but certain things don't, like updating games due to what i assume are strict NAT settings on tmobile's end.
I was able to do this once when I used proxydroid but I can't replicate what I did. Does anyone know how to either use tor with tethering (says it supports it in the option but I can't get the check tor page to load properly on my pc) or how to use proxydroid? I enter in proxy information and it doesn't change a damn thing when I go to pages like whatsmyip.com
what am I doing wrong?
**edit** mods i guess i should have posted this somewhere else...anyone wanna help move it?
EDIT