.. image:: https://img.shields.io/badge/Telegram%20Group-https%3A%2F%2Ft.me%2FExodusProject-blue.svg :alt: Join the chat at https://t.me/ExodusProject :target: https://t.me/ExodusProject
:Date: 10/03 2017
.. contents::
VPN Server:
VPN Client:
Private IPv4 addresses:
10.0.0.0/8 10.0.0.0 – 10.255.255.255
172.16.0.0/12 172.16.0.0 – 172.31.255.255
192.168.0.0/16 192.168.0.0 – 192.168.255.255
系统网络配置组件(sysconfig/netlink/sysctl):
Linux 系统:
sysctl net.ipv4.conf.all.forwarding = 1
)echo "nameserver 8.8.8.8" >> /etc/resolv.conf
)ip link list
)ip neigh list
)ip addr list
)相当于
ip route list` )相当于
ip route del` )相当于
ip route add` )iptables/nftables ...
)macOS 系统:
sysctl net.ipv4.conf.all.forwarding = 1
)networksetup -setdnsservers "Wi-Fi" "8.8.8.8"
)arp/ndp -an
)相当于
netstat -rn` )相当于
route del` )相当于
route add` )pfctl ...
)请不要在 生产环境
部署和运行该程序!
.. code:: bash
cd exodus
# VPN Server
sudo ./vpnd --tun-network 172.16.0.0/16
# VPN Client
sudo ./vpn --server-addr YOUR_VPN_SERVER_IPV4_ADDR:YOUR_VPN_SERVER_UDP_PORT --disable-crypto