97

GitHub - LuoZijun/exodus: network proxy and tunnel (VPN)

 6 years ago
source link: https://github.com/LuoZijun/exodus
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
rewrite

Go to file

Code

Exodus

Date:10/03 2017

平台支持

VPN Server:

  • Linux > 3.0

VPN Client:

  • macOS >= 10.13
  • Linux > 3.0

IPV4 私有 IP 段

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 系统:

  • white_check_mark IP 转发控制 (相当于 sysctl net.ipv4.conf.all.forwarding = 1 )
  • white_check_mark 系统 DNS 设定 (相当于 echo "nameserver 8.8.8.8" >> /etc/resolv.conf )
  • white_check_mark netlink link list (相当于 ip link list )
  • white_check_mark netlink neigh list (相当于 ip neigh list )
  • white_check_mark netlink addr list (相当于 ip addr list )
  • white_check_mark 系统路由表缓存下载 (相当于 `ip route list )
  • white_check_mark 系统路由表删除操作 (相当于 `ip route del )
  • white_check_mark 系统路由表增加操作 (相当于 `ip route add )
  • x 系统防火墙规则设定 (相当于 iptables/nftables ... )

macOS 系统:

  • white_check_mark IP 转发控制 (相当于 sysctl net.ipv4.conf.all.forwarding = 1 )
  • white_check_mark 系统 DNS 设定 (相当于 networksetup -setdnsservers "Wi-Fi" "8.8.8.8" )
  • white_check_mark 系统 ARP/NDP 缓存表下载 ( 相当于 arp/ndp -an )
  • white_check_mark 系统路由表缓存下载 (相当于 `netstat -rn )
  • white_check_mark 系统路由表删除操作 (相当于 `route del )
  • white_check_mark 系统路由表增加操作 (相当于 `route add )
  • x 系统防火墙规则设定 (相当于 pfctl ... )

运行

请不要在 生产环境 部署和运行该程序!

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK