Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda CloudGen Firewall 9.0
Results will update as you type.
  • Deployment
  • Get Started
  • Network
  • High Availability
  • Licensing
  • Administration
  • Authentication
  • Cloud Integration
  • Assigned Services
  • Services
    • Access Control Service
    • DHCP
      • How to Configure the DHCP Service
      • Advanced DHCP Settings
      • How to Configure DHCP IP Address Reservations
      • How to Configure a DHCP Relay over a VPN Tunnel
      • How to Configure DHCPv6 with Prefix Delegation
      • How to Configure the DHCP Relay Agent
    • DNS
    • Dynamic Routing Protocols (OSPF/RIP/BGP)
    • Firewall
    • HTTP Proxy
    • SIP Proxy
    • URL Filter
    • Virus Scanner
    • VPN
    • Wi-Fi
    • CloudGen Access Proxy
  • Automated Critical Updates
  • Firewall Control Center
  • Barracuda Secure Connector
  • Best Practice
  • Implementation Guides
  • Monitoring and Reporting
  • Maintenance
  • Remote Access Clients
  • Management Interfaces, Tools, and Apps
  • TUFIN Integration API Service
  • Hardware Models
  • REST API

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    How to Configure a DHCP Relay over a VPN Tunnel
    Published Jul 21, 2025

    How to Configure a DHCP Relay over a VPN Tunnel

    Subscribe

    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.

    dhcp_rel_vpn01.png

    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.

    1. Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > Firewall > Forwarding Rules.

    2. Click Lock.

    3. Right-click in the main are and select New and Rule. The Edit Rule window opens.

    4. 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.

    5. Click OK.

    6. 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

    1. Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > DHCP Relay > DHCP Relay Settings.

    2. Click Lock.

    3. Select the Enable Relay for IPv4 check box.

    4. Click + for each Relay Interface the DHCP Relay listens on:

      1. Select the internal interface used to connect to the DHCP server from the list. E.g., eth0

      2. Enter the VPN interface used for the Site-to-Site tunnel in the Other textbox. E.g., vpn0

    relay01.png
    1. Click + and add the DHCP Server IPs. E.g., 10.0.10.100

    relay02.png
    1. 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.

    1. Go to CONFIGURATION > Configuration Tree > Box > Infrastructure Services > Host Firewall Rules.

    2. Click Lock.

    3. Click on the Outbound rule set.

    4. Create a new PASS access rule. The Edit Rule window opens.

    5. Enter the Name of the rule. E.g., BOX-DHCP-OUT-RELAY-VPN

    6. Use the following settings for the access rule:

      • Action – Select PASS. 

      • Source – Select Any.

      • Service – Select DHCP-S.

      • Destination – Select World.

    7. Select <explicit-conn> from the Connection Method list. 

    8. Double-click Std Explicit in the Connection Method section. The Edit / Create a Connection Object window opens.

    relay05.png
    1. From the Translated Source IP list, select Explicit IP.

    2. To reach the DHCP server, enter a SharedIP that is also part of the tunnel configuration (local network).

    In case the management IP/network is not inside the VPN Site-to-Site tunnel, you must enter an available server IP that is also part of the tunnel configuration (local network) to reach the DHCP server.

    relay06.png
    1. Click OK.

    2. Click OK.

    3. Place the access rule above the BOX-DHCP-OUT rule.

    4. Click Send Changes and Activate.

    Clients in the remote network can now receive DHCP leases from the DHCP server in the local network.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 13, "requestCorrelationId": "f3c480f557c84f80abc890fed27f70cf"}