Astrill Setup Manual:Setup WireGuard on pfSense: Difference between revisions

From Astrill Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
== '''STEP 1:''' Login into your pfSense ==
== '''STEP 1:''' Login into your pfSense ==
Turn on your pfSense router and login as root user by selecting "shell".
Turn on your pfSense router and login as root user by selecting "shell".
[[File:PfSense-wireguard1.png]]<br><br>
== '''STEP 2:''' Install WireGuard ==
Run following command to install WireGuard: '''pkg install wireguard'''
[[File:PfSense-wireguard2.png]]
'''If it fails to install then install Bash first and then try again to install WireGuard.'''
----
To install bash run following command: '''pkg install bash'''
[[File:PfSense-wireguard3.png]]<br><br>
== '''STEP 3:''' Check If WireGuard is Installed Properly ==
Once WireGuard is installed, login into pfSense through your browser.
[[File:PfSense-wireguard4.png]]
----
And check under "VPN" tab, you'll see "WireGuard" option. If yes, follow rest of the steps, otherwise repeat above steps carefully.
[[File:PfSense-wireguard5.png]]<br><br>
== '''STEP 4:''' Download Configuration File For WireGuard ==
=== '''Login into your Astrill account.''' ===
[[File:PfSense-wireguard6.png]]
----
=== '''Then go to "VPN Services" tab.''' ===
[[File:PfSense-wireguard7.png]]
----
=== '''Go to "WireGuard Configuration" option.''' ===
[[File:PfSense-wireguard8.png]]
----
=== '''Type name for WireGuard .conf file and select your desired server and download the .conf file.''' ===
[[File:PfSense-wireguard9.png]]<br><br>
----
== '''STEP 5:''' Upload Configuration File ==
=== '''Login again into pfSense through browser and go to "Diagnostic" tab and select "Command Prompt".''' ===
[[File:PfSense-wireguard10.png]]
----
[[File:PfSense-wireguard11.png]]
----
[[File:PfSense-wireguard12.png]]
----
[[File:PfSense-wireguard13.png]]
----
=== '''Once configuration file is uploaded, you'll see a green indicator with a message "uploaded".''' ===
[[File:PfSense-wireguard14.png]]<br><br>
----
== '''STEP 6:''' Connect WireGuard ==
Run following command in command shell: '''wg-quick up /tmp/wg0.conf'''
[[File:PfSense-wireguard15.png]]
----
You'll see following output if VPN is connected successfully.
[[File:PfSense-wireguard1616.png]]
----
=== '''Check IP''' ===
Once VPN is connected, run following command to check if IP is changed: '''curl ipinfo.io'''
[[File:PfSense-wireguard17.png]]<br><br>
----
== '''How to Disconnect WireGuard''' ==
To disconnect WireGuard, run following command: '''wg-quick down /tmp/wg0.conf'''
[[File:PfSense-wireguard1818.png]]<br><br>
----

Latest revision as of 14:58, 12 July 2020

STEP 1: Login into your pfSense

Turn on your pfSense router and login as root user by selecting "shell".

PfSense-wireguard1.png

STEP 2: Install WireGuard

Run following command to install WireGuard: pkg install wireguard

PfSense-wireguard2.png

If it fails to install then install Bash first and then try again to install WireGuard.


To install bash run following command: pkg install bash

PfSense-wireguard3.png

STEP 3: Check If WireGuard is Installed Properly

Once WireGuard is installed, login into pfSense through your browser.

PfSense-wireguard4.png


And check under "VPN" tab, you'll see "WireGuard" option. If yes, follow rest of the steps, otherwise repeat above steps carefully.

PfSense-wireguard5.png

STEP 4: Download Configuration File For WireGuard

Login into your Astrill account.

PfSense-wireguard6.png


Then go to "VPN Services" tab.

PfSense-wireguard7.png


Go to "WireGuard Configuration" option.

PfSense-wireguard8.png


Type name for WireGuard .conf file and select your desired server and download the .conf file.

PfSense-wireguard9.png


STEP 5: Upload Configuration File

Login again into pfSense through browser and go to "Diagnostic" tab and select "Command Prompt".

PfSense-wireguard10.png


PfSense-wireguard11.png


PfSense-wireguard12.png


PfSense-wireguard13.png


Once configuration file is uploaded, you'll see a green indicator with a message "uploaded".

PfSense-wireguard14.png


STEP 6: Connect WireGuard

Run following command in command shell: wg-quick up /tmp/wg0.conf

PfSense-wireguard15.png


You'll see following output if VPN is connected successfully.

PfSense-wireguard1616.png


Check IP

Once VPN is connected, run following command to check if IP is changed: curl ipinfo.io

PfSense-wireguard17.png


How to Disconnect WireGuard

To disconnect WireGuard, run following command: wg-quick down /tmp/wg0.conf

PfSense-wireguard1818.png