OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • DHCP relay across a NAT doesn't use correct GIADDR
« previous next »
  • Print
Pages: [1]

Author Topic: DHCP relay across a NAT doesn't use correct GIADDR  (Read 4336 times)

Howie

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
DHCP relay across a NAT doesn't use correct GIADDR
« on: February 22, 2018, 08:28:42 pm »
I have a opnsense VM acting as a NAT for a lab environment, with a DHCP server sitting in the outside network. If I enable DHCP relay on the lab network, then the DHCP server gets requests as expected, except:

The source IP of the DHCP request is the outside interface of the opnsense 17.7.5 box, but the GIADDR inside the DHCP request is the inside interface IP of the opnsense. So the DHCP server (ISC DHCPd) tries to reply to that address and fails.

If I add a static route on the DHCP server for the 'hidden' LAN interface of the opnsense box, then the DHCP reply gets through, but that isn't correct!
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 1543
  • Karma: 166
    • View Profile
Re: DHCP relay across a NAT doesn't use correct GIADDR
« Reply #1 on: February 24, 2018, 09:07:56 am »
Does the DHCP server have a subnet definition for the 'hidden' LAN segment? In that case it will need a route to it.

Bart...
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • DHCP relay across a NAT doesn't use correct GIADDR
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2