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

    Several mac addresses use OpenVPN interface, rest use WAN?

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 781 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
      Spectrum48k
      last edited by

      I have 2 devices on a home LAN that need to use OpenVPN to access the internet

      device 1 uses a fixed IP and is wired
      device 2 uses DHCP lease and is wireless
      all remaining devices don't require OpenVPN

      At present my pfSense device is simply set up as a regular router with 1x WAN and 1x LAN

      I'm about to create the OpenVPN client and interface

      I'm wondering with my setup above, if its possible to create a rule that says something like "any device with the following MAC addresses must use the OpenVPN interface" ?

      pfSense 2.4.1
      Intel Atom E3845 Quad Core 1.9GHz AES-NI
      Intel Gigabit Ethernet x4
      pico-ITX form factor
      16GB mSATA
      2GB DDR3L

      1 Reply Last reply Reply Quote 0
      • N
        nycfly
        last edited by

        You can create an alias and put the IPs in it that you want to use the OpenVPN interface. Then put a firewall rule on your LAN (above the LAN to any rule) that specifies that traffic with source from that Alias uses the OpenVPN gateway (under advanced).

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

          Add a static lease to your WiFi DHCP client, then add this to the alias list.

          Then, as above, create the firewall rule.

          2.4.3 (amd64)
          and given up on the SG-1000

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

            Ah, good info. I'll give that a try, thanks.

            I'm just doing the prep work at the moment before I add any rules to the firewall.

            All I've done is

            1. Create the CA, for OpenVPN client
            2. Create the OpenVPN client (showing as UP)
            3. Create the interface OPT1 and set it to port ovpnc1

            the problem i have is, as soon as i enable OPT1 interface and reboot, all my internet traffic stops

            nothing has been configured by me to use OPT1, so why is this?

            pfSense 2.4.1
            Intel Atom E3845 Quad Core 1.9GHz AES-NI
            Intel Gigabit Ethernet x4
            pico-ITX form factor
            16GB mSATA
            2GB DDR3L

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