Openwrt系列之打开ipv6端口访问
打开ipv6 访问 很简单只需要把防火墙打开就行就可以访问端口上的openwrt服务 第一步 打开防火墙区域设置 第二步 防火墙 通信规则
打开ipv6 访问 很简单只需要把防火墙打开就行就可以访问端口上的openwrt服务 第一步 打开防火墙区域设置 第二步 防火墙 通信规则
下载到tmp目录 wget https://pkgs.tailscale.com/stable/tailscale_1.70.0_arm64.tgz -P /tmp 解压压缩包并移动二进制文件 cd /tmp tar x -zvf tailscale_1.70.0_arm64.tgz cd tailscal_1.70.0_arm64 mv tailscale tailscaled /usr/sbin/ 安装依赖文件 opkg update opkg install ca-bundle kmod-tun 创建守护脚本文件 vim /etc/init.d/tailscale 写入如下代码 #!/bin/sh /etc/rc.common # Copyright 2020 Google LLC. # SPDX-License-Identifier: Apache-2.0 USE_PROCD=1 START=80 start_service() { /usr/sbin/tailscaled --cleanup procd_open_instance procd_set_param command /usr/sbin/tailscaled # Set the port to listen on for incoming VPN packets. # Remote nodes will automatically be informed about the new port number, # but you might want to configure this in order to set external firewall # settings....
资源链接阿里云盘 我用阿里云盘分享了「NAS常用软件引导软件系统镜像」,你可以不限速下载🚀 复制这段内容打开「阿里云盘」App 即可获取 链接:https://www.aliyundrive.com/s/QUm851phfC7 Esxi常用系统ova模板 搜集来自于sysin博客,sysin博主分享是百度云,本博客下载下来后上传至阿里云盘全部为标准分区(新版) ESXi6.7集成2.5G与8111网卡驱动 集成了rtl8125b网卡驱动以及rtl8111驱动,为什么不集成7.0的,是因为集成不了,据说新版本esxi7.0有什么改动。 openwrt x86_64软路由 使用GitHub编译结果,Qifcn/Actions-OpenWrt: A template for building OpenWrt with GitHub Actions | 使用 GitHub Actions 云编译 OpenWrt 集成了 tailscale wireguard 内核分区扩大至100m 根分区扩至512m resilio分享 这些软件我集成密钥形式 SYNC同步网盘 - 孤岛 (gao4.top)
概念 网上找的图很好理解应该 wireguard原理就不多做解释了,我们只是人为的分客户端与服务端,因为国情在这,有时候两端不可都是可以互相访问的公网。这是理论上最好的访问模型,但实际上使用也就服务端访问这种模式。 2021年5月21日更新 公网环境 wireguard实际是支持ipv6的而我的环境是ipv4动态公网就不多做关于ipv6的介绍了,在2018年CN已经全面覆盖改造ipv6了,至少移动手机端与家庭宽带都支持ipv6了。 设备环境 OpenWrt R21.2.1 公网IPv4 移动手机端 openwrt端配置 软件源 系统-软件包-发行版软件源 src/gz openwrt_core https://mirrors.cloud.tencent.com/lede/snapshots/targets/x86/64/packages src/gz openwrt_base https://mirrors.cloud.tencent.com/lede/snapshots/packages/x86_64/base src/gz openwrt_freifunk https://mirrors.cloud.tencent.com/lede/snapshots/packages/x86_64/freifunk src/gz openwrt_helloworld https://mirrors.cloud.tencent.com/lede/snapshots/packages/x86_64/helloworld src/gz openwrt_lienol https://mirrors.cloud.tencent.com/lede/snapshots/packages/x86_64/lienol src/gz openwrt_luci https://mirrors.cloud.tencent.com/lede/releases/18.06.8/packages/x86_64/luci src/gz openwrt_packages https://mirrors.cloud.tencent.com/lede/snapshots/packages/x86_64/packages src/gz openwrt_routing https://mirrors.cloud.tencent.com/lede/snapshots/packages/x86_64/routing src/gz openwrt_telephony https://mirrors.cloud.tencent.com/lede/snapshots/packages/x86_64/telephony 安装WG opkg update opkg install wireguard luci-app-wireguard luci-i18n-wireguard-zh-cn wireguard-tools 生成密钥 可以在终端下生成 也可以在各客户端下生成 privatekey=私钥 publickey=公钥 mkdir /etc/wireguard cd /etc/wireguard wg genkey | tee privatekey | wg pubkey > publickey 配置接口 依次找到网络->接口->添加新接口,设置内容如下...
## 2022年1月4日更新如果luci没有界面可以去软件源手动下载安装 流程如下图 ![流程图](https://gao4.top/wp-content/uploads/2022/01/851998809.png) ```Unknown package ’luci-app-ocserv*’. Collected errors: * opkg_install_cmd: Cannot install package luci-app-ocserv*. root@OpenWrt:~# wget https://mirrors.cloud.tencent.com/lede/releases/18.06.9/packages/mipsel_24kc/luci/luci-app-ocserv_git-20.356.64372-1259bb1-1_all.ipk –2022-01-04 12:01:53– https://mirrors.cloud.tencent.com/lede/releases/18.06.9/packages/mipsel_24kc/luci/luci-app-ocserv_git-20.356.64372-1259bb1-1_all.ipk Resolving mirrors.cloud.tencent.com… 125.39.223.218, 42.63.50.204, 220.194.79.73, … Connecting to mirrors.cloud.tencent.com|125.39.223.218|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 5314 (5.2K) [application/octet-stream] Saving to: ’luci-app-ocserv_git-20.356.64372-1259bb1-1_all.ipk’ luci-app-ocserv_git-20.356.64372-1259bb1 100%[================================================================================>] 5.19K –.-KB/s in 0.001s 2022-01-04 12:01:56 (4.28 MB/s) - ’luci-app-ocserv_git-20.356.64372-1259bb1-1_all.ipk’ saved [5314/5314] root@OpenWrt:~# ls luci-app-ocserv_git-20.356.64372-1259bb1-1_all.ipk root@OpenWrt:~# opkg install luci-app-ocserv_git-20.356.64372-1259bb1-1_all.ipk Installing luci-app-ocserv (git-20.356.64372-1259bb1-1) to root… Configuring luci-app-ocserv....