how to creat an automatic VPN in OpenSuse 13.1?

hi
i use OpenSuse 13.1 and need to a automatic VPN connection, my VPN use from PPTP, and Getway address is our university Domain.
thank you

Are you using Network Manager? I’ve seen a couple of similar approaches using scripts to check that a network interface is active and then activate the VPN connection accordingly. If your comfortable working with bash scripts then this may suit your needs. (I manually connect, since I don’t always need my PPTP VPN.)

  1. A script that starts when the DE starts. You’ll need to edit it to suit:
    http://www.gabsoftware.com/tips/automatically-reconnect-to-your-vpn-on-linux/
    Auto reconnect to OpenVPN via NetworkManager · GitHub

  2. Using a script located in /etc/NetworkManager/dispatcher.d/

This ArchLinux wiki page will probably be enough to get you sorted
https://wiki.archlinux.org/index.php/NetworkManager#Use_dispatcher_to_connect_to_a_VPN_after_a_network-connection_is_established
and similarly
http://magazine.redhat.com/2008/07/22/networkmanager-secret-weapon-for-the-linux-road-warrior/

Hope this helps.