×

StrongSwan 简单的安装配置

hqy hqy 发表于2019-07-15 18:21:01 浏览2769 评论0

抢沙发发表评论

环境

系统:CentOS 6.10

安装

  • 安装EPEL扩展源

    # yum install epel-release
  • 安装StrongSwan

    # yum install strongswan

配置

  • 配置ipsec.conf

# vim /etc/strongswan/ipsec.confconfig setup
        uniqueids = never

conn psk_xauth
        keyexchange=ikev1
        left=%defaultroute
        leftauth=psk
        leftsubnet=0.0.0.0/0
        right=%any
        rightauth=psk
        rightauth2=xauth
        rightsourceip=10.0.0.0/24
        auto=start
  • 配置ipsec.secrets

# vim /etc/strongswan/ipsec.secrets: PSK "YourPreShareKey"
TestUser %any : XAUTH "YourPassword"

启动

# chkconfig strongswan on# /etc/init.d/strongswan start

客户端连接

账号:TestUser
密码:YourPassword
预共享密钥:YourPreShareKey


 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/843.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客