Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. client
  2. dev tun
  3. proto tcp-client
  4. remote-random
  5. <connection>
  6. remote X.X.X.111 5600
  7. </connection>
  8. #<connection>
  9. #remote X.X.X.111 5602
  10. #</connection>
  11. tls-auth keys/ta.key 1
  12. ca keys/ca.crt
  13. cert keys/client.crt
  14. key keys/client.key
  15. ns-cert-type server
  16. resolv-retry infinite
  17. nobind
  18. persist-key
  19. persist-tun
  20. reneg-sec 0
  21. redirect-gateway def1
  22. keysize 256
  23. comp-lzo
  24. verb 1
  25. log-append log/Triple-PA1.log
  26. status log/Triple-PA1-status.log
  27. script-security 2
  28. auth-nocache
  29. #auth-user-pass
  30. auth-user-pass auth
  31. up scripts/pa1_up
  32. down scripts/downenter code here
  33.  
  34. #scripts/pa1_up
  35.  
  36. root@bt:/etc/openvpn/scripts# ps ax |grep 'openvpn'
  37. 1635 tty1 S 0:00 /usr/local/bin/gopenvpn
  38. 1638 ? Ss 0:00 /usr/sbin/openvpn --management-query-passwords --cd /etc/openvpn --daemon --management-hold --script-security 2 --management 127.0.0.1 37087 --config /etc/openvpn/Triple_PA1.conf
  39. 1650 pts/0 S+ 0:00 grep --color=auto openvpn
  40.  
  41. #!/bin/sh -e
  42. mv /etc/resolv.conf /etc/resolv_temp.conf
  43. echo nameserver X.X.X.249 > /etc/resolv.conf
  44. exit 0
  45.  
  46. eth2 Link encap:Ethernet HWaddr 08:00:27:50:d8:48
  47. inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
  48. inet6 addr: fe80::a00:27ff:fe50:d848/64 Scope:Link
  49. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  50. RX packets:2718 errors:0 dropped:0 overruns:0 frame:0
  51. TX packets:2284 errors:0 dropped:0 overruns:0 carrier:0
  52. collisions:0 txqueuelen:1000
  53. RX bytes:2796888 (2.7 MB) TX bytes:295335 (295.3 KB)
  54. Interrupt:10 Base address:0xd020
  55.  
  56. lo Link encap:Local Loopback
  57. inet addr:127.0.0.1 Mask:255.0.0.0
  58. inet6 addr: ::1/128 Scope:Host
  59. UP LOOPBACK RUNNING MTU:16436 Metric:1
  60. RX packets:91 errors:0 dropped:0 overruns:0 frame:0
  61. TX packets:91 errors:0 dropped:0 overruns:0 carrier:0
  62. collisions:0 txqueuelen:0
  63. RX bytes:6289 (6.2 KB) TX bytes:6289 (6.2 KB)
  64.  
  65. root@bt:/etc/openvpn/scripts# cat /etc/resolv.conf
  66. nameserver X.X.X.249
  67.  
  68. root@bt:/etc/openvpn/scripts# ping X.X.X.249
  69. PING X.X.X.249 (X.X.X.249) 56(84) bytes of data.
  70. (freezes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement