[Q] VPN Cisco connection with VPNC (IPSec): dead peer disconnected - Galaxy Tab Q&A, Help & Troubleshooting

Quoting the post
"OpenVPN / tun.ko / Binary Galaxy Tab"
1. Rooted device and installed busybox
2. copying the tun.ko from the german site to /modules after remounting to r/w.
3. Running those three commands from previous post in terminal
insmod /modules/tun.ko
ln -s /system/bin/busybox/system/xbins/bb/ route
ln -s /system/bin/busybox/system/xbins/bb/ ifconfig
4. Installing vpnc 0.99 and configuring connection
5. Connect
==> Connection would work (green VPNC icon "VPN On" + VPN logo on SGT title bar) … then disconnect after 2 seconds with error log message : disconnect dead peer.
Second bad double effect: the password has been locked on server side after first trial (same result as when 5 invalid passwords are enterred).
How to prevent this "dead peer" disconnection ?
Any other solution to connect SGT to Cisco VPN is very welcome
Thks

are you sure your connection user id and password are correct? sounds like it is actually trying to connect 5 times.
I would think the cisco wouldnt lock otherwise.
Sent from my SCH-I800 using XDA App

Group/pwd & Usr/pwd are correct.
Connection is working well with iPad VPN.

i know its a late answer, but..
Vpnc sometimes need the extra option --dpd-idle 0 to stop disconnecting.

bitwit said:
i know its a late answer, but..
Vpnc sometimes need the extra option --dpd-idle 0 to stop disconnecting.
Click to expand...
Click to collapse
Where do I put this in at?

Related

How to connect Kubuntu 9.10 to GPRS Internet

I finally connected my Touch Pro2 to my netbook running Kubuntu 9.10 via Bluetooth for Internet access and thought I would share. (for the two other guys running a Windows phone with a Linux machine, right?) There is a lot of stuff on the net, tried half of it, and eventually just figured it out on my own. Maybe I am just crap with Google. I don't see any reason why this wouldn't work with any other phone with the same Bluetooth stack as the TP2. (HD, etc?)
LAPTOP
Get KBluetooth running if it's not already (bluetooth tray icon)
Right click KBluetooth for the menu, you want Settings -> Bluetooth Adapters
Set the mode to discoverable. If you want to change the name, do so, but then exit and restart KBluetooth. (otherwise the settings don't seem to take effect)
PHONE
Turn Bluetooth on if it's not already, then go into the Bluetooth menus via Comm Manager.
Tap "Add a device" and add the laptop. Enter a PIN.
LAPTOP
Enter the PIN when the box pops up.
Set the discovery mode back to hidden.
Now go into the KBluetooth device manager and set the phone to trusted. (this probably isn't necessary but I did it)
(this part onwards you need to do every time you connect)
PHONE
Go to the 2nd tab in the Bluetooth menus (the list of devices) and tap the laptop. You should now see Bluetooth Networking. Give this a tap.
After a few seconds you will get a drop down box. Set this to "Share Internet connection" then press Continue at the bottom left.
Now you select the GPRS connection you want to use. Again press Continue when done.
You should get a yellow notification at the bottom of the screen saying connecting, then after a few seconds a screen with the laptop's name and MAC address.
LAPTOP
Now open a Konsole and run this command:
Code:
sudo dhclient bnep0
If it worked you will see something like this at the end:
Code:
bound to 192.168.0.102 -- renewal in 120808 seconds.
You should now be connected to the Internet
you can also use wi-fi router to connect.
Code:
iwconfig wlan0 mode ad-hoc essid wificonnection key 1234567890
ifconfig wlan0 up
dhcpcd wlan0
wlan0 is your computers wifi interface your might be different
mode ad-hoc turns the connection into ad-hoc mode
essid wificonnection - is the network name in this example wificonnection
key is whatever 10 digit wep key you assign the connection 1234567890 in this example
*the dhcpcd wlan0 line in the scrip assumes you are using dhcpcd change it to dhclient if you are using dhclient instead.
the above script should work with most distros of linux. make sure wifi-router is running before you run the script on your computer.
to connect using usb tethering you can use
Code:
modprobe cdc_ether
modprobe rndis_host
ifconfig eth1 up
dhcpcd eth1
make sure rndis_host cdc_ether and all required packages and dependencies are installed. i had it set up a long time ago dont remember the the exact packages needed to make this work. again your network interface might differ (eth1,eth2,ethX) and dhclient if your using dhclient instead of dhcpcd.
These are the two scripts i use to tether to my netbook running Arch Linux and Gentoo but should work for most linux distros.

[Q] Galaxy S I9000 Wifi error

My Galaxy S has been connecting fine to my home network lately and the connection has always been strong as well. Since late last night though it won't connect. It says connecting > obtaining i.p > connected > disconnected and continuously repeats this cycle. My mates Samsung Europa can connect and so can my p.c and laptop, so it is obviously an issue with my phone. I downloaded WeFi and that has the same problem. Does anyone have any ideas?
Sorry my English, flash a kernel
Which kernal and why?
I had this EXACT problem just earlier when I upgraded to 2.2.
My phone always used to connect fine until the upgrade, and afterwards i got the same error.
Anyway what you need to do is to find all your router settings (you need a computer for this);
click start > run > cmd
in the command prompt type ipconfig and gather the following data:
ip adress: (your ip will be the same as your router's ip apart from the last set of digits (just make sure to make it a digit not already being used otherwise it will clash). 5-10 is a good option.)
gateway: (same as found in cmd)
net/subnet mask: (same as found in cmd)
Depending on your router you may also need a primary and secondary DNS: (generally the router ip)
With the following information gathered, on your phone click aps> settings> wireless and network> wifi settings> and then hold the left soft key to reveal the advanced tab. In the advanced tab click static ip and enter all the information about your router you gathered earlier.
After entering the router settings click and hold the left key again and press save.
Hopefully afterwards your phone will connect automatically as mine did, or just click your router SSID agian and it should connect.
I had the same issue after I upgraded to froyo. The way I fixed was actually just unplugging the router, unplug the modem, wait 10 seconds.... reset everything.
Ever since then 0 problems.
Thanks Johno.
johno1994 said:
I had this EXACT problem just earlier when I upgraded to 2.2.
My phone always used to connect fine until the upgrade, and afterwards i got the same error.
Anyway what you need to do is to find all your router settings (you need a computer for this);
click start > run > cmd
in the command prompt type ipconfig and gather the following data:
ip adress: (your ip will be the same as your router's ip apart from the last set of digits (just make sure to make it a digit not already being used otherwise it will clash). 5-10 is a good option.)
gateway: (same as found in cmd)
net/subnet mask: (same as found in cmd)
Depending on your router you may also need a primary and secondary DNS: (generally the router ip)
With the following information gathered, on your phone click aps> settings> wireless and network> wifi settings> and then hold the left soft key to reveal the advanced tab. In the advanced tab click static ip and enter all the information about your router you gathered earlier.
After entering the router settings click and hold the left key again and press save.
Hopefully afterwards your phone will connect automatically as mine did, or just click your router SSID agian and it should connect.
Click to expand...
Click to collapse
Amazing mate, i really f.ing appreciate it. I've flashed so many roms, so many wifi drivers, deleted dhcp_list so many times, created so many tasker profiles and tried so many apps just to stop wifi error and disconnecting and mate, your method has fixed it!
If we were in prison together, id protect you in the showers!
boarder.2k9 said:
If we were in prison together, id protect you in the showers!
Click to expand...
Click to collapse
lolz... proper fix -> http://forum.xda-developers.com/showpost.php?p=13235272&postcount=19

[Script] usbnet.sh: Wired USB networking ("reverse tether")

Attached is a somewhat-crude shell script that enables wired USB networking ("reverse tethering") on the Epic. Sadly it's not a standalone app, and it doesn't have perfect application compatiblity either. However, some folks may find it useful in order to get Internet where neither cellular nor WiFi service is available.
Requirements:
Rooted Epic with busybox (one-click root satisfies this).
Host PC with Internet sharing capabilities.
ConnectBot or another terminal emulator.
The attached "usbnet.sh" script.
Initial setup:
First, setup the host PC for Internet sharing on the USB network interface:
On Windows, you'll need to install the Samsung USB drivers (if you already did for the one-click root or Wired Tether, you should be OK). The remaining part of the ICS setup on Windows has to be done the first time the script is ran on the phone, so it's covered below.
On Linux, you'll need to setup netfilter (for NAT), install & configure dnsmasq or another DHCP server, and enable IP forwarding. Details on those are outside the scope of this thread, but it's essentially the same as setting up network sharing for an Ethernet connection.
On the phone, install ConnectBot or an alternate terminal emulator. Unfortunately USB ADB and RNDIS can't be used simultaneously, so the script can't be run via "adb shell".
Next, copy usbnet.sh to the phone. It can go anywhere, although it can't be run from /sdcard directly. Good places are /data/local or /data/local/tmp. For example:
Code:
adb push usbnet.sh /data/local
adb shell chmod 755 /data/local/usbnet.sh
If you're using ConnectBot (recommended), create a "host" for the usbnet script. Enter "usbnet" in the bottom-of-the-screen input box, select "local" from the drop-down menu to the left, and press enter. At the "$" prompt, enter "exit", and close the session. Now "usbnet" will appear in the host list, long-press it, and select "Edit host". Select "Post-login automation" and enter:
Code:
exec su -c /data/local/usbnet.sh
substituting the appropriate path for "/data/local/usbnet.sh". Also, make sure to press Return to create a newline, otherwise the script won't execute automatically. Alternatively, if you're not using ConnectBot, you can run the script manually after su-ing to root.
Directions for use:
Before using, make sure "USB debugging" is disabled on the phone (unless you're running a patched custom kernel). Also make sure the USB cable is disconnected.
Next, disable WiFi, 4G, and the cellular data connection (long-press power and select either "Data network mode", which lets you still receive calls and SMSes, or "Airplane mode", which doesn't) as these interfere with the wired connection.
Open ConnectBot, and select the "usbnet" entry. Press "Allow" at the su prompt if it comes up. Now, connect the USB cable to the host PC, and select "Charging" from the "Select USB mode" menu.
If the host PC is running Windows, and this is the first time using the wired connection, you'll have to finish the inital setup. On Windows 7, go to Control Panel -> Network and Internet -> Network and Sharing Center -> Change adapter settings. Once the USB cable is plugged in a new "Local Area Connection" should appear (e.g, "Local Area Connection 3") for the phone. You can unplug and replug the USB cable to verify which is the phone's connection, it will disappear and reappear.
Now, right-click the other network adapter that's providing the Internet connection for the host PC. It's likely "Local Area Connection" for Ethernet, and "Wireless Network Connection" if wireless. Select Properties, and click on the Sharing tab. Check "Allow other network users to connect through this computer's Internet connection", and if it asks to select a "Home networking connection" (which it should if you have three or more adapters, including the phone, in total), select the phone's adapter (e.g., "Local Area Connection 3"). Then click OK.
Note that, on Windows, to setup sharing the phone's network adapter must be present, which is why it must be done after first running the usbnet script. The sharing setting does persist across disconnects, so the previous setup only needs to be done once unless sharing is manually disabled.
No additional setup should be required if the host PC is running Linux, although you may have to manually assign an IP address to the USB network interface (host side) and manually start dnsmasq/dhpd depending on your configuration.
At this point, the phone should report "netcfg usb0 dhcp ... wait ..." while it attempts to acquire an IP address from the host PC. On Windows, this may take a minute or longer. If for some reason it's unable to get an IP address (may happen during first time setup on Windows) it will report "action 'dhcp' failed (Timer expired)". If it does, unplug the USB cable, select the "usbnet" entry again, and replug the USB cable.
Once the phone acquires an IP address, the usbnet script will print out a table of network adapters and IP addresses (one of which includes the address for usb0) and exit. The connection should be working now.
To disconnect, run "usbnet" from ConnectBot again, which will bring down the connection, reset the USB mode, and exit. Now you can unplug the USB cable, and reenable the cellular ("Data network mode"), WiFi, or 4G connections.
Known issues:
Since the usbnet script operates below the Android framework, it can't tie into the connectivity service and notify waiters than a network connection is available. This doesn't matter for most apps, and they should work just fine. Others won't "believe" a network connection is available and refuse to work. In testing I found that ConnectBot, Maps, Market, and Opera Mobile all work, but that the Amazon Appstore does not. I'm uncertain, but I think sync services (e.g., Calendar) may not work either. To my knowledge, there's no obvious place to tie into the framework to increase application compatibility. Hopefully this is still useful for most of the purposes of folks wanting wired connectivity.
The Linux rndis_host driver is rather finicky, even more so then when using Wired Tether. In testing, I found between half to 2/3rds of connection attempts to a Linux host would fail, but once connected, it seems to work fine.
Again, on Windows, getting an IP address is very slow, I'm not sure if anything can be done about that.
Also, I've only been able to test on EC05 (Froyo). I'm unlikely to be able to test this on Gingerbread before the official release hits.
Mirror link (does not require forum login):
usbnet.sh
Wait, nobody has posted anything here yet? I recall a couple of people looking for this so it gets a....BUMP..
Sent from my SPH-D700 using XDA Premium App
i have followed your method step by step...
but
when i connect usb cable to the host pc, select charging... and nothing happened
there is no new "Local Area Connection" appeared in Network and Sharing Center -> Change adapter settings....and so connect bot cannot acquired an IP addres.
any solution?
many thanks before
taufancandra said:
there is no new "Local Area Connection" appeared in Network and Sharing Center
Click to expand...
Click to collapse
Does Wired Tether work, or have you tried using it before?
When you connect the USB cable, what USB devices show up in Device Manager on the host?
Whether this works or no I'm glad you atleast tried.
Sent from my SPH-D700 using XDA Premium App
This seems to be just what I was looking for. Going to try it soon and report back.
Results:
Everything goes according to instructions (taking into account WinXP ILO Win7) until-
I get the LAC3.
Per Windows help menu instructions I run the Network set-up wizard to configure for ICS.
ERROR occurs during configuration, suggests to set up network manually.
Connectbot times out with a fail.
Ideas?

Tethering on a 3g GSM network fails

I'm using an XT862 on Telstra 850MHz 3G here in sunny Oz and can't get the tethering to work.
I've tried it with and without root and I'm now on the leaked update and still no joy.
The data connection is fine and I can browse on the phone directly both before starting the hotspot and after. My laptop or iPad both connect and get DHCP addresses but can't get any data.
Has anyone else got this working?
It works fine here in Germany, at least for me. I'm using stock tethering.
I have no idea why it doesn't work for you. Does DNS and ping work?
What output do you have with "ping google.de"?
Dns works using the phone as the dns server, any external dns server fails. Ping and http traffic all fail. When I start the connection, the 3G connection drops and reconnects. Skype disconnects then reconnects on the phone.
It's got me stumped. The sim worked in my Sony xperia play before it was in this phone.
So I got you right, from your laptop, DNS works but no ping?
Is your phone rooted? If yes, open a shell (with Connectbot or so) and type "iptables -t nat --list". Do you see the line with MASQUERADE?
Thats right. Dns works IF I use the phone as dns server. Ping never works from the laptop. Yes the phone is rooted.
Listing the Nat tables, the three are all blank. Pre route, output and post route all have no rules.
my d3 on TPG (Optus network) tethers fine
were you able to tether with your xperia play? it could possibly be telstra blocking tethering
NaVVy said:
Thats right. Dns works IF I use the phone as dns server. Ping never works from the laptop. Yes the phone is rooted.
Listing the Nat tables, the three are all blank. Pre route, output and post route all have no rules.
Click to expand...
Click to collapse
I think this is at least one reason it doesnt work. Can you try this command (after establishing tethering):
iptables -t nat -I POSTROUTING -o ppp0 -j MASQUERADE
Before the d3, I could tether on my xperia and before that on my atrix.
It seems like the d3 isn't loading the Nat/routing tables properly. I haven't seen any network traffic return from the phone to the laptop except for dns from the phone. Even dns from other servers doesn't get through.
rweb said:
I think this is at least one reason it doesnt work. Can you try this command (after establishing tethering):
iptables -t nat -I POSTROUTING -o ppp0 -j MASQUERADE
Click to expand...
Click to collapse
This seems to have worked. Web browsing from my iPad works. I'll check more tomorrow from my laptop but I wonder why it wasn't loading the correct tables itself?
NaVVy said:
I'll check more tomorrow from my laptop but I wonder why it wasn't loading the correct tables itself?
Click to expand...
Click to collapse
I have no idea. Most likely some bug, but I don't know why you are running into it while I don't.
I wonder if the iptables line disappears when you stop tethering (mine does). I don't think it hurts if not. If yes you have to re-enter the iptables command after each tethering. You could write a little script and create a widget for it with the App "Script Manager". It's at least a workaround.

[Q] Help with reverse tethering

Hey there,
I would like to use reverse tethering over my usb cable.
Before I start I'll let you know my setup:
Windows 7 x64 machine, sdk (inc. adb) installed but adb seems to make problems
i9000 running infinitum 2.1 with devil2 v0.72
These are the steps I used:
-connect the phone
-activate usb-tethering on the phone
-PC: change the ip on the new network adapter to 192.168.2.1
-PC: set my local area connection to share my internet connection with the new network adapter
-PC: add http service to the shared internet services
-open terminal on the phone
-executing the following commands:
Code:
ifconfig rndis0 192.168.2.2 netmask 255.255.255.0 up
route add default gw 192.168.2.1 dev rndis0
iptables -F
iptables -F -t nat
setprop net.dns1 78.42.43.62
setprop "net.gprs.http-proxy" ""
Funny part is: I can't ping a domain like google.de also no app is able to access the internet... BUT I can ping 173.194.35.151 (google.de ip afaik?!).
So I DO have a connection... somehow (tested with WiFi off and mobile data off) but no app has access and it can't resolve any domain names?!
78.42.43.62 is the correct ip for my dns provider!
Here are two screenshots proving what I'm talking about: Screen1 Screen2
So what can I do? Can some1 help me out here?
EDIT: I just wanted to point out that normal tethering IS WORKING, I do have a stable connection to my phone (even when transfering data), drivers are working!
Read the following post.. maybe it'll help you
Reverse Tethering

Categories

Resources