We have develop a vpn client and a virtual ethernet adapter (NIC). So all IP packets will go through the virtual interface.
So we can set the metric and default gw in the routing table to the virtual adapter. it works fine on the old firmware of HTC universal (MDA Pro). But on the new WM Firmware of T-Mobile (ExtRom 1.30.223 GER) the network traffic go only through the wireless lan and not through our virtual interface.
Here is the routing table :
Destination | Mask | Nexthop | interface index | metric
0.0.0.0 | 0.0.0.0 | 192.169.1.1 | 2.0.0.0 | 10
0.0.0.0 | 0.0.0.0 | 10.0.6.1 | 3.0.1.0 | 30
the router of our virtual NIC is all ready setted in the top of the routing table, also metric and it have a less index, but IP packet go through WLAN ?!
ps.
theoretically we can set the default gateway to UMTS or WLAN.
although the virtual adapter have a less metric and
index in the routing table !?
Does any body try to set default GW, or to swap default GW beetween GPRS/UMTS and WLAN connection ?
There is a code sample from Pb, but it doesn't work in our project.
\PUBLIC\COMMON\OAK\DRIVERS\NETSAMP\ROUTE
Please remove the "zip" ending in attachment.
Related
Hi,
I'm wondering if anyone can help solve a problem I have with my UK V1605.
This is a great phone and I am really impressed with it. PIE works great over WiFi, GPRS & 3G. HOWEVER, when I connect the phone to my PC with the USB cable, I am no longer able to access the internet with PIE. I just get an error message, "The page cannot be displayed because the connection was lost. Please try again."
I have tried playing around with the all the settings but still keep getting the error. I can see the wifi symbol at the top keep changing to the USB/Activesync symbol. When I look under the wireless LAN settings I can see the IP address and 'connected to network' but still get the error message in PIE.
This is my first post, and I have looked all over for a solution but not been able to find anything. I will appreciate any advice. Thanks in advance.
Hi,
Are you connecting at home or in work, the reason I ask is that you might have to setup a proxy on the device (this is not the PC running ActiveSync).
In work I have to add my works proxy under START > SETTINGS > CONNECTIONS > Connections > 'My Work Settings' and look at the proxy.
Also it might be firewall issues, more info here: http://www.pocketpcfaq.com/faqs/activesync/tshoot-as4x-firewall.htm
Try these and post your results.
Gav.
1. Is your AS connection a Guest connection, or a full one?
2. try changing your USB connection type; see http://www.pocketpcmag.com/blogs/index.php?blog=3&p=555&more=1&c=1&tb=1&pb=1
I had the same problem, then I flashed the rom and I could get internet again, installed some apps and couldnt get internet via USB-activesync.
I fixed it by doing the following in activesync on the PC (not on the PDA):
FILE>CONNECTION SETTINGS>
where it says THIS COMPUTER IS CONNECTED TO:
select THE INTERNET, then OK and I was once again able to connect to internet via USB/Activesync.
Internet surfing worked via ActiveSync USB...now it doesn't
I am running Windows Mobile 5 on an HTC 8525. I have ActiveSync 4.5 installed. For the first three weeks I was able to sync to my device and also surf the net from my device using the desktop pass-through feature. My friend took the device away on a trip for a day and when he brought it back I noticed that the pass-through feature no longer worked. I don't know if he tried to connect to another network and the settings got hosed or if ATT pushed some patch to the phone. Either way, I can still sync and browse files, I just can't get on to the internet. Furthermore, checking the 'allow wireless connections' box in AS->File->Connections Settings seems to do nothing since my wlan is immediately disabled every time I plug the device in to the usb cable. I have tried the following to no avail:
1. Used a different HTC 8525 with the same result
2. Installed ActiveSync on a different machine, no luck
3. Tried the registry edit [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services] "AllowLSP"=dword:00000000
4. Tried using ActiveSync 4.1
5. Played around with the connection settings and network adapter settings on the phone to the point that I have no idea what they were anymore
6. Reset the phone to its defaults, no dice
To test the connection I open IE and try to browse to www.msn.com. The status in the bottom left of the IE window says "Connecting..." then "Locating..." then I wait for a while and I get a pop-up that says "The page cannot be displayed because the connection was lost. Please try again"
My ActiveSync connection settings have usb enabled and 'This computer is connected to The Internet'.
Another strange thing, when I try to open AS->File->Connection Settings it takes about a minute for the Connection Settings dialog to open. What could make it hang?
I really am out of ideas on how to get this thing working again. I am developing an application on the phone that requires internet and bluetooth connetivity. I was remote debugging using VS 2005 and everything was working like a champ. By the way, I am still able to remote debug, so that tcp connection with the device still works...I just can't get out to the internet. My Windows Firewall has ActiveSync in its exception list.
Thanks for your help!
John
jburnette said:
My ActiveSync connection settings have usb enabled and 'This computer is connected to The Internet'.
John
Click to expand...
Click to collapse
Change it to Automatic and see if it make an difference
jburnette said:
...Connection Settings it takes about a minute for the Connection Settings dialog to open. What could make it hang?
...My Windows Firewall has ActiveSync in its exception list.
John
Click to expand...
Click to collapse
Try disabling the Firewall and test it.
Thanks for your reply tytnguy.
I have tried changing it to Automatic (and Work as well) without success. I have also disabled the firewall.
A little more info:
In Settings->Connections->Connections->Advanced->Select Networks I have 'Media Net' chosen for programs to automatically connect to the internet. The proxy settings for Media Net are 'This network connects to the Internet'. I have tried toggling this though it is possible that other settings did not match up with this when I changed it.
In Settings->Connections->Wifi->Configure Network Adapters I have My Network Card Connects to 'The Internet'.
This sure seems like a networking problem to me. I have installed vxUtils to look at the status of my device. Here is the 'info' output:
Current IP
WM_john1
169.254.2.1
Adapters
Cellular Line 2 -
IP Address : 10.19.35.188
Subnet Mask : 255.0.0.0
Default Gateway : 10.19.35.188
Primary DNS : 209.183.48.11
Secondary DNS : 209.183.48.10
Primary WINS : 10.11.12.13
Secondary WINS : 10.11.12.14
DHCP Server :
PPTP1 - PPTP NDISWAN Miniport
IP Address : 0.0.0.0
Subnet Mask :
Default Gateway :
Primary DNS :
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
VMINI1 - Microsoft null Ethernet Miniport Driver
IP Address : 0.0.0.0
Subnet Mask :
Default Gateway :
Primary DNS :
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
VEM - Virtual Ethernet Intermediate Miniport
IP Address : 0.0.0.0
Subnet Mask :
Default Gateway :
Primary DNS :
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
RNDISFN1 - Remote-NDIS Host
IP Address : 169.254.2.1
Subnet Mask : 255.255.255.0
Default Gateway : 169.254.2.2
Primary DNS : 4.2.2.2
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
L2TP1 - L2TP NDISWAN Miniport
IP Address : 0.0.0.0
Subnet Mask :
Default Gateway :
Primary DNS :
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
AsyncMac1 - AsyncMac NDISWAN Miniport
IP Address : 0.0.0.0
Subnet Mask :
Default Gateway :
Primary DNS :
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
NE20001 - NE2000 Compatible Ethernet Driver
IP Address : 0.0.0.0
Subnet Mask :
Default Gateway :
Primary DNS :
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
USB Cable: -
IP Address : 192.168.55.101
Subnet Mask : 255.255.255.0
Default Gateway : 192.168.55.100
Primary DNS : 127.0.0.1
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
WWAN1 -
IP Address :
Subnet Mask :
Default Gateway :
Primary DNS :
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
TIACXWLN1 - IEEE 802.11b/g Compatible Wi-Fi Adapter
IP Address : 10.0.0.152
Subnet Mask : 255.255.255.0
Default Gateway : 10.0.0.1
Primary DNS : 205.171.3.65
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server : 10.0.0.1
Lease Obtained : Fri Aug 17 15:56:38 2007 (GMT)
Lease Expires : Fri Aug 17 17:56:38 2007 (GMT)
BTPAN1 - Bluetooth PAN Driver
IP Address : 192.168.0.1
Subnet Mask : 255.255.255.0
Default Gateway :
Primary DNS :
Secondary DNS :
Primary WINS :
Secondary WINS :
DHCP Server :
Perhaps there is something here that should have an address that doesn't.
Thanks again for your help!
jburnette said:
1. Used a different HTC 8525 with the same result
2. Installed ActiveSync on a different machine, no luck
3. Tried the registry edit [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services] "AllowLSP"=dword:00000000
4. Tried using ActiveSync 4.1
5. Played around with the connection settings and network adapter settings on the phone to the point that I have no idea what they were anymore
6. Reset the phone to its defaults, no dice
John
Click to expand...
Click to collapse
Looks like you have already tried everything
You used differnt pcs, different devices
And a hard rest(??)
Logically Since you had problems in every combination, I think you have to think about something which common and present in all combinations. I can say 'It is the way you setup your internet connection'. I do not know what is 'Media Net' but if you had that setting in all your combinations tried. Then that is where you should look for.
I do not know if that is helpfull or not but my two cents!
Shlomki's soltuion
Please see this post by Shlomki. I think he's cracked this problem.
http://forum.xda-developers.com/showthread.php?t=309108&highlight=shlomki
Thanks Shlomki - your solution worked for me!
I am able to connect via Wifi and getting IP address but the default gateway is sometime set and sometime not. When it is not set i can not surf the internet. Is there a way to set the default gateway in HEMRES ?
Someone , please help
All I need to know is how to set the deafult gateway to 192.168.0.1 same as DHCP Server.
DHCP should give it all the settings
might be worth looking to why your DHCP server isnt giving out the correct settings, but any way
Settings > Connections > Network cards > Network Adapters
you will have a list of the Adapters
at a guess it would be the IEE 802.11b/g Compatable wifi
tap on that
and it should give you some options tick Use Specific IP Address, put in the details
please note this will set the details for all wireless connections, so if only use wireless at home, then it will be no problem, but say you use it at home, at work and out and about at Hotspots, you may need to go in and change it back to using DHCP for it to work
DHCP server settings
might be worth looking to why your DHCP server isnt giving out the correct settings,
Click to expand...
Click to collapse
can you give some hints how to do that ?
I did what you said , in VxIPConfig it said DHCP Disabled, and got the deafult gateway as 192.168.0.1 . I couldn't surf the internet.
Please that from time to time I am able to surf the internet when everything is set to auto. When it happens I get the deafult gateway set (and not blank) and the DHCP is enbale
dotan_shai said:
I did what you said , in VxIPConfig it said DHCP Disabled, and got the deafult gateway as 192.168.0.1 . I couldn't surf the internet.
the DHCP is enbale
Click to expand...
Click to collapse
did you give it an ip addresss and subnet mask ?
eg for ip
192.168.0.10
subnet
255.255.255.0
is your DHCP server on a router or is it like a PC with WiFi running Internet connection sharing
I did what you say , this is what VxIPConfig said:
adapter address : 00-09-2d-b4-91-43
IP address : 169.254.210.158 (which is what i set)
Subnet mask : 255.255.255.0
Deafult gateway : 192.168.0.1 (which is what i set)
DHCP server : 192.168.0.1
Primary WINS : empty
Secondary WINS : empty
Lease obtained : DHCP Disabled
Lease expaired : DHCP Disabled
still can not surf the internet , what is wrong.
dotan_shai said:
I did what you say , this is what VxIPConfig said:
adapter address : 00-09-2d-b4-91-43
IP address : 169.254.210.158 (which is what i set)
Subnet mask : 255.255.255.0
Deafult gateway : 192.168.0.1 (which is what i set)
DHCP server : 192.168.0.1
Primary WINS : empty
Secondary WINS : empty
Lease obtained : DHCP Disabled
Lease expaired : DHCP Disabled
still can not surf the internet , what is wrong.
Click to expand...
Click to collapse
where did you get 169.254.210.158 from?
try 192.168.0.100
as i dont think you will have anything on that ip
with a 192.168.0.1 gateway and subnet mask of 255.255.255.0
your ip needs to be within 192.168.0.* range ( * = 1 to 255)
yeah a class c ip range is what one should use in ones internal lan
192.168.0.0 – 192.168.255.255
http://en.wikipedia.org/wiki/Private_network
Dear frinds,
Thanks a lot for your help , but still no change. This is what i got from VxIPConfig :
adapter address : 00-09-2d-b4-91-43
IP address : 192.168.0.100 (which is what i set)
Subnet mask : 255.255.255.0
Deafult gateway : 192.168.0.1 (which is what i set)
DHCP server : 192.168.0.1
Primary WINS : empty
Secondary WINS : empty
Lease obtained : DHCP Disabled
Lease expaired : DHCP Disabled
The previous IP adress was the one that was set automatically before i changed it manulaly.
Still no surfing the internet. you said before :
might be worth looking to why your DHCP server
Click to expand...
Click to collapse
I'm not using a router it is
PC with WiFi running Internet connection sharing
Click to expand...
Click to collapse
the USB to Wifi adapter is configured as Ad-Hock.
dotan_shai said:
Dear frinds,
Thanks a lot for your help , but still no change. This is what i got from VxIPConfig :
adapter address : 00-09-2d-b4-91-43
IP address : 192.168.0.100 (which is what i set)
Subnet mask : 255.255.255.0
Deafult gateway : 192.168.0.1 (which is what i set)
DHCP server : 192.168.0.1
Primary WINS : empty
Secondary WINS : empty
Lease obtained : DHCP Disabled
Lease expaired : DHCP Disabled
The previous IP adress was the one that was set automatically before i changed it manulaly.
Still no surfing the internet. you said before :
I'm not using a router it isthe USB to Wifi adapter is configured as Ad-Hock.
Click to expand...
Click to collapse
I see now, the ip 169.254.210.158 would be when the ppc couldn't get an IP from the DHCP Server
just a thought
Have you input in some dns servers, should be on the next tab
these dns servers will do
dns 1: 4.2.2.1
dns 2: 4.2.2.2
how did you setup internet connection sharing on you pc ?
via network setup wizard ?
Network connections > Pick your internet connection > right click then properties > then click on the Advanced tab > then make sure the Allow other computers on the network to use this connection, tick box is checked
I added the DNS adresses settings in the PPC , still can not surf the internet.
how did you setup internet connection sharing on you pc ?
via network setup wizard ?
Click to expand...
Click to collapse
That's the way i set my internet connection sharing.
Network connections > Pick your internet connection > right click then properties > then click on the Advanced tab > then make sure the Allow other computers on the network to use this connection, tick box is checked
Click to expand...
Click to collapse
It is checked !! I remove the check in Allow other users to control or disable the shared Internet connection.
I've noticed that in success connection that allowing me to surf, the beacon icon in PPC is changing for 2 seconds to beacon without the circles and than return to its previous picture beacon with two circles. In a failed connection I always see the beacon with the two circles icon that never change.
Still no surfing is available. Any more ideas ?
SOLVED !!!
Thanks for the helpers. My problem is now solved. I've just read in D-Link site regarding configuring Static IP in here
After performing the recommended settings, everything is working always.
THIS THREAD CAN BE CLOSED
Glad its working
so did you need to setup a static ip for your pc, or did you use the guide and put the details in to your ppc ?
The static IP was set in the PC according to D-Link instructions . Hope this tread helped someone .
Here is the link to D-link , static IP settings :
http://support.dlink.com/faq/view.asp?prod_id=2594&question=DWL-G122
PPC :
add gprs connection and after->
1.: regedit ->HKLM\comm\connMgr\Providers\{7c4b7a38-5ff7-4bc1-80f6-5da7870bb1aa}\Connections\gprs internet/alvais on =1
2.: network adapters->My network card connects to "WORK"
2.1: tiacxwln compatible Wr.. Use specific IP address IP 192.168.2.1 ; mask255.255.255.0;gateway 192.168.2.1;Name servers DNS 192.168.2.1.
3.after soft recet
PC 192.168.2.2
mask 255.255.255.0
gateway 192.168.2.1
DNS provider gprs (if need)
add new wifi conn addhoc
All bad work!!!
see as sharing but not connect
try IPs 192.168.0.1 and 192.168.0.2
I have posted this at DARKYROM, i thought it might be useful here too.
Heres a quick "how to" get Cisco IOS VPN working with DARKYROM native vpn client
because of the limitations in android we cannot use group authentication, it does not work.however this how to will show how you to create an L2TP/IPSec tunnel from your Cisco @ work or home to your droid (Preferably darky rom) native client. I.E. settings > wireless & networking> vpn
there is only one prerequisite and that is that you have advandced ip services ios ( required for ipsec)
heres the cisco config additions, please change the stuff in the <CHANGE ME>.
aaa new-model
!
aaa authentication login default local
aaa authentication ppp default local
aaa authorization exec default local
!
user <USERNAME> password <PASSWORD>
!
vpdn enable
!
vpdn-group L2TP
! Default L2TP VPDN group
accept-dialin
protocol l2tp
virtual-template 1
no l2tp tunnel authentication
!
!
!
crypto isakmp policy 10
encr 3des
authentication pre-share
group 2
lifetime 3600
crypto isakmp key <KEY> address 0.0.0.0 0.0.0.0 no-xauth
crypto isakmp keepalive 3600
!
crypto ipsec transform-set ipnetconfig esp-3des esp-sha-hmac
mode transport
!
crypto dynamic-map ipnetconfig-map 10
set nat demux
set transform-set ipnetconfig
!
!
crypto map cisco 10 ipsec-isakmp dynamic ipnetconfig-map
!
interface FastEthernet 4 (This is the OUTSIDE interface, this may be different on your router)
ip address dhcp
duplex auto
speed auto
crypto map cisco (This is the line required to your outside interface)
!
interface Virtual-Template1
ip unnumbered FastEthernet 4 (This is the OUTSIDE interface, this may be different on your router)
peer default ip address pool poolipnetconfig
ppp encrypt mppe 40
ppp authentication ms-chap-v2
!
!
ip local pool poolipnetconfig 172.16.0.9 (change this to whatever range your lan is as this is the address that will be assigned to your droid)
!
end
DO NOT Just copy and paste this onto your router. you must edit it first and remove the comments and the brackets.
Please change the ip, username, passwords and keys to make this work.
then basically on your droid goto the vpn settings and create a L2TP/IPSec vpn. input a name a shared key and the ip address or dns name of your router (internet address).
save the config and try to connect, this will ask for the aaa username and password. enter this and then it should connect. wayhey!!!!!!!!!!!!!!!!!
Any chance SSL VPN can work?
hmmmm dunno i have not tried... maybe ill have a go
hvc123 said:
hmmmm dunno i have not tried... maybe ill have a go
Click to expand...
Click to collapse
I found a Cisco Anyconnect client on the market.
https://market.android.com/details?id=com.cisco.anyconnect.vpn.android&feature=search_result
Just need to acquire mobile licenses for the ASA...
This is what i get on CM12. Similar commands like 'ip route' show the same. No default gateway. But the internet connection works as the gateway is defined properly in the Android WiFi settings. But why doesn't it show up with the 'route' command?
Code:
localhost / # busybox route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 * 255.255.255.0 U 0 0 0 wlan0