pfsense:vpn:openvpn:assign_a_fixed_ip_to_a_remote_client
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pfsense:vpn:openvpn:assign_a_fixed_ip_to_a_remote_client [2021/02/17 14:29] – [Configure Firewall Rules for this User] peter | pfsense:vpn:openvpn:assign_a_fixed_ip_to_a_remote_client [2021/02/19 09:56] (current) – [Configure Firewall Rules for this User] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PFSense - VPN - OpenVPN - Assign a fixed IP to a remote client ====== | ====== PFSense - VPN - OpenVPN - Assign a fixed IP to a remote client ====== | ||
- | Assigning | + | By assigning |
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
- | It is assumed that an OpenVPN server has already been created and one or more correctly configured users exist. | ||
---- | ---- | ||
Line 11: | Line 14: | ||
Navigate to **VPN -> OpenVPN**. | Navigate to **VPN -> OpenVPN**. | ||
- | In **Servers**, | + | In **Servers**, |
In this case it is **10.20.30.0/ | In this case it is **10.20.30.0/ | ||
- | The fixed IP address for the client must be a unique IP within this subnet, lets say for example **10.20.30.69**. | + | <WRAP info> |
+ | **NOTE: | ||
+ | |||
+ | For example **10.20.30.69**. | ||
+ | </ | ||
{{: | {{: | ||
Line 42: | Line 50: | ||
* Server List: **Select the desired OpenVPN server**. | * Server List: **Select the desired OpenVPN server**. | ||
- | * Common Name: **peter**. | + | * Common Name: **peter**. |
- | * This should be exactly the same as identified in the earlier step **Identify the user to whom we want to assign the IP just chosen**. | + | |
{{: | {{: | ||
Line 83: | Line 90: | ||
Firewall rules can therefore be configured using this IP. | Firewall rules can therefore be configured using this IP. | ||
- | By placing the IP 10.20.30.69 in the Source field, we can decide which IP our VPN user can access and which ports/ | + | By placing the IP 10.20.30.69 in the Source field, we can decide which IPs our VPN user can access and which ports/ |
- | + | ||
- | In fact, they are exactly rules as if the OpenVPN interface were a physical interface and User1 was using a PC with a fixed IP. | + | |
+ | For example: | ||
+ | * Access is granted to IP Address 192.168.1.123 for the user connecting on 10.20.30.69, | ||
+ | * All other traffic is blocked. | ||
+ | {{: | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
- | The remaining traffic will be blocked! | + | It is only put in to to make explicit the deny which in fact is how the firewall behaves if no rule is applied. |
- | + | ||
- | The last deny rule is actually not needed. | + | |
</ | </ | ||
+ | |||
+ | |||
---- | ---- | ||
Line 103: | Line 112: | ||
===== References ===== | ===== References ===== | ||
- | https:// | + |
pfsense/vpn/openvpn/assign_a_fixed_ip_to_a_remote_client.1613572186.txt.gz · Last modified: 2021/02/17 14:29 by peter