pfsense:vpn:openvpn:timed_access_for_openvpn
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pfsense:vpn:openvpn:timed_access_for_openvpn [2020/11/30 09:48] – [Assign Individual IPs to OpenVPN users] peter | pfsense:vpn:openvpn:timed_access_for_openvpn [2021/02/19 10:41] (current) – [Create Firewall Rules] peter | ||
---|---|---|---|
Line 9: | Line 9: | ||
To allow access of our users only in specific time intervals it is necessary to create a schedule: | To allow access of our users only in specific time intervals it is necessary to create a schedule: | ||
- | * Navigate to **Firewall -> Schedules**. | + | Navigate to **Firewall -> Schedules**. |
- | | + | |
- | | + | Click the **Add** button. |
- | * Select the month to apply it to. | + | |
- | * Select the days on the calendar. | + | In **Schedule Information**: |
- | * Select the time range and click on **Add Time**. | + | |
- | * Repeat the procedure to add another | + | |
- | | + | |
+ | * Month: | ||
+ | | ||
+ | | ||
+ | * Click **Add Time**. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | All created ranges will be displayed under **Configured Ranges**. | ||
+ | |||
+ | </ | ||
---- | ---- | ||
Line 22: | Line 35: | ||
===== Assign Individual IPs to OpenVPN users ===== | ===== Assign Individual IPs to OpenVPN users ===== | ||
- | At this point, in order to implement the scheduling created in the Firewall Rules, it is necessary to assign a very specific static IP address of the VPN tunnel to the users we want to limit. | + | In order to implement the scheduling created in the Firewall Rules, it is necessary to assign a very specific static IP address of the VPN tunnel to the users we want to limit. |
- | This is necessary because the firewall manages the rules via IP addresses. | + | * This is necessary because the firewall manages the rules via IP addresses. |
- | To assign a static IP address to the user, we will proceed as follows: | + | To assign a static IP address to the user: |
* Navigate to **VPN -> OpenVPN -> Client Specific Overrides**. | * Navigate to **VPN -> OpenVPN -> Client Specific Overrides**. | ||
- | * Click the **Add** button | + | * Click the **Add** button. |
In the configuration screen that will appear, it will be sufficient to configure only 2 items: | In the configuration screen that will appear, it will be sufficient to configure only 2 items: | ||
- | * Common Name: **The name of the VPN user**. | + | |
- | * Advanced: | + | |
- | * Where IP_TUNNEL will be the IP address of the tunnel that we would like to be assigned to the user. | + | * Advanced: |
- | * Example: | + | |
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | The format for the **Advanced entry** is: | ||
+ | |||
+ | * **IP_TUNNEL**: | ||
+ | * **NETMASK**: | ||
Repeat the procedure for each user to be managed. | Repeat the procedure for each user to be managed. | ||
- | < | + | </WRAP> |
- | **TODO**: | + | |
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Create Firewall Rules ===== | ||
+ | |||
+ | Navigate to **Firewall -> Rules**. | ||
+ | |||
+ | Select the **OpenVPN** interface. | ||
+ | |||
+ | Click **Add** button to create a new rule to be placed at the top. | ||
+ | |||
+ | * Action: | ||
+ | * Interface: | ||
+ | * Address Family: | ||
+ | * Protocol: | ||
+ | * Source: | ||
+ | * Destination: | ||
+ | |||
+ | * Advanced Options: In the Schedule, Select the Schedule created previously. | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | Repeat the procedure for each user to whom you want to grant access to the server at a certain time range. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | To prevent the user from accessing other devices on the network, an additional rule that blocks access to everything should be placed UNDER the previously created access rules and associated with it. | ||
+ | |||
+ | * Navigate to **Firewall -> Rules**. | ||
+ | * Action: | ||
+ | * Interface: | ||
+ | * Address Family: | ||
+ | * Protocol: | ||
+ | * Source: | ||
+ | * Destination: | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE**: | ||
+ | |||
+ | * Green indicates this is in scheduling range and therefore there will be access. | ||
+ | * Yellow indicates this is out of the scheduling range and therefore there will not be access. | ||
</ | </ | ||
pfsense/vpn/openvpn/timed_access_for_openvpn.1606729725.txt.gz · Last modified: 2020/11/30 09:48 by peter