VPN Conncections - Verizon Droid Incredible 2

Hi guys anyone using or have used VPN Connections? I have it working in that it connects to my remote VPN, but it appears the nameservers don't get updated. On my Linux box I see my /etc/resolv.conf get updated correctly when I use VPNC, but I dont see a resolv.conf except for wireless tether on the phone.
Anyone know where the nameservers are recorded?
Thanks, Matt.

OK looks like vpnc is setting up the DNS's correctly, but no traffic passes through tun0.
If I "ping -I tun0 x.x.x.x" then I can ping the other end of my VPN, but for some reason tun0 is not used as the default interface.
"ip route show" gives the following at the end:
default dev tun0 scope link
I'm just not sure what the hell is restricting the traffic?
I've tried doing "ip ru del gprs", but that does not help either.
Anyone successfully use VPNC on Android?
Thanks, Matt.

Have you tried
ip ru del table wifi
If you are trying to connect over wifi this will delete the wifi routing table and use the local table.
Airplane mode off - on to reset.

Thank for the reply. I'm not on WiFi...trying to troubleshoot the GPRS connection first. WiFi is disabled, however I'll try the connection over WiFi and see if its different...I will probably be using WiFi more often anyway.
Any other suggestions?
Thanks, Matt.

Are you using VPN Client?
Try OpenVPN. heard of much better success with it.

I cannot use openVPN - I connect to a Cisco 3000 concentrator.

OK tried this again after messing around and after I did an
"ip ru del table gprs" this time I'm able to ping the other end of the VPN.
However, I still don't get DNS resolution - I can't browse web pages, etc.
Any ideas?
Thanks, Matt.

I can't post links yet, but if you search your problem on xda you will find a 20 page thread on the same problems you are having. Several solutions are there
Sent from my DROID2 GLOBAL using XDA App

Thanks, I didn't find the specific 20 page thread you were talking about but there was a lot of good info. Perhaps you can share what your search string was and what the title of the specific thread was?
I have narrowed the problem down a bit. Over WiFi I can get data to pass through the tunnel after performing
Code:
ip ru del table wifi
All traffic then passes through tun0. For some reason I cannot access corporate intranet sites on my browser, and cannot ping them either. This is not a big deal as I plan to use this mostly for Skype while abroad.
It also seems connections over 3G work now to by running the same command above but against the gprs table.
Any ideas on how to save off the wifi and gprs tables, delete them, and restore them? Perhaps vpnc-script additions?
I'd still be interested in reading that thread you mentioned though.
Thanks, Matt.

http://forum.xda-developers.com/archive/index.php/t-511849.html

Hi, try to ping one known ip address of your internal network. If it succeed then try to add this command to your interface
both internal and external.
code: ip tcp adjust-mss 1000
Hope this helps.
mattwood2000 said:
OK looks like vpnc is setting up the DNS's correctly, but no traffic passes through tun0.
If I "ping -I tun0 x.x.x.x" then I can ping the other end of my VPN, but for some reason tun0 is not used as the default interface.
"ip route show" gives the following at the end:
default dev tun0 scope link
I'm just not sure what the hell is restricting the traffic?
I've tried doing "ip ru del gprs", but that does not help either.
Anyone successfully use VPNC on Android?
Thanks, Matt.
Click to expand...
Click to collapse

Related

Unable to connect Wireless Lan when phone signal is weak?

Hi,
I'm experiencing a weird problem and please let me know if it's only my problem or there is some work around for it.
My phone is SX66 upgraded to 1.40 ROM + 1.13 Radio stack
I can connect Wifi fine whenever I have some phone signal (at work). Whenever I go home where the phone signal is weak then the WIFI couldn't get connected (I believe I set up my home network correctly as I've been using it for so long and configure it for several computer/laptop in house). The network could detect the AP with the SSID but I just couldn't connect to it even I'm sitting right next to the AP.
ROM 1.40
Radio: 1.13
MDD
Are you sure it isn't connecting? What has led you to this conclusion?
Is it possible that it is connecting, but that you just can't browse the internet, in which case check your connection proxy settings. If your work uses a proxy server and you've enabled the pass-through setting in ActiveSync, your network connection may be configured with your work proxy server.
If you're sure you're just not connecting however, things to check are;
WEP/WPA Encryption - If you're using it and have other wireless devices on your network, you no doubt know what to do. If not, say so & I can help you.
DHCP - Does your router/AP support Auto-IP Addressing? Is it enabled? If not, you'll have to configure the WiFi card with a static IP within the same subnet as your router. Ask if you need help.
MAC Filtering - Are you blocking unauthorised MAC Addresses (on your router/ap)?
Interference - Wireless A/V Senders and digital cordless phones are common culprits for RFI. 802.11x APs support multiple channels (most default to channel 11), and you can change these in case of interference. Once again, if you have other WiFi gear already connected with good, strong signals, you can probably discount this one.
Sorry if this is all elementary to you - I don't know how technical you are.
Thanks for your reply.
> Are you sure it isn't connecting? What has led you to this conclusion?
Yes, I've check wireless status on the phone. "Connected to the network", and the AP with DHCP on showed the status of an IP has been allocate to the SX66 mac address. However I dont' really believe it then I check the "Adater", it said network available, and the WIFI icon just didnot show any traffic.
> Is it possible that it is connecting, but that you just can't browse the internet, in which case check your connection proxy settings. If your work uses a proxy server and you've enabled the pass-through setting in ActiveSync, your network connection may be configured with your work proxy server.
I've experience once with the internet connection via Active Sync so I disable the passthrough. Both home and work doesn't have proxy server so I selected not to have any on the phone.
> WEP/WPA Encryption - If you're using it and have other wireless devices on your network, you no doubt know what to do. If not, say so & I can help you.
At work, I have 128 WEP and the connection works fine with the key. At home, I open my network but using MAC filtering to protect it. I have problem with the open network one at home. Perhaps, I will try to setup WEP at home and see if it can work.
The only thing I'm not really clear is the difference between setting "WPA" and "WPA-PSK" from the phone.
> DHCP - Does your router/AP support Auto-IP Addressing? Is it enabled? If not, you'll have to configure the WiFi card with a static IP within the same subnet as your router. Ask if you need help.
Yes, DHCP enable as I don't want to change it back and forth when traveling.
> MAC Filtering - Are you blocking unauthorised MAC Addresses (on your router/ap)?
I do it and I already opened the network and then captured the MAC address into the AP memory. (that's why I think it's connected but will check).
> Interference -
Not really, I'm 6' away from the AP and I don't have any cordless device in my computer room.
> Sorry if this is all elementary to you - I don't know how technical you
are.
No problem, I'd like to learn more about this PDA. The concept is about the same with PC, but the tools to debug is not there. I can't use tracert/traceroute, ifconfig or ping broadcast to really know if I'm the network.
Once again, thanks a lot.
Okay, well it sounds like you're on the right track & know what you're doing.
A useful troubleshooting tool, which gives you tracert, ping, whios, ipconfig and a host of other tools is "vxUtil", which is freeware. I'd give you a URL for downloading it, but I'm on my iMate now (sipping coffee by the Yarra in a Melbourne Cafe - oh what a techno-wanker am I!), but search these forums or Google it and you'll find it.
Now, regarding the proxy thing... These PPCs are a little tricky with their internet settings, and I had to create a different 'connect using...' connection profile, if that makes sense. The important setting within the profile, which is under the Proxy tab, from memory, is "This network connects to the internet".
Now for some reason, if you don't enter in a proxy server here, that check-box doesn't stay checked when you ok your way out. So what I've had to do is go into the advanced area & enter anything in the "wap" proxy, then ok out.
Strange, but it seems to work. Although I always leave my "Private network" on "My Work Network", I can now browse the 'Net through the WiFi AP/Router.
Download vxUtil & see if you can ping your AP, then go from there.
I've worked around the problem by using static IP address instead of depending on DHCP. Thanks to Hitchhiker software. I noticed that it was trying to obtain IP address from DHCP but failed. (The very same DHCP work wells for the rest of my network). Anyway, I will use Hitchhiker to switch IP back and forth if necessary.
Thanks a lot!
MDD
Great to hear you found the problem - well done.

[APP]Wake on Wan V1.3 (01/08/10)

I have created a new Windows Mobile application to wake up hosts in a network or over the Internet. Your networkcard and/or PC must support AMD's Wake-On-Lan (WOL), most networkcards and PC's do support this nowadays.
Features
Use Win32 Sense SDK.
Sources files available!
Stores hostname, MAC address and port number using registry.
Wakes up a host in a local area network (LAN) or in a remote area network (WAN)
Support for all screen resolutions
Requirements
A Windows Mobile 6 Smartphone or PocketPC device with access to WAN (wifi/3G/GPRS...)
Computers in your network that support Wake-On-Lan
Change log
V1.3
Uses the latest Manila's SDK V1.3 which improve speed and landscape compatibility
Correct a bug when using WIFI
Add some informations (IP of device & resolved host)
"
Hi,
anything like it exist already.
http://forum.xda-developers.com/showthread.php?t=695524
with friendly greet
starbase64
Thank you, I hadn't seen this program before... However, there are some differences as the use of the win32 SDK and the availability of sources.
I hope someone will find the sources usefull
I really need this.. and have no idea what to do. unfortunately, i can't forward a port for a broadcast address in my LinkSys WRT160N.
anyone knows how to set this up?
Set up LinkSys
Hi,
Try to setup your router without the broadcast, sometimes it works... For example, if your PC's IP is 192.168.0.10 and your extern LinkSys's IP is 80.32.3.4, try to set up your router like this :
UDP forwarding:
in port: 12345 for example (you can use any number below 65535)
out IP: 192.168.0.10
out port: 9 (or 7 depands of your hardware)
Then in my app, the host IP will be 80.32.3.4 and the port 12345...
I hope it will be OK...
which app works best?? because there is 2 of these circling around these forums.. and i'm going to use the best one... which is more user friendly? and has the least amount of router input work?? either that... or will the op be so kind and kinda hold my hand and walk me through it via PM?? i will gladly sport your appication
The other application can save the configuration of multiple computers while mine only records one...
Also, mine is not based on dotNET so is slightly faster...
@nir36:
You could also try to use a smaller subnet/range. My router won't allow to forward a port to 192.168.0.255, but I changed the subnet mask to 255.255.255.224 and so the range is from 192.168.0.1 to 192.168.0.30 with 192.168.0.31 being the broadcast address for that range and which I can forward the needed port to.
You can use a subnet calculator if you need more or different IP addresses (do a search for subnet masks on google)
@ProjektFuze:
Least router input work ?? You have to setup your router/computer the same, the program just takes the public IP address, MAC address and port and sends a packet which is the same for both.
I would say WOL everywhere is more complete but this app here is more straightforward if you need it for only one computer...
Thanks for sharing!
Hi, great App and it suits my need perfectly! Almost...
I cant get it to work over GPRS/3G, only on Wifi!
Is that how it should work or do i have wrong settings somewhere, cant find any settings!
Thanks
/Andreas
Pain123 said:
Hi, great App and it suits my need perfectly! Almost...
I cant get it to work over GPRS/3G, only on Wifi!
Is that how it should work or do i have wrong settings somewhere, cant find any settings!
Thanks
/Andreas
Click to expand...
Click to collapse
It should work with 3G... It's probably a router problem !
When using 3g, the IP you set in my app must be a public IP (not 192.168.X.X) and if you have a router, you should tell him to route the packet to your local IP...
If you don't understand (English is not my native language), tell me more about your problem.
Hi!
It is not a router problem, my HD2 cannot even connect to internet in the program, and by an app in android it works perfectly so it is not in my router or computer... Can it by some issue with my rom?
Artemis 31,5
WM 6.5 23576.5.5.0
Manila 2.5.20183025.0
Radio 2.10.50.26
/Andreas
Strange...
When you are allready connected to internet, is the button enabled ?
I have a friend which have an HD2, I will try with his device and post here tomorow... Maybe another application prevents the connection...
I've tested my app on the HD2, and no problems...
My app should show your IP when connection is found. Try to:
-unconnect from 3G and launch wakeonwan. My app will normally trying to connect using 3G. Is this step OK?
-Connect your phone and launch wakeonwan. My app will normally trying to find your IP. Is this step OK?
No, neither works! It only say "Cant connect to internet"! It´s only on Wifi it connects... :-S
Ok, I will try to change the connection process and update it...
To understand the problem, what is the real message printed ?
Can't establish connection to web...
Can't find web connections...
Can't retrieve available connections...
Can't find your IP address...
An other question: is the app searching for a connection or the message is directly printed?
Thank's
Ok, can you try this version ?
remplace the old .exe with this version in /program files/WakeOnWan/
It´s the first one, Can't establish connection to web.
And i will try out the file you posted...
Pain123 said:
It´s the first one, Can't establish connection to web.
And i will try out the file you posted...
Click to expand...
Click to collapse
OK, I'm waiting for feedback

Enables connection to ad-hoc WiFi networks, WEP semi-working

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.

Connecting Evo to my home wireless att dsl, help

I looked around the forum and searched on Google but was still skeptical how to connect my Evo to my home internet connection. I turn on my Evo WiFi, it shows my connection so I push connect. Then I see I am unable to to browse from my phone. I have a speedstream 5200 that is connected to my airlink wireless router. I would like to use my home internet so I can browse on my phone. I have a username and password that I have to put in, in order to log on such as my laptop.
Any help will be gratefully appreciated.
Also does this have to do anything with vpn?
Using my HTC Evo phone which I'm using Xda app to post
If your router has a password, the phone should prompt you to enter that. If not, your router could be using a weird security profile, maybe just try switching to WEP. Also, try unplugging the router's power for a minute, then plug it in. That usually fixes any problems with the router itself.
Ill try that and see. If anyone else has this type of issue and somewhat knows how to resolve this pls post. But thank you sitlet Ill give that a shot and respond back asap.
WEP/WPA/WPA2 will all prompt for a password when you try to connect.
A few things to check:
1) The SSID must be set to broadcast
2) make sure there isn't a MAC address filter turned on on the router.
3) if you have entered a password to connect, re-enter it to make sure it is correct.
HTC Evo
Rooted, but still stock...for now
----------------------------------------
The program is designed to work, if it's not, we have a problem.
Ok I did everything mentioned above and I can get into my router settings but I still can't figure out why my Evo won't use my att service. I see the "connect to, my router " but still can't actually connect to use the internet. Am I suppose to use a VPN? please help again my friends, thanks.
Using my HTC Evo phone which I'm using Xda app to post
OP, it sounds like your modem is passing on the PPPoE authentication to the connected client (your computer). What you need to do is have the modem do the PPPoE handshaking and pass a pure public IP back to your router, which then via NAT shares the internet connection across connected devices.
Reference page 21 (not pdf page, but actual page # printed at the bottom of the pages in the pdf) of your modem's owner's manual to provide your login credentials to the modem.
http://www2.windstream.net/downloads/links/SpeedStream211.pdf
On page 38, refer to configuring the modem for client mode.
You should configure your router for DHCP wan mode. You may need to adjust your MTU setting if there is one. I don't recall the exact procedure for dsl setups, but google "optimal mtu dsl" for information.
Finally, your computer should be set up for dhcp as well. When everything is working properly, you should not need to run any additional software on your computer to gain internet access. When this becomes so, your evo should be able to connect successfully to your wifi. Once you're able to do this, you can start implementing wireless security (wep/wpa/wpa2).
Edit: You're not clear what you're typing in when you reference logging in in one of the posts above. Are you supplying windows credentials, or your isp credentials ([email protected] or [email protected] or similar and password)?

[Q] USB Ethernet, strange behavior

Hello everyone!
I successfully manged to get a USB-Ethernet Dongle working on my note 2.
However I am experiencing a strange issue:
When I had first set up the ethernet functionality, everything was working fine.
(Most apps could Not access the internet though, but some such as browser or vlc-player could).
Some days passed by during which I did not use the ethernet functionality but accessed several wifi networks
Now the issue:
if I want to use ethernet at my home network again everything seems fine first.
I can connect via ethernet, retrieve an ip adress using "dhcpcd eth0" and even issue commands like "traceroute www .google. de"
The output of "ip addr show" and "ip route show" also indicates that eth0 interface was assigned a ip-adress and also the correct default gateway has been defined
however if I want to use the browser to browse the web no connection can be established...
same with VLC-Player.
so network commands via terminal work but there's no internet connection within apps.
The strange thing is:
if I now access my home network via wifi first, turn wifi off and use ethernet again everything works as expected (especially the browser is working again..?!)
I'm wondering what I'm missing here:
Do I miss something during setting up the ethernet interface?
note that I also set the "net.dns1" and "net.dns2" property for primary and secondary DNS Server...
But why is ethernet only working if I firstly connect to the same network via wifi?
I assume that while connecting to the network via wifi some additional properties are set.
I'd very appreciate any explanation/suggestion on this matter.
thanks in advance!
Regards!
BennyKay said:
Hello everyone!
I successfully manged to get a USB-Ethernet Dongle working on my note 2.
However I am experiencing a strange issue:
When I had first set up the ethernet functionality, everything was working fine.
(Most apps could Not access the internet though, but some such as browser or vlc-player could).
Some days passed by during which I did not use the ethernet functionality but accessed several wifi networks
Now the issue:
if I want to use ethernet at my home network again everything seems fine first.
I can connect via ethernet, retrieve an ip adress using "dhcpcd eth0" and even issue commands like "traceroute www .google. de"
The output of "ip addr show" and "ip route show" also indicates that eth0 interface was assigned a ip-adress and also the correct default gateway has been defined
however if I want to use the browser to browse the web no connection can be established...
same with VLC-Player.
so network commands via terminal work but there's no internet connection within apps.
The strange thing is:
if I now access my home network via wifi first, turn wifi off and use ethernet again everything works as expected (especially the browser is working again..?!)
I'm wondering what I'm missing here:
Do I miss something during setting up the ethernet interface?
note that I also set the "net.dns1" and "net.dns2" property for primary and secondary DNS Server...
But why is ethernet only working if I firstly connect to the same network via wifi?
I assume that while connecting to the network via wifi some additional properties are set.
I'd very appreciate any explanation/suggestion on this matter.
thanks in advance!
Regards!
Click to expand...
Click to collapse
There is something on these forums called "reverse tether" look it up, it has something that can fix this with IP tables and force the phone to think that it is connected to Wifi
Great, thank you!
I did not know about this possibility!
Especially the xposed module looks promising.
It might help to get more apps to reconize the active internet connection.
I'll give it a try!
however I still have no clue why the ethernet interface only seems to work correctly if I first connect the phone via wifi to the network.
The browser will recognize the connection when I do the following:
1.1>turn wifi on and connect to my network
1.2>turn wifi off again
2.1>connect the ethernet USB Dongle
2.2>set up eth0 interface
3>web browser works
Note that I only turn wifi on for step 1.1 and 1.2. When using the ethernet connection wifi is already turned off and the browser still works.
I read that the browser uses some low-level functionality and bypasses the Android framework which is why it can use network connections even though android "thinks" no network is available.
But if I skip the first 2 steps even the web browser won't work.
I think it's quite strange behavior which I cannot explain. Maybe a configuration problem which is solved when setting up a wifi connection prior?
Maybe I'll have to dig a bit deeper into how networking in android works.
Hi, can you share your settings and how did you managed to connect through ethernet? Which rom and kernel you used?
Sent from my GT-N7100 using Tapatalk
chandoliasnikos said:
Hi, can you share your settings and how did you managed to connect through ethernet? Which rom and kernel you used?
Sent from my GT-N7100 using Tapatalk
Click to expand...
Click to collapse
Hello!
I am using PhoeniX ROM v16.7 along with the AGNI PureStock Kernel v.3.9.3.
It is the kernel that enables the ethernet functionality.
However ethernet support depends on the chipset of the ethernet adapter you are going to use.
Mine has an ASIX AX88772 chipset. I am not sure what kind of chipsets are supported by this kernel.
If the kernel does not support your chipset you will have to compile the driver yourself and insert it as a kernel-module.
I cannot post any links (due to restrictions for new members) but you will find a lot about this topic if you search for: note 2 ethernet kernel module
I do not really understand what you mean by settings:
If you have ethernet up and running you can type in terminal:
Code:
netcfg
You will then see a list of all network interfaces along with the eth0 interface.
To set up the eth0 interface using dhcp you can issue:
Code:
dhcpcd eth0
For manual configuration you will need:
Code:
ifconfig eth0 IP_ADDRESS_YOU_WANT_TO_ASSINGN netmask YOUR_SUBNETMASK
route add default gateway IP_ADDRESS_OF_YOUR_GW dev eth0
setprop net.dns1 IP_OF_YOUR_DNS_SERVER
I am not sure if I do something wrong during configuration, because eth0 interface will only work in apps like the browser if I connect to my network via wifi first (see the my first posts for detailed explanation).
I can turn my wifi off afterwards and use ethernet instead but for configuration I need to start wifi first.
I am not sure why - I still could not figure out the problem...

Categories

Resources