[PACKET_IO]fix ip forward config
This commit is contained in:
@@ -7,7 +7,7 @@ ip tuntap add dev tun0 mode tun
|
|||||||
ip addr add 192.168.3.11/24 dev tun0
|
ip addr add 192.168.3.11/24 dev tun0
|
||||||
|
|
||||||
# kernel open ip forward
|
# kernel open ip forward
|
||||||
echo 1 > /proc/sys/inet/ipv4/ip_forward
|
echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||||
|
|
||||||
# start up tun0
|
# start up tun0
|
||||||
ifconfig tun0 up
|
ifconfig tun0 up
|
||||||
Reference in New Issue
Block a user