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

    WAN MAC Spoofing -- WITHOUT web configurator

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 170 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.
    • J
      jhg
      last edited by

      Simple question.

      Context: Replacing old pfSense CE firewall with new device

      I need to configure a spoofed MAC for my WAN interface due to the cable modem being pinned to my old pfSense firewall device. I can find LOTS of posts saying how to do this from the web UI, but I need to do it from the command line. I would have thought this would be easy to find, but my Google-fu seems to be failing me.

      Where is the spoofed MAC stored, and what is the correct syntax for setting it?

      pfSense CE on Beelink EQ12 (N100 CPU, dual 2.5Gbe Intel NICs)
      Hitron CODA56 - Comcast 2.5Gb cable

      G 1 Reply Last reply Reply Quote 0
      • J
        jhg
        last edited by

        I figured this out by "spoofing" the old firewall's WAN MAC to its builtin MAC, and then searched

        find / -type f -exec grep -l [existing MAC] {} +

        which told me it's in /cf/conf/config.xml at (X)path //interfaces/wan/spoofmac

        Still being a newbie at pfSense config from the console, I now see I could have guessed this :-)

        Hopefully this will be of some use to others.

        pfSense CE on Beelink EQ12 (N100 CPU, dual 2.5Gbe Intel NICs)
        Hitron CODA56 - Comcast 2.5Gb cable

        1 Reply Last reply Reply Quote 1
        • G
          Gblenn @jhg
          last edited by

          @jhg You could edit the /conf/config.xml directly. Search for 'spoofmac' and the first instance should probably be your WAN.
          https://docs.netgate.com/pfsense/en/latest/config/xml-configuration-file.html

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