Port forwarding in Pfsense

shape
shape
shape
shape
shape
shape
shape
shape

In this guide, we will present a step-by-step process to configure traffic routing from your VPS to the private network, allowing the use of a public IP in the local environment efficiently and securely.

Installing pfSense on the VPS

Installation email You will receive an email with a link that will redirect you to the pfSense installation screen.

First login After the installation, access pfSense using the default credentials:

  • Username: admin
  • Password: pfsense

Immediately change the credentials

1. Click on Change Password in the User Manager.

Click on Change Password in the User Manager.

2. Enter the password

Enter the password

3. Enter the password again

Enter the password again

4. Click on Save

Click on Save


Creating Firewall Rules

To avoid losing access when making changes to the interfaces, create a rule in the firewall:

1. Clique em Firewall

Click on Firewall

2. Clique em Regras

Click on Rules

3. Clique em Adicionar

Click on Add

4. Select the WAN address

Select the WAN address

5. Selecione HTTP (80)

Select HTTP (80)

6. Clique em Salvar

1. Click on system

Click on Save


Changing the language

If you prefer, you can change the language to Portuguese (Brazil):

Click on system

2. Click on General Setup

Click on General Setup

3. Select Portuguese (Brazil)

Select Portuguese (Brazil)

Click without saving.

1. Click on System

Step 1 screenshot

2. Click on Update

Step 2 screenshot

Configuring OpenVPN

Create a VPN interface
Configure a new interface for the VPN

Create a user profile
Configure a specific profile for the VPN user.

Download the OpenVPN client file
After configuration, download the OpenVPN client file for use on the local device.

Port Forwarding

Here the traffic is already being redirected.

Port forwarding is essential to access local services from the VPS.
Here is an example to forward the RDP (Remote Desktop Protocol) port:

Configure the forwarding in the pfSense panel. Direct the specific ports to the local IP of the desired machine. Test access to ensure the service is working correctly.

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest news

Latest news directly from our blog.