iPad Running OpenVPN as a Daemon on JB Ipad

Discussion in 'Jailbreaks and iOS Hacks' started by dirkdd, Mar 11, 2015.

  1. dirkdd macrumors newbie

    Joined:
    Feb 21, 2015
    #1
    Hey guys, I have an iPad Air 2 that is Jail-broken.

    I currently have OpenVPN installed with a shell version of openvpn:

    OpenVPN 2.3-alpha1 i686-apple-darwin10 [SSL (OpenSSL)] [LZO2] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110522-1 (2.2.0)] built on May 28 2012

    I am trying to set it up as a Launch Daemon so this it autoconnects to my OpenVPN server after a reboot. This needs to be super automated so that I can have the ipad mounted in a place where I am not near physically.

    I have created the following plist file at /Library/LaunchDaemons

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
    "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>org.openvpn</string>
    <key>OnDemand</key>
    <false/>
    <key>Program</key>
    <string>/usr/local/sbin/openvpn</string>
    <key>ProgramArguments</key>
    <array>
    <string>openvpn</string>
    <string>—-cd</string>
    <string>/var/mobile/Documents/Configurations/bigfoot.ovpn</string>
    <string>--config</string>
    <string>bigfoot.ovpn</string>
    <string>--auto-proxy</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>TimeOut</key>
    <integer>90</integer>
    <key>WorkingDirectory</key>
    <string>/etc/openvpn</string>
    </dict>
    </plist>

    Upon reboot the process does not seem to start and I dont see anything in the "dmesg" any direction to help me out would be great.

    I would use the OpenVPN GUI app but it requires me to toggle the connection manually.

    Thanks ;)
     
  2. lva macrumors member

    lva

    Joined:
    Nov 18, 2013
    Location:
    Germany

Share This Page