# ACL without creating new organization or server

**URL:** <https://forum.pritunl.com/t/acl-without-creating-new-organization-or-server/434>\
**Category:** Pritunl VPN\
**Created:** [October 4, 2022, 3:36am UTC](https://forum.pritunl.com/t/acl-without-creating-new-organization-or-server/434 "2022-10-04T03:36:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iqbalaydrus](https://forum.pritunl.com/user_avatar/forum.pritunl.com/iqbalaydrus/32/163_2.png) [@iqbalaydrus](https://forum.pritunl.com/u/iqbalaydrus)\
**Post date:** [October 4, 2022, 3:36am UTC](https://forum.pritunl.com/t/acl-without-creating-new-organization-or-server/434/1 "2022-10-04T03:36:31Z")

</div>

Hello,

We are planning to migrate our corporate VPN from vanilla OpenVPN to Pritunl. The major points from Pritunl is the SSO and ease of config. But in our previous solution, we have fine-grained ACL for each user. The approach was to use openvpn’s `client-connect` and `client-disconnect` argument and manipulate the iptables like so:

```auto
for role in user_roles:
    for ip in role_ip_map.get(role, []):
        rule = iptc.Rule()
        rule.src = user_ip
        rule.dst = ip
        rule.create_target("ACCEPT")
        chain.append_rule(rule)
# Always allow DNS request to the cluster
rule = iptc.Rule()
rule.src = user_ip
rule.dst = dns_ip
rule.create_target("ACCEPT")
chain.append_rule(rule)
# Drop the rest
rule = iptc.Rule()
rule.src = user_ip
rule.create_target("DROP")
chain.append_rule(rule)

```

Do you think this can be accomplished in pritunl? We have around 20s group, and having that much servers would be counter intuituive for the user.

---

<div class="post-metadata">

**Author:** ![iqbalaydrus](https://forum.pritunl.com/user_avatar/forum.pritunl.com/iqbalaydrus/32/163_2.png) [@iqbalaydrus](https://forum.pritunl.com/u/iqbalaydrus)\
**Post date:** [October 4, 2022, 4:43am UTC](https://forum.pritunl.com/t/acl-without-creating-new-organization-or-server/434/2 "2022-10-04T04:43:48Z")

</div>

Sorry for my ignorance. I noticed there’s a plugin capability for pritunl, will be looking at that now.

---

<div class="post-metadata">

**Author:** ![iqbalaydrus](https://forum.pritunl.com/user_avatar/forum.pritunl.com/iqbalaydrus/32/163_2.png) [@iqbalaydrus](https://forum.pritunl.com/u/iqbalaydrus)\
**Post date:** [October 4, 2022, 9:19am UTC](https://forum.pritunl.com/t/acl-without-creating-new-organization-or-server/434/4 "2022-10-04T09:19:17Z")

</div>

Ok, so using plugin does work for modifying iptables
