ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

Linux VPS 支持
回复
zhou380491943
帖子: 62
注册时间: 2015-01-24 19:17
系统: ubuntu kylin 14.04

ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#1

帖子 zhou380491943 » 2015-03-02 12:49

我用购买的VPN客户端在windows下登录,l2tp链接,自动建立了VPN设置,查看里面的ipsec选项 选择了将证书用于身份验证 验证服务器证书的“名称”和“用法”属:
sss.jpg
,而ubuntu14.04的VPN ipsec选项是
sss2.jpg
,那么,我该如何照搬windows下的l2tp设置到ubuntu呢?

谢谢指点! :em06
rosynirvana
帖子: 893
注册时间: 2011-02-14 17:46

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#2

帖子 rosynirvana » 2015-03-02 14:17

1. 截图里面没选择证书,所以你买的应该是无密钥的L2TP
2. NetworkManager默认不支持L2TP,你另外装了什么?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#3

帖子 poloshiao » 2015-03-02 16:36

http://wiki.l2tpipsecvpn.tuxfamily.org/ ... =Main_Page
L2TP over IPsec VPN Manager User Guide
zhou380491943
帖子: 62
注册时间: 2015-01-24 19:17
系统: ubuntu kylin 14.04

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#4

帖子 zhou380491943 » 2015-03-03 18:06

那么下面这个该如何设置成和windows一样的状态呢?谢谢。
xx.jpg
sss.jpg

附加一个问题:sudo apt-get update 的时候有些链接是错误 或者忽略 还有404的链接 我想对这些东西整理下,那么如何去掉错误的和404错误的链接呢?谢谢 :em06
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#5

帖子 poloshiao » 2015-03-03 18:34

附加一个问题:sudo apt-get update 的时候有些链接是错误 或者忽略 还有404的链接 我想对这些东西整理下,那么如何去掉错误的和404错误的链接呢?
完整複製 貼上來
zhou380491943
帖子: 62
注册时间: 2015-01-24 19:17
系统: ubuntu kylin 14.04

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#6

帖子 zhou380491943 » 2015-03-04 13:02

zhouhao@zhouhao-Dell-System-Inspiron-N4110:~$ sudo apt-get update
忽略 http://ubuntu.uhost.hk trusty InRelease
忽略 http://debian.ustc.edu.cn trusty InRelease
忽略 http://ubuntu.uhost.hk trusty-updates InRelease
忽略 http://debian.ustc.edu.cn trusty-backports InRelease
忽略 http://debian.ustc.edu.cn trusty-proposed InRelease
忽略 http://debian.ustc.edu.cn trusty-security InRelease
忽略 http://ubuntu.uhost.hk trusty-security InRelease
命中 http://ubuntu.uhost.hk trusty Release.gpg
忽略 http://debian.ustc.edu.cn trusty-updates InRelease
命中 http://debian.ustc.edu.cn trusty Release.gpg
忽略 http://archive.ubuntukylin.com:10006 trusty InRelease
命中 http://debian.ustc.edu.cn trusty-backports Release.gpg
命中 http://ubuntu.uhost.hk trusty-updates Release.gpg
命中 http://debian.ustc.edu.cn trusty-proposed Release.gpg
命中 http://debian.ustc.edu.cn trusty-security Release.gpg
命中 http://ubuntu.uhost.hk trusty-security Release.gpg
命中 http://archive.ubuntukylin.com:10006 trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-updates Release.gpg
命中 http://ubuntu.uhost.hk trusty Release
命中 http://debian.ustc.edu.cn trusty Release
命中 http://ubuntu.uhost.hk trusty-updates Release
命中 http://debian.ustc.edu.cn trusty-backports Release
命中 http://debian.ustc.edu.cn trusty-proposed Release
命中 http://ubuntu.uhost.hk trusty-security Release
命中 http://archive.ubuntukylin.com:10006 trusty Release
命中 http://debian.ustc.edu.cn trusty-security Release
忽略 http://archive.ubuntu.com packagebase InRelease
命中 http://debian.ustc.edu.cn trusty-updates Release
命中 http://ubuntu.uhost.hk trusty/multiverse Sources
命中 http://debian.ustc.edu.cn trusty/main amd64 Packages
命中 http://ubuntu.uhost.hk trusty/restricted Sources
命中 http://debian.ustc.edu.cn trusty/multiverse amd64 Packages
命中 http://ubuntu.uhost.hk trusty/universe Sources
命中 http://debian.ustc.edu.cn trusty/restricted amd64 Packages
命中 http://archive.ubuntukylin.com:10006 trusty/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty/main Sources
命中 http://debian.ustc.edu.cn trusty/main i386 Packages
忽略 http://archive.canonical.com trusty InRelease
命中 http://ubuntu.uhost.hk trusty/restricted amd64 Packages
命中 http://archive.ubuntukylin.com:10006 trusty/main i386 Packages
命中 http://debian.ustc.edu.cn trusty/multiverse i386 Packages
忽略 http://archive.ubuntu.com packagebase Release.gpg
命中 http://ubuntu.uhost.hk trusty/universe amd64 Packages
命中 http://debian.ustc.edu.cn trusty/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty/universe i386 Packages
命中 http://ubuntu.uhost.hk trusty/main amd64 Packages
忽略 http://ppa.launchpad.net trusty InRelease
命中 http://debian.ustc.edu.cn trusty/main Translation-en
忽略 http://extras.ubuntu.com trusty InRelease
命中 http://ubuntu.uhost.hk trusty/multiverse amd64 Packages
命中 http://debian.ustc.edu.cn trusty/main Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty/multiverse Translation-en
命中 http://debian.ustc.edu.cn trusty/multiverse Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty/universe i386 Packages
命中 http://archive.canonical.com trusty Release.gpg
忽略 http://archive.ubuntu.com packagebase Release
命中 http://ubuntu.uhost.hk trusty/main i386 Packages
命中 http://debian.ustc.edu.cn trusty/restricted Translation-en
命中 http://ubuntu.uhost.hk trusty/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty/restricted Translation-zh_CN
忽略 http://archive.ubuntukylin.com:10006 trusty/main Translation-en
命中 http://debian.ustc.edu.cn trusty/universe Translation-en
命中 http://debian.ustc.edu.cn trusty/universe Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty/main Translation-en
命中 http://debian.ustc.edu.cn trusty-backports/main Sources
命中 http://ubuntu.uhost.hk trusty/main Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-backports/multiverse Sources
命中 http://extras.ubuntu.com trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-backports/restricted Sources
忽略 http://ppa.launchpad.net trusty InRelease
命中 http://archive.canonical.com trusty Release
命中 http://debian.ustc.edu.cn trusty-backports/universe Sources
命中 http://ubuntu.uhost.hk trusty/multiverse Translation-en
命中 http://ubuntu.uhost.hk trusty/multiverse Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-backports/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-backports/multiverse amd64 Packages
命中 http://ubuntu.uhost.hk trusty/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-backports/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-backports/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty/restricted Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-backports/main i386 Packages
命中 http://debian.ustc.edu.cn trusty-backports/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-backports/restricted i386 Packages
命中 http://ubuntu.uhost.hk trusty/universe Translation-en
命中 http://archive.canonical.com trusty/partner Sources
命中 http://debian.ustc.edu.cn trusty-backports/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-backports/main Translation-en
命中 http://ubuntu.uhost.hk trusty/universe Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-backports/multiverse Translation-en
命中 http://extras.ubuntu.com trusty Release
忽略 http://ppa.launchpad.net trusty InRelease
命中 http://ubuntu.uhost.hk trusty-updates/multiverse Sources
命中 http://debian.ustc.edu.cn trusty-backports/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-backports/universe Translation-en
命中 http://ubuntu.uhost.hk trusty-updates/restricted Sources
命中 http://debian.ustc.edu.cn trusty-proposed/main Sources
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse Sources
命中 http://ubuntu.uhost.hk trusty-updates/universe Sources
命中 http://debian.ustc.edu.cn trusty-proposed/restricted Sources
命中 http://ubuntu.uhost.hk trusty-updates/main Sources
命中 http://archive.canonical.com trusty/partner amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/universe Sources
命中 http://debian.ustc.edu.cn trusty-proposed/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse amd64 Packages
命中 http://extras.ubuntu.com trusty/main Sources
忽略 http://ppa.launchpad.net trusty InRelease
命中 http://ubuntu.uhost.hk trusty-updates/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty-updates/universe amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/main i386 Packages
命中 http://ubuntu.uhost.hk trusty-updates/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/restricted i386 Packages
命中 http://archive.canonical.com trusty/partner i386 Packages
命中 http://ubuntu.uhost.hk trusty-updates/multiverse amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/main Translation-en
命中 http://ubuntu.uhost.hk trusty-updates/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/main Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse Translation-en
命中 http://ubuntu.uhost.hk trusty-updates/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty-updates/main i386 Packages
命中 http://extras.ubuntu.com trusty/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-proposed/restricted Translation-zh_CN
命中 http://ppa.launchpad.net trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-proposed/universe Translation-en
命中 http://ubuntu.uhost.hk trusty-updates/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/universe Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty-updates/main Translation-en
命中 http://debian.ustc.edu.cn trusty-security/main Sources
命中 http://debian.ustc.edu.cn trusty-security/multiverse Sources
命中 http://ubuntu.uhost.hk trusty-updates/multiverse Translation-en
命中 http://debian.ustc.edu.cn trusty-security/restricted Sources
命中 http://ubuntu.uhost.hk trusty-updates/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-security/universe Sources
命中 http://ubuntu.uhost.hk trusty-updates/universe Translation-en
命中 http://debian.ustc.edu.cn trusty-security/main amd64 Packages
命中 http://extras.ubuntu.com trusty/main i386 Packages
命中 http://debian.ustc.edu.cn trusty-security/multiverse amd64 Packages
命中 http://ubuntu.uhost.hk trusty-security/multiverse Sources
命中 http://debian.ustc.edu.cn trusty-security/restricted amd64 Packages
命中 http://ppa.launchpad.net trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-security/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty-security/restricted Sources
命中 http://debian.ustc.edu.cn trusty-security/main i386 Packages
命中 http://debian.ustc.edu.cn trusty-security/multiverse i386 Packages
命中 http://ubuntu.uhost.hk trusty-security/universe Sources
命中 http://debian.ustc.edu.cn trusty-security/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty-security/universe i386 Packages
命中 http://ubuntu.uhost.hk trusty-security/main Sources
命中 http://debian.ustc.edu.cn trusty-security/main Translation-en
命中 http://debian.ustc.edu.cn trusty-security/multiverse Translation-en
命中 http://debian.ustc.edu.cn trusty-security/restricted Translation-en
命中 http://ubuntu.uhost.hk trusty-security/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-security/universe Translation-en
命中 http://ubuntu.uhost.hk trusty-security/universe amd64 Packages
命中 http://debian.ustc.edu.cn trusty-updates/main Sources
命中 http://debian.ustc.edu.cn trusty-updates/multiverse Sources
命中 http://ubuntu.uhost.hk trusty-security/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-updates/restricted Sources
命中 http://ppa.launchpad.net trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-updates/universe Sources
命中 http://ubuntu.uhost.hk trusty-security/multiverse amd64 Packages
命中 http://debian.ustc.edu.cn trusty-updates/main amd64 Packages
忽略 http://archive.canonical.com trusty/partner Translation-en
命中 http://ubuntu.uhost.hk trusty-security/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/multiverse amd64 Packages
命中 http://ubuntu.uhost.hk trusty-security/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-updates/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty-security/main i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/main i386 Packages
命中 http://ubuntu.uhost.hk trusty-security/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/restricted i386 Packages
命中 http://ubuntu.uhost.hk trusty-security/main Translation-en
命中 http://debian.ustc.edu.cn trusty-updates/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/main Translation-en
命中 http://ubuntu.uhost.hk trusty-security/multiverse Translation-en
忽略 http://ppa.launchpad.net trusty Release.gpg
命中 http://ubuntu.uhost.hk trusty-security/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-updates/multiverse Translation-en
命中 http://debian.ustc.edu.cn trusty-updates/restricted Translation-en
命中 http://ubuntu.uhost.hk trusty-security/universe Translation-en
命中 http://debian.ustc.edu.cn trusty-updates/universe Translation-en
命中 http://ppa.launchpad.net trusty Release
命中 http://ppa.launchpad.net trusty Release
忽略 http://debian.ustc.edu.cn trusty/main Translation-en_US
忽略 http://ubuntu.uhost.hk trusty/main Translation-en_US
忽略 http://debian.ustc.edu.cn trusty/multiverse Translation-en_US
忽略 http://ubuntu.uhost.hk trusty/multiverse Translation-en_US
忽略 http://debian.ustc.edu.cn trusty/restricted Translation-en_US
忽略 http://debian.ustc.edu.cn trusty/universe Translation-en_US
忽略 http://ubuntu.uhost.hk trusty/restricted Translation-en_US
忽略 http://ubuntu.uhost.hk trusty/universe Translation-en_US
命中 http://ppa.launchpad.net trusty Release
忽略 http://ppa.launchpad.net trusty Release
错误 http://archive.ubuntu.com packagebase/main Sources
404 Not Found [IP: 91.189.91.15 80]
命中 http://ppa.launchpad.net trusty/main amd64 Packages
错误 http://archive.ubuntu.com packagebase/restricted Sources
404 Not Found [IP: 91.189.91.15 80]
命中 http://ppa.launchpad.net trusty/main i386 Packages
错误 http://archive.ubuntu.com packagebase/universe Sources
404 Not Found [IP: 91.189.91.15 80]
命中 http://ppa.launchpad.net trusty/main Translation-en
错误 http://archive.ubuntu.com packagebase/multiverse Sources
404 Not Found [IP: 91.189.91.15 80]
命中 http://ppa.launchpad.net trusty/main Sources
命中 http://ppa.launchpad.net trusty/main amd64 Packages
命中 http://ppa.launchpad.net trusty/main i386 Packages
忽略 http://extras.ubuntu.com trusty/main Translation-en_US
忽略 http://extras.ubuntu.com trusty/main Translation-en
忽略 http://extras.ubuntu.com trusty/main Translation-zh_CN
命中 http://ppa.launchpad.net trusty/main Sources
命中 http://ppa.launchpad.net trusty/main amd64 Packages
命中 http://ppa.launchpad.net trusty/main i386 Packages
命中 http://ppa.launchpad.net trusty/main Translation-en
忽略 http://ppa.launchpad.net trusty/main Translation-en_US
忽略 http://ppa.launchpad.net trusty/main Translation-en
忽略 http://ppa.launchpad.net trusty/main Translation-zh_CN
错误 http://ppa.launchpad.net trusty/main amd64 Packages
404 Not Found
错误 http://ppa.launchpad.net trusty/main i386 Packages
404 Not Found
忽略 http://ppa.launchpad.net trusty/main Translation-en_US
忽略 http://ppa.launchpad.net trusty/main Translation-en
忽略 http://ppa.launchpad.net trusty/main Translation-zh_CN
W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ce/Sources 404 Not Found [IP: 91.189.91.15 80]

W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ce/Sources 404 Not Found [IP: 91.189.91.15 80]

W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ce/Sources 404 Not Found [IP: 91.189.91.15 80]

W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ce/Sources 404 Not Found [IP: 91.189.91.15 80]

W: 无法下载 http://ppa.launchpad.net/werner-jaeger/ ... 4/Packages 404 Not Found

W: 无法下载 http://ppa.launchpad.net/werner-jaeger/ ... 6/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
话说大神,上面的回复,如何将那个ubuntu l2tp设置成相当于windows下将证书用于身份验证,验证服务器证书的‘名称’和‘用法’属性呢? :em06
zhou380491943
帖子: 62
注册时间: 2015-01-24 19:17
系统: ubuntu kylin 14.04

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#7

帖子 zhou380491943 » 2015-03-04 13:06

zhouhao@zhouhao-Dell-System-Inspiron-N4110:~$ sudo apt-get update
忽略 http://ubuntu.uhost.hk trusty InRelease
忽略 http://debian.ustc.edu.cn trusty InRelease
忽略 http://ubuntu.uhost.hk trusty-updates InRelease
忽略 http://debian.ustc.edu.cn trusty-backports InRelease
忽略 http://debian.ustc.edu.cn trusty-proposed InRelease
忽略 http://debian.ustc.edu.cn trusty-security InRelease
忽略 http://ubuntu.uhost.hk trusty-security InRelease
命中 http://ubuntu.uhost.hk trusty Release.gpg
忽略 http://debian.ustc.edu.cn trusty-updates InRelease
命中 http://debian.ustc.edu.cn trusty Release.gpg
忽略 http://archive.ubuntukylin.com:10006 trusty InRelease
命中 http://debian.ustc.edu.cn trusty-backports Release.gpg
命中 http://ubuntu.uhost.hk trusty-updates Release.gpg
命中 http://debian.ustc.edu.cn trusty-proposed Release.gpg
命中 http://debian.ustc.edu.cn trusty-security Release.gpg
命中 http://ubuntu.uhost.hk trusty-security Release.gpg
命中 http://archive.ubuntukylin.com:10006 trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-updates Release.gpg
命中 http://ubuntu.uhost.hk trusty Release
命中 http://debian.ustc.edu.cn trusty Release
命中 http://ubuntu.uhost.hk trusty-updates Release
命中 http://debian.ustc.edu.cn trusty-backports Release
命中 http://debian.ustc.edu.cn trusty-proposed Release
命中 http://ubuntu.uhost.hk trusty-security Release
命中 http://archive.ubuntukylin.com:10006 trusty Release
命中 http://debian.ustc.edu.cn trusty-security Release
忽略 http://archive.ubuntu.com packagebase InRelease
命中 http://debian.ustc.edu.cn trusty-updates Release
命中 http://ubuntu.uhost.hk trusty/multiverse Sources
命中 http://debian.ustc.edu.cn trusty/main amd64 Packages
命中 http://ubuntu.uhost.hk trusty/restricted Sources
命中 http://debian.ustc.edu.cn trusty/multiverse amd64 Packages
命中 http://ubuntu.uhost.hk trusty/universe Sources
命中 http://debian.ustc.edu.cn trusty/restricted amd64 Packages
命中 http://archive.ubuntukylin.com:10006 trusty/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty/main Sources
命中 http://debian.ustc.edu.cn trusty/main i386 Packages
忽略 http://archive.canonical.com trusty InRelease
命中 http://ubuntu.uhost.hk trusty/restricted amd64 Packages
命中 http://archive.ubuntukylin.com:10006 trusty/main i386 Packages
命中 http://debian.ustc.edu.cn trusty/multiverse i386 Packages
忽略 http://archive.ubuntu.com packagebase Release.gpg
命中 http://ubuntu.uhost.hk trusty/universe amd64 Packages
命中 http://debian.ustc.edu.cn trusty/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty/universe i386 Packages
命中 http://ubuntu.uhost.hk trusty/main amd64 Packages
忽略 http://ppa.launchpad.net trusty InRelease
命中 http://debian.ustc.edu.cn trusty/main Translation-en
忽略 http://extras.ubuntu.com trusty InRelease
命中 http://ubuntu.uhost.hk trusty/multiverse amd64 Packages
命中 http://debian.ustc.edu.cn trusty/main Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty/multiverse Translation-en
命中 http://debian.ustc.edu.cn trusty/multiverse Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty/universe i386 Packages
命中 http://archive.canonical.com trusty Release.gpg
忽略 http://archive.ubuntu.com packagebase Release
命中 http://ubuntu.uhost.hk trusty/main i386 Packages
命中 http://debian.ustc.edu.cn trusty/restricted Translation-en
命中 http://ubuntu.uhost.hk trusty/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty/restricted Translation-zh_CN
忽略 http://archive.ubuntukylin.com:10006 trusty/main Translation-en
命中 http://debian.ustc.edu.cn trusty/universe Translation-en
命中 http://debian.ustc.edu.cn trusty/universe Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty/main Translation-en
命中 http://debian.ustc.edu.cn trusty-backports/main Sources
命中 http://ubuntu.uhost.hk trusty/main Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-backports/multiverse Sources
命中 http://extras.ubuntu.com trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-backports/restricted Sources
忽略 http://ppa.launchpad.net trusty InRelease
命中 http://archive.canonical.com trusty Release
命中 http://debian.ustc.edu.cn trusty-backports/universe Sources
命中 http://ubuntu.uhost.hk trusty/multiverse Translation-en
命中 http://ubuntu.uhost.hk trusty/multiverse Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-backports/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-backports/multiverse amd64 Packages
命中 http://ubuntu.uhost.hk trusty/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-backports/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-backports/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty/restricted Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-backports/main i386 Packages
命中 http://debian.ustc.edu.cn trusty-backports/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-backports/restricted i386 Packages
命中 http://ubuntu.uhost.hk trusty/universe Translation-en
命中 http://archive.canonical.com trusty/partner Sources
命中 http://debian.ustc.edu.cn trusty-backports/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-backports/main Translation-en
命中 http://ubuntu.uhost.hk trusty/universe Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-backports/multiverse Translation-en
命中 http://extras.ubuntu.com trusty Release
忽略 http://ppa.launchpad.net trusty InRelease
命中 http://ubuntu.uhost.hk trusty-updates/multiverse Sources
命中 http://debian.ustc.edu.cn trusty-backports/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-backports/universe Translation-en
命中 http://ubuntu.uhost.hk trusty-updates/restricted Sources
命中 http://debian.ustc.edu.cn trusty-proposed/main Sources
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse Sources
命中 http://ubuntu.uhost.hk trusty-updates/universe Sources
命中 http://debian.ustc.edu.cn trusty-proposed/restricted Sources
命中 http://ubuntu.uhost.hk trusty-updates/main Sources
命中 http://archive.canonical.com trusty/partner amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/universe Sources
命中 http://debian.ustc.edu.cn trusty-proposed/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse amd64 Packages
命中 http://extras.ubuntu.com trusty/main Sources
忽略 http://ppa.launchpad.net trusty InRelease
命中 http://ubuntu.uhost.hk trusty-updates/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty-updates/universe amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/main i386 Packages
命中 http://ubuntu.uhost.hk trusty-updates/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/restricted i386 Packages
命中 http://archive.canonical.com trusty/partner i386 Packages
命中 http://ubuntu.uhost.hk trusty-updates/multiverse amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/main Translation-en
命中 http://ubuntu.uhost.hk trusty-updates/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/main Translation-zh_CN
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse Translation-en
命中 http://ubuntu.uhost.hk trusty-updates/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/multiverse Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty-updates/main i386 Packages
命中 http://extras.ubuntu.com trusty/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-proposed/restricted Translation-zh_CN
命中 http://ppa.launchpad.net trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-proposed/universe Translation-en
命中 http://ubuntu.uhost.hk trusty-updates/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-proposed/universe Translation-zh_CN
命中 http://ubuntu.uhost.hk trusty-updates/main Translation-en
命中 http://debian.ustc.edu.cn trusty-security/main Sources
命中 http://debian.ustc.edu.cn trusty-security/multiverse Sources
命中 http://ubuntu.uhost.hk trusty-updates/multiverse Translation-en
命中 http://debian.ustc.edu.cn trusty-security/restricted Sources
命中 http://ubuntu.uhost.hk trusty-updates/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-security/universe Sources
命中 http://ubuntu.uhost.hk trusty-updates/universe Translation-en
命中 http://debian.ustc.edu.cn trusty-security/main amd64 Packages
命中 http://extras.ubuntu.com trusty/main i386 Packages
命中 http://debian.ustc.edu.cn trusty-security/multiverse amd64 Packages
命中 http://ubuntu.uhost.hk trusty-security/multiverse Sources
命中 http://debian.ustc.edu.cn trusty-security/restricted amd64 Packages
命中 http://ppa.launchpad.net trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-security/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty-security/restricted Sources
命中 http://debian.ustc.edu.cn trusty-security/main i386 Packages
命中 http://debian.ustc.edu.cn trusty-security/multiverse i386 Packages
命中 http://ubuntu.uhost.hk trusty-security/universe Sources
命中 http://debian.ustc.edu.cn trusty-security/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty-security/universe i386 Packages
命中 http://ubuntu.uhost.hk trusty-security/main Sources
命中 http://debian.ustc.edu.cn trusty-security/main Translation-en
命中 http://debian.ustc.edu.cn trusty-security/multiverse Translation-en
命中 http://debian.ustc.edu.cn trusty-security/restricted Translation-en
命中 http://ubuntu.uhost.hk trusty-security/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-security/universe Translation-en
命中 http://ubuntu.uhost.hk trusty-security/universe amd64 Packages
命中 http://debian.ustc.edu.cn trusty-updates/main Sources
命中 http://debian.ustc.edu.cn trusty-updates/multiverse Sources
命中 http://ubuntu.uhost.hk trusty-security/main amd64 Packages
命中 http://debian.ustc.edu.cn trusty-updates/restricted Sources
命中 http://ppa.launchpad.net trusty Release.gpg
命中 http://debian.ustc.edu.cn trusty-updates/universe Sources
命中 http://ubuntu.uhost.hk trusty-security/multiverse amd64 Packages
命中 http://debian.ustc.edu.cn trusty-updates/main amd64 Packages
忽略 http://archive.canonical.com trusty/partner Translation-en
命中 http://ubuntu.uhost.hk trusty-security/restricted i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/multiverse amd64 Packages
命中 http://ubuntu.uhost.hk trusty-security/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/restricted amd64 Packages
命中 http://debian.ustc.edu.cn trusty-updates/universe amd64 Packages
命中 http://ubuntu.uhost.hk trusty-security/main i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/main i386 Packages
命中 http://ubuntu.uhost.hk trusty-security/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/multiverse i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/restricted i386 Packages
命中 http://ubuntu.uhost.hk trusty-security/main Translation-en
命中 http://debian.ustc.edu.cn trusty-updates/universe i386 Packages
命中 http://debian.ustc.edu.cn trusty-updates/main Translation-en
命中 http://ubuntu.uhost.hk trusty-security/multiverse Translation-en
忽略 http://ppa.launchpad.net trusty Release.gpg
命中 http://ubuntu.uhost.hk trusty-security/restricted Translation-en
命中 http://debian.ustc.edu.cn trusty-updates/multiverse Translation-en
命中 http://debian.ustc.edu.cn trusty-updates/restricted Translation-en
命中 http://ubuntu.uhost.hk trusty-security/universe Translation-en
命中 http://debian.ustc.edu.cn trusty-updates/universe Translation-en
命中 http://ppa.launchpad.net trusty Release
命中 http://ppa.launchpad.net trusty Release
忽略 http://debian.ustc.edu.cn trusty/main Translation-en_US
忽略 http://ubuntu.uhost.hk trusty/main Translation-en_US
忽略 http://debian.ustc.edu.cn trusty/multiverse Translation-en_US
忽略 http://ubuntu.uhost.hk trusty/multiverse Translation-en_US
忽略 http://debian.ustc.edu.cn trusty/restricted Translation-en_US
忽略 http://debian.ustc.edu.cn trusty/universe Translation-en_US
忽略 http://ubuntu.uhost.hk trusty/restricted Translation-en_US
忽略 http://ubuntu.uhost.hk trusty/universe Translation-en_US
命中 http://ppa.launchpad.net trusty Release
忽略 http://ppa.launchpad.net trusty Release
错误 http://archive.ubuntu.com packagebase/main Sources
404 Not Found [IP: 91.189.91.15 80]
命中 http://ppa.launchpad.net trusty/main amd64 Packages
错误 http://archive.ubuntu.com packagebase/restricted Sources
404 Not Found [IP: 91.189.91.15 80]
命中 http://ppa.launchpad.net trusty/main i386 Packages
错误 http://archive.ubuntu.com packagebase/universe Sources
404 Not Found [IP: 91.189.91.15 80]
命中 http://ppa.launchpad.net trusty/main Translation-en
错误 http://archive.ubuntu.com packagebase/multiverse Sources
404 Not Found [IP: 91.189.91.15 80]
命中 http://ppa.launchpad.net trusty/main Sources
命中 http://ppa.launchpad.net trusty/main amd64 Packages
命中 http://ppa.launchpad.net trusty/main i386 Packages
忽略 http://extras.ubuntu.com trusty/main Translation-en_US
忽略 http://extras.ubuntu.com trusty/main Translation-en
忽略 http://extras.ubuntu.com trusty/main Translation-zh_CN
命中 http://ppa.launchpad.net trusty/main Sources
命中 http://ppa.launchpad.net trusty/main amd64 Packages
命中 http://ppa.launchpad.net trusty/main i386 Packages
命中 http://ppa.launchpad.net trusty/main Translation-en
忽略 http://ppa.launchpad.net trusty/main Translation-en_US
忽略 http://ppa.launchpad.net trusty/main Translation-en
忽略 http://ppa.launchpad.net trusty/main Translation-zh_CN
错误 http://ppa.launchpad.net trusty/main amd64 Packages
404 Not Found
错误 http://ppa.launchpad.net trusty/main i386 Packages
404 Not Found
忽略 http://ppa.launchpad.net trusty/main Translation-en_US
忽略 http://ppa.launchpad.net trusty/main Translation-en
忽略 http://ppa.launchpad.net trusty/main Translation-zh_CN
W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ce/Sources 404 Not Found [IP: 91.189.91.15 80]

W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ce/Sources 404 Not Found [IP: 91.189.91.15 80]

W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ce/Sources 404 Not Found [IP: 91.189.91.15 80]

W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ce/Sources 404 Not Found [IP: 91.189.91.15 80]

W: 无法下载 http://ppa.launchpad.net/werner-jaeger/ ... 4/Packages 404 Not Found

W: 无法下载 http://ppa.launchpad.net/werner-jaeger/ ... 6/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
话说大神,上面的回复,如何将那个ubuntu l2tp设置成相当于windows下将证书用于身份验证,验证服务器证书的‘名称’和‘用法’属性呢? :em06
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#8

帖子 poloshiao » 2015-03-04 13:11

sudo apt-get update
忽略 http://ubuntu.uhost.hk trusty InRelease
... 以下省略
1. 把下面指令 複製 貼進終端機 執行
1-1. sudo cat /etc/apt/sources.list
1-2. sudo ls -Al /etc/apt/sources.list.d
把結果直接 選取/複製/貼上來
不必擷圖
那么下面这个该如何设置成和windows一样的状态呢?
2. 能否把 Windows 的對應圖形 也擷圖貼上來
zhou380491943
帖子: 62
注册时间: 2015-01-24 19:17
系统: ubuntu kylin 14.04

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#9

帖子 zhou380491943 » 2015-03-05 15:05

# deb cdrom:[Ubuntu-Kylin 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.1)]/ trusty main multiverse restricted universe
deb-src http://ubuntu.uhost.hk/ trusty multiverse restricted universe main #Added by software-properties

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ubuntu.uhost.hk/ trusty restricted universe main

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntu.uhost.hk/ trusty-updates restricted universe main
deb-src http://ubuntu.uhost.hk/ trusty-updates multiverse restricted universe main #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ubuntu.uhost.hk/ trusty multiverse
deb http://ubuntu.uhost.hk/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.

deb http://ubuntu.uhost.hk/ trusty-security restricted universe main
deb-src http://ubuntu.uhost.hk/ trusty-security multiverse restricted universe main #Added by software-properties
deb http://ubuntu.uhost.hk/ trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
deb-src http://archive.ubuntu.com/ubuntu/ packagebase main restricted universe multiverse
#中科大

deb http://debian.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universe

deb http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe

deb http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe

deb http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universe

deb http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe


deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe

deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe

deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universe

deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
#sohu
#oschina
#北京交通大学
# 北京理工


-rw-r--r-- 1 root root 66 3月 3 17:57 ehoover-compholio-trusty.list
-rw-r--r-- 1 root root 66 3月 3 17:57 ehoover-compholio-trusty.list.save
-rw-r--r-- 1 root root 160 3月 3 17:57 seriy-pr-network-manager-l2tp-trusty.list
-rw-r--r-- 1 root root 160 3月 3 17:57 seriy-pr-network-manager-l2tp-trusty.list.save
-rw-r--r-- 1 root root 65 3月 3 17:57 ubuntukylin.list
-rw-r--r-- 1 root root 65 3月 3 17:57 ubuntukylin.list.save
-rw-r--r-- 1 root root 200 3月 3 17:57 ubuntu-wine-ppa-trusty.list
-rw-r--r-- 1 root root 200 3月 3 17:57 ubuntu-wine-ppa-trusty.list.save
-rw-r--r-- 1 root root 160 3月 3 17:57 werner-jaeger-ppa-werner-vpn-trusty.list
-rw-r--r-- 1 root root 0 3月 3 17:57 werner-jaeger-ppa-werner-vpn-trusty.list.save

二..windows的对应图形就是下面这张图
sss.jpg
选择‘将证书用于身份验证’---‘验证服务器的’名称‘和’用法‘属性’;
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#10

帖子 poloshiao » 2015-03-05 16:25

deb-src http://archive.ubuntu.com/ubuntu/ packagebase main restricted universe multiverse
1. 這一行是錯誤且多餘的 把它刪除 然後
sudo apt-get update
deb http://debian.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
2. 這 9 行與上面的幾行 重複 造成 同一個套件庫 可以來自兩個不同的 Mirror 網站
會造成你的系統相依關係大亂 系統不穩
請把這 9 行刪除

sudo apt-get update

3. 補充
同一個套件庫 只能來自 一個 Mirror 網站
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#11

帖子 poloshiao » 2015-03-05 16:45

ubuntu下

图片

1. 你是使用什麼終端機指令 出現這個畫面

二..windows的对应图形就是下面这张图

图片

2. 看不出 不同啊
zhou380491943
帖子: 62
注册时间: 2015-01-24 19:17
系统: ubuntu kylin 14.04

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#12

帖子 zhou380491943 » 2015-03-07 21:07

ubuntu下面的图形界面
xx.jpg
xx.jpg (25.53 KiB) 查看 19843 次
我想设置成和windows下面的一样:

windows下的图形界面是下面的这个图 设置选择将证书用于身份验证--验证服务器证书的“名称”和“用法”属性。
sss.jpg

谢谢poloshiao大神指点,话说大神一个人回答论坛各种问题,令小弟十分佩服!谢谢
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu下VPN设置选项和windows下不同,如何体现出ipsec证书验证

#13

帖子 poloshiao » 2015-03-08 7:40

1. ubuntu : use pre-shared key for authentication 應該就是
windows : 使用 預共享的密鑰作身份驗證

2. Ubuntu : use Certificate for authentication 應該就是
windows : 將證書用于身份驗證
2-1. 在 Ubuntu 如果你已經將 用于身份驗證 的 Certificate 下載 放在某個路徑下
按一下 旁邊 的 port 找到該 路徑及Certificate 文件檔案
然後 打勾
2-1-1. 跟 Windows 的 Certificate 文件檔案 應該是一樣的 你可以 複製 Windows 的 Certificate 文件檔案到 Ubuntu 某個路徑下 看看
2-2. 如果該用于身份驗證 Certificate 是需要你自己產生 請細參閱
https://help.ubuntu.com/stable/servergu ... urity.html
看看 如何產生自己的 Certificate 文件檔案
2-3. 你下載來的 Certificate 文件檔案 差不多 也是使用類似的機制產生的 但是是 Public Key
2-3. 你自己產生的 Certificate 文件檔案 你自己使用 Private Key 把 Public Key 送給網路上 方便別人下載

3. 補充
一般 Windows 預設登入者 就是 superuser (相當於 root) 所以 不會常常要輸入 密碼
一般 Ubuntu 是關閉 root 登入 要使用 root 權限時 必須使用 sudo 此時 必須提供 登入者的 密碼或 PASSPHRASE (用於解密)
3-1. Ubuntu 的 private key 那一欄 如果是使用在 2-2 自己產生的私鑰 (Private Key ) PASSPhrase 就是 在 2-2 使用的 PASSPHRASE
詳細參閱
https://help.ubuntu.com/stable/servergu ... ting-a-csr
使用 passphrase 搜尋
回复