Advertisement
Guest User

Ihope thisworks

a guest
Jun 30th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.73 KB | None | 0 0
  1. #author: Cathal Cleary (AIT)
  2. #Subject: Setting Up and Running VPN in Kali Linux
  3. #Source: http://www.blackmoreops.com/2015/03/01/setup-vpn-on-kali-linux/
  4.  
  5. #Step 1: Enabling VPN:
  6.  
  7. #To enable all 'features':
  8.  
  9.  aptitude -r install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome
  10.  
  11. #To only enable VPN:
  12.  
  13. apt-get install network-manager-openvpn
  14.  
  15. #Make sure to restart service-network-manager and networking with the following 2 commands
  16.  
  17. service networking restart
  18.  
  19. service network-manager restart
  20.  
  21. #Step 2: Dowload and Extract openVPN Certs from PIA by using the following 2 commands
  22.  
  23. # Take note of where these filea are extracted to as they will be needed late.
  24.  
  25. wget https://www.privateinternetaccess.com/openvpn/openvpn.zip
  26.  
  27. unzip -q openvpn.zip -d /etc/openvpn
  28.  
  29. #Step 3: Configure Network Manager to use PIA VPN
  30.  
  31. # Navigate to: Network Manager -> Edit Connections (May vary depending on Kali version. It's different on mine!)(Image_1)
  32.  
  33. #Navigate to VPN -> add (Image_2)
  34.  
  35. #Click Drop Down Menu and Choose OpenVPN (Image 3)
  36.  
  37. #Click 'Create' and enter the following details/Similare Details (Image 4)
  38. # It is not very clear on whethere you have to use a gateway that is local to your area or
  39. #whether you can use anyone of the available ones. They are listed below just in case. Use a local one if possible to be sure.
  40.  
  41. #    United States (US VPN)
  42. #=========================================
  43. #    us-midwest.privateinternetaccess.com
  44. #    us-east.privateinternetaccess.com
  45. #    us-west.privateinternetaccess.com
  46. #    us-texas.privateinternetaccess.com
  47. #    us-california.privateinternetaccess.com
  48. #    us-florida.privateinternetaccess.com
  49.  
  50. #    Canada (CA VPN)
  51. #======================================
  52. #    ca.privateinternetaccess.com
  53. #    ca-toronto.privateinternetaccess.com
  54.  
  55. #    United Kingdom (UK VPN)
  56. #========================================
  57. #    uk-london.privateinternetaccess.com
  58. #    uk-southampton.privateinternetaccess.com
  59.  
  60. #    Switzerland (Swiss VPN)
  61. #=========================================
  62. #    swiss.privateinternetaccess.com
  63.  
  64. #    Netherlands (NL VPN)
  65. #============================================
  66. #    nl.privateinternetaccess.com
  67.  
  68. #    Sweden (SE VPN)
  69. #=============================================
  70. #    sweden.privateinternetaccess.com
  71.  
  72. #    France (FR VPN)
  73. #================================================
  74. #    france.privateinternetaccess.com
  75.  
  76. #    Germany (DE VPN)
  77. #================================================
  78. #    germany.privateinternetaccess.com
  79.  
  80. #    Romania (RO VPN)
  81. #================================================
  82. #    ro.privateinternetaccess.com
  83.  
  84. #    Hong Kong (HK VPN)
  85. #===============================================
  86. #    hk.privateinternetaccess.com
  87.  
  88. #    Israel (Israel VPN)
  89. #==============================================
  90. #    israel.privateinternetaccess.com
  91.  
  92. #    Australia (Australia VPN)
  93. #==============================================
  94. #    aus.privateinternetaccess.com
  95.  
  96. #    Japan (Japan VPN)
  97. #===============================================
  98. #    japan.privateinternetaccess.com
  99.  
  100. #You can choose your own username and password
  101. #The ca.crt file in the CA Certificate field refers to one of the files extracted earlier. Click on the folder icon an navigate to this file.
  102. #Once details are entered, click save.
  103.  
  104. Step 4. Connect to VIA VPN.
  105.  
  106. Navigate to Network Manager -> PrivateInternetAccess VPN (Image_5)
  107.  
  108. #Apparently 'You will see a yellowish colored connection indicator while connecting.' I did not see it though and am not sure if it works or not as I get no indication of successful connection
  109. #This maybe be because I have no local Gateway.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement