luscis / openlan

Cloudify VPN written in Golang, and simple deployment via Kubernetes
http://vpn.luscis.cn
GNU General Public License v3.0
55 stars 24 forks source link

支持rocky linux #29

Closed mynicolas closed 8 months ago

mynicolas commented 8 months ago

使用安装教程无法在rocky linux 8.9上安装

danieldin95 commented 8 months ago

提供下错误输出

mynicolas commented 8 months ago

[root@ops-testus ~]# ./openlan-CentOS7.8.2003-v24.01.01.x86_64.bin

danieldin95 commented 8 months ago

你可以google下how to install openvswitch for rocky,或者使用docker去启动openlan参考https://github.com/luscis/openlan/blob/master/docs/docker.md

mynicolas commented 8 months ago

[root@ops-testus openlan]# docker compose ps NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS openlan-confd-1 luscis/openlan:v24.01.01.x86_64 "/var/openlan/script/confd.sh start" confd 8 seconds ago Up 7 seconds 0.0.0.0:10000->10000/tcp, :::10000->10000/tcp, 0.0.0.0:10002->10002/tcp, :::10002->10002/tcp openlan-ovs-vswitchd-1 luscis/openlan:v24.01.01.x86_64 "/var/openlan/script/ovs-vswitchd.sh start" ovs-vswitchd 8 seconds ago Up 7 seconds

openlan-ovsdb-server-1 luscis/openlan:v24.01.01.x86_64 "/var/openlan/script/ovsdb-server.sh start" ovsdb-server 8 seconds ago Up 7 seconds

openlan-proxy-1 luscis/openlan:v24.01.01.x86_64 "/usr/bin/openlan-proxy -conf /etc/openlan/proxy.json -log:file /dev/null" proxy 8 seconds ago Up 7 seconds

openlan-switch-1 luscis/openlan:v24.01.01.x86_64 "/var/openlan/script/switch.sh start" switch 8 seconds ago Restarting (255) Less than a second ago openlan-task-1 luscis/openlan:v24.01.01.x86_64 "/var/openlan/script/task.sh" task 8 seconds ago Up 7 seconds

[root@ops-testus openlan]# docker logs openlan-switch-1

mynicolas commented 8 months ago

[root@ops-testus openlan]# ls /proc/sys/net/bridge/bridge-nf-call-ip6tables /proc/sys/net/bridge/bridge-nf-call-ip6tables [root@ops-testus openlan]# ls /proc/sys/net/bridge/bridge-nf-call-iptables /proc/sys/net/bridge/bridge-nf-call-iptables

mynicolas commented 8 months ago

都改成network: host可以启动了。 point怎么用docker启动?

danieldin95 commented 8 months ago

像这样

[root@switch-sh ~]# cd network
[root@switch-sh ~]# cat > private.json <<EOF
{
  "name": "private",
  "bridge": {
    "address": "192.168.1.88/24"
  },
  "links": [
    {
      "connection": "address-of-switch-nj",
      "password": "get-it-from-switch-nj",
      "username": "admin",
      "crypt": { 
         "secret": "f367aa429ed2" 
      }
    }
  ]
}
EOF
[root@switch-sh ~]# openlan cfg co
[root@switch-sh ~]# systemctl restart openlan-switch