Page 1 of 1

connection problem over GPRS

Posted: Fri Feb 25, 2011 4:05 am
by fslittlenew
Hello everyone. Thanks for your help in advance.
Here is my case:

Server: openwrt-embedded router, openwrt verstion: Backfire 10.03.1-rc4, openvpn server installed.
Client: Samsung cell phone I5700 running Android 2.2, installed openvpn-setting.

I use tap and tls-atuth mode, connection setup fine. Android connect the openvpn server over GRPS. Connection work fine once the established. But after 20-40 seconds, the server and client can not ping each other. Afte 1 min, android reconnect the openvpn server automately. Then reconnection come again and again, never go to a end.

Why this happen? Is it related to GPRS, as i did not test over wifi yet.

Here are logs of server:

Re: connection problem over GPRS

Posted: Fri Feb 25, 2011 10:44 am
by janjust
are you using

Code: Select all

  redirect-gateway 
at all? If so , the *always* add the 'def1' parameter ; sometimes it is also useful to add an explicit route to the openvpn server prior to starting the VPN connection. GPRS connections are notoriously bad in defining a default gateway .

Re: connection problem over GPRS

Posted: Mon Feb 28, 2011 7:17 am
by fslittlenew
Thanks, janjust, it does help. connection become more stable with 'redirect-gateway'.