• DrayOS 4, imported, firewall_rules, lan_to_lan_vpn, traffic_filtering, routing_restriction, vpn_access_control, ip_object

Restrict Remote VPN Network's Access to Specific IP (DrayOS4)

There are two ways to achieve this: by VPN configuration and by Firewall rules.

Method 1: By VPN Configuration

1. In the LAN-to-LAN VPN profile of the Vigor Router in Branch Office, change the Remote Network IP from the whole network to the server's IP only.

Remote network settings in the VPN profile

2. On the LAN-to-LAN VPN profile of the Vigor Router in Head Office, change the Local Network IP from the whole network to the server's IP only.

Local Network Settings in the VPN profile

3. When VPN is up, Branch Office Router will only have the routing information to the server's IP 192.168.188.10/32 so that the clients in Branch Office can only access the server.

the routing information added by VPN

Method 2: By Firewall Rule

1. We could create the firewall rule in the head office router to limit the connection from the branch office. First, go to Objects Setting >> IP Object, click an available index to create an IP Object profile for the server's IP:

  1. Enter Name for identifying the object
  2. Select "LAN/DMZ/RT/VPN" for Interface
  3. Select "Single Address" for Address Type and then enter the server IP address 192.168.188.10
  4. Click OK to save
creating an IP object for the server

2. Click another available index to create an IP Object profile for the branch VPN network,

  1. Enter Name
  2. Select "LAN/DMZ/RT/VPN" for Interface
  3. Select "Subnet Address" for Address Type and then enter the IP address 192.168.1.0 and Subnet Mask 255.255.255.0
  4. Click OK to Save
creating an IP object for the branch VPN network

3. Go to Firewall >> Filter Setup >> Filter Set 2 (Default Data Filter), click an available profile to edit the Firewall rule to pass packets from branch office to the server.

  1. Enable this Firewall rule
  2. Enter Profile Name
  3. Direction: LAN/DMZ/RT/VPN → LAN/DMZ/RT/VPN
  4. Source IP: Select the IP object we created for the branch VPN network
  5. Destination IP: Select the IP object we created for the local server
  6. (Optional) Service Type: specify here if we only want the VPN network to access the server on a specific port
  7. Filter: Pass Immediately
a filter rule that allow the remote network's access to the IP address of the server

4. Click another Index to create an IP Filter rule (the index number should be larger than the one of step 3) to block packets from the branch office to the other IP addresses.

  1. Enable this Firewall rule
  2. Enter Profile Name
  3. Direction: LAN/DMZ/RT/VPN → LAN/DMZ/RT/VPN
  4. Source IP: Select the IP object we created for the branch VPN network
  5. Destination IP: Any
  6. Filter: Block Immediately
a filter rule that blocks all the traffic source from the remote network

And that is the configuration required. We can check Firewall logs on Diagnostics >> Syslog Explorer page to see if there is traffic being filtered.

syslog showing the firewall is working correctly