Netgate SG-1000 microFirewall

Author Topic: Additional Pool in DHCP, MAC address, MutilWAN, and PIA OpenVPN.  (Read 124 times)

0 Members and 1 Guest are viewing this topic.

Offline aah57

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Hi all,

Despite the confusing subject line, my problem is pretty simple, except that I don't have the required pfSense knowledge as to solve it on my own. I have three WANs, two are setup as loadbalance/failover, and the third wan is a standalone wan that I have set my PIA openvpn over. My problem is that I would like a certain IP range (or even simpler, certain clients to talk through the openvpn via the third wan gateway, and rest talk through the the default loadbalance gateway).

(WAN1 + WAN2) ---> LB Gateway while wan1 is the default gateway.
LAN subnet 10.10.10.0, DHCP POOL: 10.10.10.100 - 10.10.10.179


WAN3 --> PIA OVPN -----> For certain clients
DHCP Additional Pool: 10.10.10.180 - 10.10.10.200

I suppose one way is to assign MAC addresses to the additional pool. But, what would be the best way to approach this problem?

Thanks




« Last Edit: January 27, 2018, 12:49:41 am by aah57 »

Offline ashima

  • Full Member
  • ***
  • Posts: 138
  • Karma: +2/-0
    • View Profile
Re: Additional Pool in DHCP, MAC address, MutilWAN, and PIA OpenVPN.
« Reply #1 on: January 27, 2018, 02:09:56 am »
You can sort of achieve this by ip-mac binding but the best way to do this is either use managed switch or vlan.

Ashima

Offline aah57

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Additional Pool in DHCP, MAC address, MutilWAN, and PIA OpenVPN.
« Reply #2 on: January 27, 2018, 03:43:04 am »
Hi Ashima,

Thanks for the reply. As far as my understanding goes the IP-MAC binding only works when the client IP is outside of dhcp pool. I tried this before. As for VLANs, I am absolutely clueless (have to start reading up on it). I want the clients to be able to talk to each other inside the LAN, but shuttle out through above gateways when connecting to the internet.

PS. this setup is for home use.

Offline JKnott

  • Hero Member
  • *****
  • Posts: 1198
  • Karma: +53/-11
    • View Profile
Re: Additional Pool in DHCP, MAC address, MutilWAN, and PIA OpenVPN.
« Reply #3 on: January 27, 2018, 06:02:16 am »
You won't see MAC addresses over the VPN in tunnel mode.  You have to use TAP mode.  However, a DHCP server at the remote site could also handle it, with tunnel mode.

Offline ashima

  • Full Member
  • ***
  • Posts: 138
  • Karma: +2/-0
    • View Profile
Re: Additional Pool in DHCP, MAC address, MutilWAN, and PIA OpenVPN.
« Reply #4 on: January 27, 2018, 07:54:29 am »


   You can have two dhcp pools but you cannot tell this client should select from pool A and this client should select from pool B. So all the clients you want to be in pool B give them fixed ip. But remember if any other client which was suppose to get dhcp address from Pool A, fix his ip to pool B then he'll be allowed.

So to avoid this you should either use Managed switch or go for vlan.

If you have all wireless devices, then setting up vlans is quite simple. Only thing then required will be device which can tag the clients. Most of the APs now a days come vlan tagging facility.

If you have desktops then you have to invest in managed switch.

I can help you setup vlans, incase you decide to do so.