corplink-headless is a headless client for Corplink VPN.
Supported runtimes:
- Docker on Linux hosts
- macOS (Apple Silicon) via Apple Virtualization framework + arm64 Linux guest
- Run the container as a daemon.
docker run -d \
--name=corplink \
--hostname=ubuntu \
--device=/dev/net/tun \
--cap-add=NET_ADMIN \
--shm-size=512m \
-p 8888:8118 \
-p 1088:1080 \
-e COMPANY_CODE="your_company" \
overvenus/corplink:latest- Configure corplink.
# Scan QR code using Feilian App
docker exec -it corplink less -rf +F /var/log/corplink-headless/stdout.log
# Quit less if it prints "login success, company code: xxx"- Access corplink network via http proxy: localhost:8888 or socks5 proxy: localhost:1088. You can also route traffic to the container. The container will do SNAT for all traffic sent to it.
- Install Lima (
limactl):
brew install lima- Start Corplink in one command without cloning this repo:
limactl start \
--set '.param.COMPANY_CODE="your_company"' \
github:overvenus/corplink-headless/lima/corplink-headlessThis command will:
- Start an Ubuntu Minimal arm64 VM with Apple Virtualization (
vmType: vz) - Download the latest arm64 runtime bundle published from Git tags
- Download the official arm64 Corplink package
- Install the same runtime stack as the Docker image inside the guest
- Expose host proxies on
127.0.0.1:8888and127.0.0.1:1088
Notes:
- The
github:template scheme requires Lima 2.x. - If GitHub API rate limits affect template resolution, set
GH_TOKENorGITHUB_TOKENbefore runninglimactl.
# Watch QR code + login progress
LIMA_WORKDIR=/ limactl shell corplink-headless sudo less -rf +F /var/log/corplink-headless/stdout.log
# Runtime status
LIMA_WORKDIR=/ limactl shell corplink-headless sudo systemctl --no-pager status corplink-headless.service
# Open shell inside VM
LIMA_WORKDIR=/ limactl shell corplink-headless
# Stop VM
limactl stop corplink-headlessTo remove the VM entirely:
limactl delete --force corplink-headlessAfter startup, proxies are exposed on host:
- HTTP:
127.0.0.1:8888 - SOCKS5:
127.0.0.1:1088
See docs/macos-runtime.md for design and maintenance details.
- corplink-headless is inspired by sleepymole/docker-corplink. The Dockerfile and relevant scripts are modified from the project.