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

    Assign given MAC Address to Virtual IP

    Scheduled Pinned Locked Moved NAT
    4 Posts 3 Posters 2.6k 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.
    • F
      frhack
      last edited by

      I'm trying to use pfsense as firewall in OVH infrastructure.

      OVH gives a MAC address for every public IP.

      I need to specify the given MAC addresses to the virtual ip in OVH in order to establish DMZ networking (OVH rule).

      Is there a way to assign the given MAC in pfsense Virtual IP ?

      From the web GUI is not possible, maybe from shell ?

      thanks

      1 Reply Last reply Reply Quote 0
      • F
        frhack
        last edited by

        I found a workaround as follows.

        (I' m in VMWARE esxi)

        for every public IP:

        • create a virtual NIC attached to WAN network
        • create in pfsense a new WAN interface with the assigned MAC address WAN_xxx_xxx_xxx_xxx (where xxx_xxx_xxx_xxx is the public IP)

        At the end I will have n WAN Interfaces, one every public IP (for example 16 or 32 …)

        ...is there any drawback?

        1 Reply Last reply Reply Quote 0
        • A
          a77ila
          last edited by

          I did the exact same thing on my pfsense running on proxmox.
          The request from every wan to the virtual IP's works like a charm.
          The problem is when i try to make a given host to exit with a choosen virtual ip instead of the default gateway.

          Suggestions anyone?

          K 1 Reply Last reply Reply Quote 0
          • K
            Kevin Maschke @a77ila
            last edited by

            @a77ila I'm facing the same issue on OVH.
            I see I'll need one Network interface on the PFSense VM for each Public IP... I hoped to be able to have only 1 NIC on the VM using the OVH MAC, and assign the rest as virtual IPs, but it does not seem to work this way.

            The problem is when i try to make a given host to exit with a choosen virtual ip instead of the default gateway.

            That is something I'm looking at too, I need two of my VMs to exit as two specific public IPs, but haven't managed to do this yet either :(

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