Ubuntu 13.10上的自动VPN连接解决方​​案


0

我正在寻找一种解决方案,以便在我的Ubuntu 13.10中自动连接到VPN-Servers。它应该在启动时连接并在连接丢弃时重新连接。我尝试了几件事:

  • VPNAutoconnect sourceforge.net/projects/vpnautoconnect/但它不起作用,并且没有文档
  • Bash-Script就像我在这里找到的那​​样ubuntuforums.org/showthread.php?t=1756831

    #!/bin/sh
    while [ "true" ]
    do
    vpnck=$(nmcli con status uuid 2df5dab5-21da-66fa-927e-bd754cdf4656)
    if [ $vpnck = TorGuard.Germany.UDP ]; then
      sleep 20
    else 
      sleep 1s && nmcli con up uuid 2df5dab5-21da-66fa-927e-bd754cdf4656
    fi
    sleep 20
    done  

    但这开始每20秒重新连接一次我的VPN连接。对不起,我不知道bash脚本。

  • TorGuard有一个不错的小程序 - 下载。不幸的是,它不适合启动,更不幸的是它需要rootrights。
  • 我在askubuntu.com上找到了这个条目

但我试过的所有这些解决方案并不令人满意。有谁有个好主意,比如如何改进bash脚本?
提前致谢。

Answers:


0

好!我得到了...在Ubuntu 13.10 Saucy Salamander你现在可以进入网络管理器 - >编辑连接 - >编辑连接 - >常规。现在,您可以激活自动连接选项。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.