基于Wireguard技术的虚拟个人网络搭建(基于Lighthouse服务器)
手动安装Wireguard 安装Wireguard(以ubuntu20.04为基础) #root权限 sudo -i #安装wireguard软件 apt install wireguard resolvconf -y #开启IP转发 echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf sysctl -p 进入配置存储路径,调整目录
手动安装Wireguard 安装Wireguard(以ubuntu20.04为基础) #root权限 sudo -i #安装wireguard软件 apt install wireguard resolvconf -y #开启IP转发 echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf sysctl -p 进入配置存储路径,调整目录
转载自:https://www.80sy.com/951.html 1.1. 设置网关 用网线将树莓派接入路由器 LAN 口,假设分给树莓派的 IP 是 192.168.1.22。 树莓派开启 IP 转发(需要开启 IP 转发才能作为网关)。命令为 echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf && sysctl -p。
转载自:https://blog.k8s.li/debian-gateway.html 1. OS 首先虚拟机的系统我是使用的 Debian 10,使用 netinst 镜像安装好的,当然你也可以使用 Ubuntu ,选择 Debian 是因为 Debian 可以再精简一些,安装后的占用不到 700MB 。至于 Alpine 可能要费点功夫,因为编译需要的包比较麻烦。 2. 安装编译环境和依赖 D