Daniel Ding 46dc6d6b15
Coverage CI / build (push) Waiting to run
CodeQL / Analyze (go) (push) Waiting to run
Ubuntu CI / build (push) Waiting to run
feat: split interface admin and link states
2026-04-21 13:55:50 +08:00
2025-04-12 16:38:48 +08:00
2025-07-25 18:56:57 +08:00
2026-01-23 02:49:49 +00:00
2024-01-27 20:21:26 +08:00
2023-12-26 10:17:01 +08:00
2023-04-07 08:39:59 +08:00
2026-01-22 19:41:59 +08:00
2026-01-22 19:41:59 +08:00
2022-07-29 23:38:54 +08:00
2023-04-07 20:40:52 +08:00

English | 简体中文

OpenLAN Logo

Go Report Card Codecov CodeQL Build Docs Releases GPL 3.0 License

🌐 What is OpenLAN?

OpenLAN is a solution for transmitting LAN packets over WAN, enabling you to create multiple virtual Ethernet networks in user space.

🤔 Why Choose OpenLAN?

If you need a flexible VPN solution — such as accessing enterprise internal networks, or proxying and tunneling traffic through public cloud instances — OpenLAN makes deployment simpler and more efficient.

Key Features

  • 🔒 Network Segmentation: Divide the network into multiple isolated spaces, providing logical network isolation for different services.
  • 🔗 Central Switch Interconnection: Multiple Central Switches communicate at the link layer via the OpenLAN protocol, with SNAT route support for seamless access to enterprise internal networks.
  • 🖥️ OpenVPN Integration: Connect user networks via OpenVPN, with support for Android, macOS, Windows, and other platforms.
  • 🛡️ IPSec & VxLAN Support: Establish IPSec tunnels between Central Switches, with VxLAN tenant network segmentation on top.
  • 🔑 Simple Authentication: Username/password-based access authentication with optional pre-shared key encryption for data packets.
  • 📡 Multi-Protocol Support: OpenLAN runs over TCP, TLS, UDP, KCP, WS, and WSS — TCP for high performance, TLS/WSS for stronger encryption security.
  • 🔄 Flexible Proxy Forwarding: Built-in HTTP, HTTPS, and SOCKS5 forward proxy support with domain-based routing rules for flexible traffic forwarding.

🗺️ Use Cases

🏢 Branch-to-Center Access

                       Central Switch (Enterprise Center) - 10.16.1.10/24
                                      ^
                                      |
                                   Wifi(DNAT)
                                      |
                                      |
             ----------------------Internet-------------------------
             ^                        ^                           ^
             |                        |                           |
           Branch1                  Branch2                     Branch3
             |                        |                           |
         OpenLAN                  OpenLAN                      OpenLAN
      10.16.1.11/24             10.16.1.12/24                10.16.1.13/24

🌍 Multi-Region Interconnection

     192.168.1.20/24                                                  192.168.1.21/24
            |                                                                |
        OpenLAN -- Hotel Wifi --> Central Switch(NanJing) <--- Other Wifi --- OpenLAN
                                         |
                                         |
                                       Internet
                                         |
                                         |
                                 Central Switch(Shanghai) - 192.168.1.10/24
                                         |
                                         |
                ------------------------------------------------------
                ^                        ^                           ^
                |                        |                           |
             Office Wifi              Home Wifi                 Hotel Wifi
                |                        |                           |
            OpenLAN                  OpenLAN                     OpenLAN
        192.168.1.11/24           192.168.1.12/24             192.168.1.13/24

📚 Documentation

S
Description
Cloudify VPN written in Golang, and simple deployment via Kubernetes
Readme GPL-3.0 7.1 MiB
Languages
Go 73.7%
HTML 23.7%
go:x 1%
Makefile 0.9%
Shell 0.6%