新之助meow

Kratos
专注于用户阅读体验的响应式博客主题
  1. 首页
  2. 未分类
  3. 正文

openvpnas 虚拟机安装设置

2017年9月4日 535点热度 0人点赞 0条评论

官方页面和下载

官方的虚拟机发布和配置页面
虚拟机下载地址
虚拟机文件可以直接用vmware workstation打开,报错就选忽略

基本配置

虚拟机网卡默认是dhcp的,一般需要改成静态ip,把dhcp改成 static 其他参考如下

vi /etc/network/interfaces
allow-hotplug eth0
iface eth0 inet static
   address 192.168.0.100
   netmask 255.255.255.0
   gateway 192.168.0.1
   dns-nameservers 4.2.2.1 4.2.2.2

启动配置向导

ovpn-init
根据提示默认配置即可,如果需要自定义设置用户可以访问哪个内部网,可以通过管理界面进去设置

登录管理地址
默认登录用户密码都是openvpn
管理地址
https://192.168.0.142:1943/admin/
用户登录地址
https://192.168.0.142:1943/

启动服务

登录管理界面,启动服务,就可以使用了

刚启动时,我这报了一个错

cannot determine which network interface owns the default route
无法确定哪个网络接口拥有默认路由,需要配一个默认路由
手工加了一个默认路由,稍等以后,再起就好了

待解决的问题

这个虚拟机单网卡添加多个ip加不上
单网卡多ip配置没有成功,ifup和ifdown也无法操作eth0,临时通过ip addr add 命令添加的ip
在这里 how-do-i-add-an-additional-ip-address-to-etc-network-interfaces
最后有人回复说ethx:x 别名的方式已经过时了,其给出的debian wiki中 https://wiki.debian.org/NetworkConfiguration#Multiple_IP_addresses_on_one_Interface 中使用的ip addr add 的方法实际上也不是很好用,但有如下这种方法可以操作,有待尝试
This /etc/network/interfaces example assigns three IP addresses to eth0 and assigns labels to them.

auto eth0
allow-hotplug eth0
iface eth0 inet static
    address 192.168.1.42
    netmask 255.255.255.0
    gateway 192.168.1.1
    up   ip addr add 192.168.1.43/24 dev eth0 label eth0:0
    down ip addr del 192.168.1.43/24 dev eth0 label eth0:0
    up   ip addr add 192.168.1.44/24 dev eth0 label eth0:1
    down ip addr del 192.168.1.44/24 dev eth0 label eth0:1
标签: 暂无
最后更新:2017年9月4日

tjccn_wx@hotmail.com

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

归档

  • 2026 年 10 月
  • 2024 年 2 月
  • 2023 年 7 月
  • 2023 年 1 月
  • 2022 年 10 月
  • 2022 年 9 月
  • 2022 年 6 月
  • 2022 年 4 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2021 年 11 月
  • 2021 年 10 月
  • 2021 年 9 月
  • 2021 年 1 月
  • 2020 年 12 月
  • 2020 年 11 月
  • 2020 年 10 月
  • 2020 年 9 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2019 年 10 月
  • 2019 年 8 月
  • 2019 年 7 月
  • 2019 年 4 月
  • 2019 年 3 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 12 月
  • 2017 年 11 月
  • 2017 年 10 月
  • 2017 年 9 月
  • 2017 年 8 月
  • 2017 年 7 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 4 月
  • 2017 年 3 月
  • 2017 年 2 月
  • 2017 年 1 月
  • 2016 年 12 月
  • 2016 年 11 月
  • 2016 年 10 月
  • 2016 年 9 月
  • 2016 年 8 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 5 月
  • 2016 年 4 月
  • 2016 年 3 月
  • 2015 年 12 月
  • 2015 年 8 月

分类

  • android
  • mysql
  • nethunter
  • proxmark
  • 未分类

COPYRIGHT © 2026 新之助meow. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang