找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1393|回复: 1

刚刚接触openwrt,下面的描述是什么意思?

[复制链接]
发表于 2017-4-14 12:02 | 显示全部楼层 |阅读模式

Create thefollowing Openv p n client configuration file, save it with an .ov p n extension inthe Windows or .conf in the *nix and give it to your client:


Traditional (TUN)Client

dev tun

proto udp

log openv p n.log

verb 3

ca/etc/openv p n/ca.crt

cert/etc/openv p n/my-client.crt

key/etc/openv p n/my-client.key


client

remote-cert-tlsserver
remote SERVER_IP_ADDRESS1194


==
把上面有颜色的部分直接拷贝进一个  .ov p n文件里去呢,还是说上面颜色的指令需要在SSH里运行一下??


请大侠们指导一下,刚刚接触!!
 楼主| 发表于 2017-4-14 12:09 | 显示全部楼层
    在openwrt下面配置openv p n是非常简单的事情,当然我假定你有linux下面配置openv p n的经验。

    首先,将配置文件,证书等等复制到/etc/openv p n下面。我的配置大概是这样。


client

dev tun

proto udp

remote ipaddr port

resolv-retry infinite

nobind

persist-key


persist-tun

ca /etc/openv p n/ca.crt

cert /etc/openv p n/openwrt.crt

key /etc/openv p n/openwrt.key

ns-cert-type server

tls-auth /etc/openv p n/ta.key 1

cipher DES-EDE3-CBC

comp-lzo

verb 3

script-security 3

up /etc/openv p n/dftup

down /etc/openv p n/dftdown

    注意,其中的路径必须写完整,貌似测试下来不支持相对目录。其中的up和down是指在启动和关闭时会自动执行的两个脚本。根据贝壳的测试,redirect-gateway是无效的,不知道为什么。具体的路由配置方法,会在下一章中具体介绍。

    然后,你需要将这个配置启用,方法是修改/etc/config/openv p n,在其中加入以下内容。


config openv p n name

        option enable 1

        option config /etc/openv p n/name.conf

    name是你的配置名,下面的路径和配置文件路径吻合。

    然后,你可以这样启动v p n。

/etc/init.d/openv p n restart
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-17 04:40

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表