17 lines
575 B
Markdown
Executable File
17 lines
575 B
Markdown
Executable File
- tailscale
|
|
- edit /etc/pve/lxc/112.conf
|
|
- ```bash
|
|
lxc.cgroup2.devices.allow: c 10:200 rwm
|
|
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
|
|
```
|
|
- ```bash
|
|
apk add tailscale
|
|
rc-update add tailscale boot
|
|
service tailscale start
|
|
tailscale up
|
|
echo 'net.ipv4.ip_forward = 1' | tee -a /etc/sysctl.d/99-tailscale.conf
|
|
echo 'net.ipv6.conf.all.forwarding = 1' | tee -a /etc/sysctl.d/99-tailscale.conf
|
|
sysctl -p /etc/sysctl.d/99-tailscale.conf
|
|
tailscale up --advertise-routes=192.168.0.0/24,192.168.1.0/24
|
|
```
|
|
- [[电子奶瓶]] |