User Tools

Site Tools


pfsense:vpn:openvpn:assign_a_fixed_ip_to_a_remote_client

This is an old revision of the document!


PFSense - VPN - OpenVPN - Assign a fixed IP to a remote client

Assigning a fixed IP to a client that connects to a VPN, in particular OpenVPN, with a specific user, can then be used in firewall rules.

It is assumed that an OpenVPN server has already been created and one or more correctly configured users exist.


Configure the Client Specific Overrides in OpenVPN

Identify an IP address that must belong to the VPN network that cannot be assigned to other users.

Lets say the assigned network is 10.10.94.0/24 and therefore we have chosen the IP 10.10.94.30 for this user.

Subsequently, we precisely identify the user to whom we want to assign the IP just chosen, checking from System → User Manager → Users.

Select the specific user to assign the fixed IP address to. Lets assume this is User1.

Navigate to VPN → OpenVPN → Client Specific Overrides.

Click Add.

Select the desired OpenVpn server if there are more than one.

Write the exact name of the user in the Common Name field; in our example: User1. This should be exactly the same in the above “Select the specific user to assign the fixed IP address to.” step.

Go to the bottom of the page and enter in Advanced Settings: ifconfig-push 10.10.94.30 255.255.255.0.

Click Save.

NOTE: From now on when User1 connects to the OpenVPN VPN, they will always be assigned the IP 10.10.94.30,


pfsense/vpn/openvpn/assign_a_fixed_ip_to_a_remote_client.1606692085.txt.gz · Last modified: 2020/11/29 23:21 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki