To use the same DHCP server in two different networks that are connected by a VPN tunnel, configure DHCP relays on both the local and remote Barracuda CloudGen Firewalls. The DHCP server is located on the local site; the DHCP clients reside on the remote site.
Before You Begin
- Create a Site-to-Site VPN tunnel between both locations.
Use a separate DHCP server, such as the DHCP server on Windows Servers in your network. It is not possible to use the DHCP service on the CloudGen Firewall in this scenario.
Step 1. Create an Access Rule on the Local Firewall
Create a PASS access rule allowing the management IP address of the remote CloudGen Firewall access to the DHCP server.
- Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > Firewall > Forwarding Rules.
- Click Lock.
- Right-click in the main are and select New and Rule. The Edit Rule window opens.
- Create the following access rule:
- Action – Select PASS.
- Source – Enter the management IP address of the remote CloudGen Firewall.
- Service – Create and select a Service object for UDP Port 67.
- Destination – Enter the IP address of the DHCP server.
- Connection – Select Original Source IP.
- Click OK.
- Click Send Changes and Activate.
Step 2. Create a DHCP Relay on the Remote Firewall
Configure DHCP Relay on the remote CloudGen Firewall to pass along
- Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > DHCP Relay > DHCP Relay Settings.
Click Lock.
- Select the Enable Relay for IPv4 check box.
- Click + for each Relay Interface the DHCP Relay listens on:
- Select the internal interface used to connect to the DHCP server from the list. E.g., eth0
- Enter the VPN interface used for the Site-to-Site tunnel in the Other textbox. E.g.,
vpn0
- Click + and add the DHCP Server IPs. E.g., 10.0.10.100
Click Send Changes and Activate.
Step 3. Create a Host Firewall Rule on the Remote Firewall
Create an access rule to allow the traffic of the DHCP Relay service into the VPN tunnel.
- Go to CONFIGURATION > Configuration Tree > Box > Infrastructure Services > Host Firewall Rules.
- Click Lock.
- Click on the Outbound rule set.
- Create a new PASS access rule. The Edit Rule window opens.
- Enter the Name of the rule. E.g.,
BOX-DHCP-OUT-RELAY-VPN
- Use the following settings for the access rule:
- Action – Select PASS.
- Source – Select Any.
- Service – Select DHCP-S.
- Destination – Select World.
- Select <explicit-conn> from the Connection Method list.
- Double-click Std Explicit in the Connection Method section. The Edit / Create a Connection Object window opens.
- From the Translated Source IP list, select Explicit IP.
Enter the management IP address of the CloudGen Firewall as the Explicit IP.
- Click OK.
- Click OK.
- Place the access rule above the BOX-DHCP-OUT rule.
Click Send Changes and Activate.
Clients in the remote network can now receive DHCP leases from the DHCP server in the local network.