Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Is possible to use Amazon's DHCP in pfsense?

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 3 Posters 486 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      spiny
      last edited by

      Hello everyone!

      I'm using pfsense as a router in a VPC -aws environment.

      I want that the routing table on pfsense router is automatically reconfigured when a new instance in VPC is created.

      After hours of struggling I thought that the best option to achieve this is to use DNS with DHCP.

      However only Amazon's dhcp can be used in VPC ( i can't decide the IP addresses of the new instances), so my question was if it is possible to set only DNS in pfsense and get the address from amazon's dhcp service.

      I'm sorry if I'm using some terms improperly but I'm new to everything here ( pfsense, VPC, DHCP and DNS)

      Thanks for your answers!

      1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott
        last edited by

        Where is Amazon's DHCP server?  I seriously doubt you'd be able to reach it.  A DHCP server is normally on the local network, though a relay agent can be used if the server is elsewhere.  This means there's need to be a relay agent within reach of your local network and I doubt that exists.  Why would you do that anyway?  What would it get you?  You get your WAN address from your ISP and nowhere else and you'd normally have your own DHCP server for your LAN.  However, you could easily use another DNS server than the one provided by your ISP.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          Unless they have some way to target your VPC subnet's DHCP server at an RFC2136 DNS server for dynamic updates, probably not.

          I can't remember ever seeing anything like that.

          There is generally a DNS record inserted into AWS DNS for that though.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • S
            spiny
            last edited by

            Hi!

            Thanks for your answers, you were very kind!

            So, it seems to me that my solution does not work and I have to think something else.

            I would like to ask you if you had, based on your experience, any suggestion to achieve my goal, which is: have a software router which detect when there is a new VM inside a VPC.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.