Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. Mon Sep 12 20:31:08 2016 OpenVPN 2.3.12 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Aug 23 2016
  2. Mon Sep 12 20:31:08 2016 Windows version 6.2 (Windows 8 or greater) 64bit
  3. Mon Sep 12 20:31:08 2016 library versions: OpenSSL 1.0.1t 3 May 2016, LZO 2.09
  4. Mon Sep 12 20:31:13 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
  5. Mon Sep 12 20:31:13 2016 Control Channel Authentication: tls-auth using INLINE static key file
  6. Mon Sep 12 20:31:13 2016 Attempting to establish TCP connection with [AF_INET]5.39.182.24:1194 [nonblock]
  7. Mon Sep 12 20:31:23 2016 TCP: connect to [AF_INET]5.39.182.24:1194 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
  8. Mon Sep 12 20:31:38 2016 TCP: connect to [AF_INET]5.39.182.24:1194 failed, will try again in 5 seconds: Connection timed out (WSAETIMEDOUT)
  9.  
  10. root@pine64:/etc# cat /etc/openvpn/server.conf
  11. local 192.168.1.20 # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
  12. dev tun
  13. #proto udp #Some people prefer to use tcp. Don't change it if you don't know.
  14. proto tcp
  15. port 1194
  16. ca /etc/openvpn/easy-rsa/keys/ca.crt
  17. cert /etc/openvpn/easy-rsa/keys/pine64.crt # SWAP WITH YOUR CRT NAME
  18. key /etc/openvpn/easy-rsa/keys/pine64.key # SWAP WITH YOUR KEY NAME
  19. dh /etc/openvpn/easy-rsa/keys/dh2048.pem # If you changed to 2048, change that here!
  20. server 10.8.0.0 255.255.255.0
  21. # server and remote endpoints
  22. ifconfig 10.8.0.1 10.8.0.2
  23. # Add route to Client routing table for the OpenVPN Server
  24. push "route 10.8.0.1 255.255.255.255"
  25. # Add route to Client routing table for the OpenVPN Subnet
  26. push "route 10.8.0.0 255.255.255.0"
  27. # your local subnet
  28. push "route 192.168.1.20 255.255.255.0" # SWAP THE IP NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
  29. # Set primary domain name server address to the SOHO Router
  30. # If your router does not do DNS, you can use Google DNS 8.8.8.8
  31. #push "dhcp-option DNS 192.168.2.1" # This should already match your router address and not need to be changed.
  32. push "dhcp-option DNS 8.8.8.8" # This should already match your router address and not need to be changed.
  33. # Override the Client default gateway by using 0.0.0.0/1 and
  34. # 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
  35. # overriding but not wiping out the original default gateway.
  36. push "redirect-gateway def1"
  37. client-to-client
  38. duplicate-cn
  39. keepalive 10 120
  40. tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
  41. cipher AES-128-CBC
  42. comp-lzo
  43. user nobody
  44. group nogroup
  45. persist-key
  46. persist-tun
  47. status /var/log/openvpn-status.log 20
  48. log /var/log/openvpn.log
  49. verb 1
  50.  
  51. root@pine64:/etc# cat /etc/iptables-firewall-rules.backup
  52. # Generated by iptables-save v1.4.21 on Sun Sep 11 21:19:15 2016
  53. *filter
  54. :INPUT ACCEPT [16429:2363941]
  55. :FORWARD ACCEPT [0:0]
  56. :OUTPUT ACCEPT [17426:8592638]
  57. -A INPUT -i eth0 -p udp -m state --state NEW -m udp --dport 1194 -j ACCEPT
  58. -A INPUT -i tun+ -j ACCEPT
  59. -A FORWARD -i tun+ -j ACCEPT
  60. -A FORWARD -i tun+ -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
  61. -A FORWARD -i eth0 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT
  62. -A OUTPUT -o tun+ -j ACCEPT
  63. COMMIT
  64. # Completed on Sun Sep 11 21:19:15 2016
  65. # Generated by iptables-save v1.4.21 on Sun Sep 11 21:19:15 2016
  66. *nat
  67. :PREROUTING ACCEPT [1172:103090]
  68. :INPUT ACCEPT [157:31732]
  69. :OUTPUT ACCEPT [205:14166]
  70. :POSTROUTING ACCEPT [205:14166]
  71. -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j SNAT --to-source 192.168.1.20
  72. -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
  73. -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j SNAT --to-source 192.168.1.20
  74. COMMIT
  75. # Completed on Sun Sep 11 21:19:15 2016
  76.  
  77. root@pine64:/etc# route
  78. Kernel IP routing table
  79. Destination Gateway Genmask Flags Metric Ref Use Iface
  80. default speedport.ip 0.0.0.0 UG 0 0 0 eth0
  81. 10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
  82. 10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
  83. link-local * 255.255.0.0 U 1000 0 0 eth0
  84. 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement