Advance the advantage of fake-ip or redir as gateway benifit for different application need. See Here
- OS: Alpine Linux 3.9
- Packages: linux-firmware-rtl_nic linux-lts v2ray
apk add linux-firmware-rtl_nic linux-lts
ip a
Shell output:
eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether a0:36:9f:50:be:fa brd ff:ff:ff:ff:ff:ff
inet 192.168.25.111/24 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::a236:9fff:fe50:befa/64 scope link
valid_lft forever preferred_lft forever
apk add v2ray
cp config.json /etc/v2ray/config.json
rc-update add v2ray
rc-status
Shell output:
Runlevel: default
sshd [ started ]
v2ray [ stopped ]
acpid [ started ]
qemu-guest-agent [ started ]
crond [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
sysfs [ started ]
fsck [ started ]
root [ started ]
localmount [ started ]
Dynamic Runlevel: manual
modprobe tun
echo "tun" >> /etc/modules