Advertisement
Guest User

Untitled

a guest
Nov 7th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. После запуска сервера.
  2. $ route
  3. Kernel IP routing table
  4. Destination Gateway Genmask Flags Metric Ref Use Iface
  5. default ip-172-31-16-1. 0.0.0.0 UG 0 0 0 eth0
  6. ip-10-4-0-2.us- * 255.255.255.255 UH 0 0 0 tun1
  7. 172.31.16.0 * 255.255.240.0 U 0 0 0 eth0
  8.  
  9. Конфиг сервера:
  10. $ cat /etc/openvpn/openvpn.conf
  11. port 1194
  12. proto tcp-server
  13. dev tun1
  14. ifconfig 10.4.0.1 10.4.0.2
  15. status server-tcp.log
  16. verb 3
  17. secret ovpn.key
  18.  
  19. Конфиг клиента:
  20. $ cat openvpn.client.ovpn
  21. proto tcp-client
  22. remote 52.15.118.78
  23. port 1194
  24. dev tun
  25. secret "/home/taomao/OpenVPNconf/ovpn.key"
  26. redirect-gateway def1
  27. ifconfig 10.4.0.2 10.4.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement