Welcome to GuizmOVPN forum !

Please use the "Login" button on the left side to Login/Register.

The registration confirmation email is often detected as spam and deleted, so if you don't receive it, please contact support@guizmovpn.com.

Simple Static Key Setup

Simple Static Key Setup

I am having an issue with a simple static key with DD-WRT OpenVPN. With my configuration, it works remotely if I am using a Windows OpenVPN Client. IP Address and DHCP addresses pull across with no problems. However, via the iPhone is a diffrent story. According to Network Info: VPN status is on. Subnet mask is 255.255.255.255 and Traffic redirected is set to no. IP Address and Gateway is blank.

This is my client setup:

remote XXXX.dyndns.org
   port 1194
   dev tap
   secret static.key
   proto udp
   comp-lzo


This is my Server Setup (startup script - DD-WRT)

openvpn --mktun --dev tap0
   brctl addif br0 tap0
   ifconfig tap0 0.0.0.0 promisc up
   echo "
-----BEGIN OpenVPN Static key V1-----
My static key is here
-----END OpenVPN Static key V1-----
   " > /tmp/static.key
   ln -s /usr/sbin/openvpn /tmp/myvpn
   /tmp/myvpn --dev tap0 --secret /tmp/static.key --comp-lzo --port 1194 --proto udp --verb 3 --daemon

LOG:

Running openvpn --cd /var/mobile/Documents/Configurations/UltraVPN 3 10 --config "client.ovpn"

Sat Apr 23 13:49:06 2011 OpenVPN 2.1.4_GuizmOVPN_1.0.8 arm-apple-darwin [SSL] [LZO2] built on Apr 4 2011
Sat Apr 23 13:49:06 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Apr 23 13:49:06 2011 WARNING: file 'static.key' is group or others accessible
Sat Apr 23 13:49:06 2011 LZO compression initialized
Sat Apr 23 13:49:08 2011 Tapemu : Starting TAP emulation.
Sat Apr 23 13:49:08 2011 Tapemu : Local MAC address : 0A:00:20:27:26:5F
Sat Apr 23 13:49:08 2011 TUN/TAP device tunemu:/ppp0 opened
d.add: too few arguments
Sat Apr 23 13:49:09 2011 UDPv4 link local (bound): [undef]:1194
Sat Apr 23 13:49:09 2011 UDPv4 link remote: xxx.xx.xx.xx:1194
Sat Apr 23 13:49:09 2011 Peer Connection Initiated with xxx.xx.xx.xx:1194
Sat Apr 23 13:49:10 2011 Initialization Sequence Completed

This setup works just fine when I am tethered to my iphone with a Windows OpenVPN client. So, I am not sure why the same config file will not work on the iphone. I tried to toggle the DNS configurations. However, none of those made a difference.

rmervine
useravatar
Offline
1 Posts
User info in posts
Administrator has disabled public posting

Re: Simple Static Key Setup

Hi,

Your server is configured as DHCP gateway, which is not supported by the app yet, only OpenVPN servers configured in DHCP server are working.

To make it work, you have to set on the client side a static IP configuration by adding in your client configuration file :
   ifconfig <VPN_IP> <SUBNET MASK>

If you want to set all trafic through the VPN set the option "redirect-gateway def1", the gateway by using the "route-gateway <ip gateway>", and the DNS by using "dhcp-option DNS <DNS server IP>".

Regards,

Guizmo

Guizmo
useravatar
Offline
707 Posts
User info in posts
Administrator has disabled public posting

Re: Simple Static Key Setup

TGabriele
useravatar
Offline
1 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
411
Total Polls:
0
Total Posts:
1638
Dormant:
User Info:
 
Total Users:
14216
Newest User:
uheboku
Members Online:
0
Guests Online:
237

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked