通过本地创建虚拟网卡,设置ip,对本地网络特定ip数据进行拦截
编辑/etc/network/interfaces,添加如下内容
/etc/network/interfaces
allow-hotplug tun0 auto tun0 iface tun0 inet manual pre-up ip tuntap add tun0 mode tun user root pre-up ip addr add 1.1.1.2/32 dev tun0 up ip link set dev tun0 up post-down ip link del dev tun0
← CF-DDNS脚本 Filebrowser→