The pfSense Store

Author Topic: IPSec Mobile Client - Different Firewall Rules for Different Users  (Read 120 times)

0 Members and 1 Guest are viewing this topic.

Offline PatrickF

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hi,
we have now setup our first PfSense Box, and running IKEv2 / EAP-TLS VPN Setup for our RoadWarriors.
Since we have multiple people accessing the Network from Outside, we would like to give the Mobile Clients distinct grants/firewall rules:

Admins access to Everything
Developers access to Net 192.168.50.0/24 and 192.168.30.0/24
Support access to Host 192.168.30.30

So what i thought about:

1) We only have one Firewall connected to the WAN.
2) As far as i see, we can only configure one "Mobile Client" VPN Tunnel (P1).
3) We can add more Phase 2 to this Tunnel, but in Phase 2 Settings - while able to define the "Local Network", i did not find any options to force a specific user to a differnt phase.
4) In the Firewall-Rules, i can not find any option to set Firewall-Rules based on the VPN user.

Did i miss something?
Or is this usecase so special, that it's not possible to run this on PfSense. I guess the Usecase is not so special, so how do other people handle this kind of stuff? :)


Hope to finally find some help and fix my remaining vpn issues :-)
Patrick

Offline NogBadTheBad

  • Sr. Member
  • ****
  • Posts: 391
  • Karma: +32/-0
    • View Profile
Re: IPSec Mobile Client - Different Firewall Rules for Different Users
« Reply #1 on: November 28, 2017, 06:18:26 am »
You'll need to use freeradius for user auth and hand out specific IP addresses to each user..

I hand out 172.16.9.0/25 for my own use, allowing me to access the internet + all my local LANS and 172.16.9.128/25  to friends so they can use UK based TV services when abroad, etc ...

https://forum.pfsense.org/index.php?topic=129443.msg750980#msg750980

A typical user looks like this :-

"andy" Cleartext-Password := "XXXXXXXXX", Simultaneous-Use := "1"

   Framed-IP-Address = 172.16.9.1,
   Framed-IP-Netmask = 255.255.255.0,
   Framed-Route = "0.0.0.0/0 172.16.0.1 1"
« Last Edit: November 28, 2017, 06:30:26 am by NogBadTheBad »