Skip to content

Commit

Permalink
Merge pull request #8177 from inverse-inc/feature/role_per_network_cidr
Browse files Browse the repository at this point in the history
Detect CIDR network by dhcp or accounting
  • Loading branch information
jrouzierinverse committed Jul 11, 2024
2 parents d649f07 + 93535f1 commit db5a4af
Show file tree
Hide file tree
Showing 28 changed files with 32,893 additions and 15,804 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -377,3 +377,4 @@ html/captive-portal/profile-templates/default/logo.png:
mkdir -p html/captive-portal/profile-templates/default
cp html/common/packetfence-cp.png /usr/local/pf/html/captive-portal/profile-templates/default/logo.png


1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ Licensed under the GNU General Public License v2.

[mailing_lists]: https://packetfence.org/support/index.html#/community "Community Mailing Lists"


8 changes: 8 additions & 0 deletions conf/documentation.conf
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ You need to make sure the UDP reflector is in place so this works on the product
This is implicitly activated on registration interfaces on which dhcpd runs.
EOT

[network.learn_network_cidr_by_role]
type=toggle
options=enabled|disabled
description=<<EOT
This will enable the learning of the networks tied to each roles on each switches by using the dhcp traffic and radius accounting.
To act on DHCP ACK (that contain the netmask) you need to enable force_listener_on_ack otherwise PacketFence will try to detect the cidr network based on the minumum address and the maximum address.
EOT

[network.rogueinterval]
type=numeric
description=<<EOT
Expand Down
6 changes: 6 additions & 0 deletions conf/pf.conf.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ dhcp_process_ipv6=enabled
# This is implicitly activated on registration interfaces on which dhcpd runs.
force_listener_update_on_ack=disabled
#
# network.learn_network_cidr_by_role
#
# This will enable the learning of the networks tied to each roles on each switches by using the dhcp traffic and radius accounting.
# To act on DHCP ACK (that contain the netmask) you need to enable force_listener_on_ack otherwise PacketFence will try to detect the cidr network based on the minumum address and the maximum address.
learn_network_cidr_by_role=disabled
#
# network.interfaceSNAT
# Choose interface(s) where you want to enable snat for passthrough (by default it's the management interface)
interfaceSNAT=
Expand Down
Loading

0 comments on commit db5a4af

Please sign in to comment.