stupidloud / nanopi-openwrt

Openwrt for Nanopi R1S R2S R4S R5S 香橙派 R1 Plus 固件编译 纯净版与大杂烩
5.35k stars 2.67k forks source link

Minimal 版是否可以增加常规的VPN协议(如:L2TP、IKEv、IPsec…… 服务端)以便于通过这些协议可以打通和家里的网络 #96

Closed g1c1img0 closed 4 years ago

g1c1img0 commented 4 years ago

Minimal 版是否可以增加常规的VPN协议(如:L2TP、IKEv、IPsec…… 服务端)以便于通过这些协议可以打通和家里的网络?FRP 虽然可以实现内网穿透,但毕竟需要一个中转服务器;对于有公网 IP 的用户来说还是有一定成本且不方便。

(^__^)

stupidloud commented 4 years ago

预装了kmod-tun,这些你可以试试用opkg来加

g1c1img0 commented 4 years ago

尝试过命令行安装,发现会报有些包依赖不存在(以 l2tp 为例)

opkg install xl2tpd Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for xl2tpd:
    • kmod-pppol2tp
  • opkg_install_cmd: Cannot install package xl2tpd.

确认了下,软件源中确实不存 kmod-pppol2tp 这个包

stupidloud commented 4 years ago

softether socks v2ray socks也都可以回家啊

g1c1img0 commented 4 years ago

嗯 这些确实都可以实现;但对于移动端尤其是 Apple 系列来说都是需要安装第三方客户端的(,不太方便。 没关系的,我再折腾折腾吧;感谢

stupidloud commented 4 years ago

你fork项目,然后修改 https://github.com/klever1988/nanopi-openwrt/blob/master/.github/workflows/r2s_lienol_from_lean.yml#L61

比如ipsec,加入 CONFIG_PACKAGE_luci-app-ipsec-vpnd=y

这样就可以的

fanteral commented 4 years ago

能否默认增加到固件里面,需要这个呀,命令安装kmod-pppol2tp依赖一直不成功

fanck0605 commented 4 years ago

@fanteral 你好,把第一个 openwrt core 的源换掉就行,替换完应该是长这样的,同时也可以注释掉不必要的源。

src/gz openwrt_core https://downloads.openwrt.org/releases/19.07.2/targets/sunxi/cortexa53/packages
src/gz openwrt_base https://downloads.openwrt.org/releases/19.07.2/packages/aarch64_cortex-a53/base
#src/gz openwrt_lienol https://downloads.openwrt.org/releases/19.07.2/packages/aarch64_cortex-a53/lienol
src/gz openwrt_luci https://downloads.openwrt.org/releases/19.07.2/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://downloads.openwrt.org/releases/19.07.2/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://downloads.openwrt.org/releases/19.07.2/packages/aarch64_cortex-a53/routing
fanteral commented 4 years ago

收到,非常感谢