Durand,
Following output of the commands:
*Before logging in:*
[
{
"DuplicateInPool": null,
"category": "registration",
"free": 19,
"inPoolNotInCache": null,
"interface": "eth2",
"members": [
{
"ends_at": "2019-10-22T14:06:18.586411266Z",
"error": "0",
"ip": "172.20.0.17",
"mac": "00:50:56:9b:6f:76",
"pool": "00:50:56:9b:6f:76"
}
],
"network": "172.20.0.0/27 <http://172.20.0.0/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.1",
"optionIPAddressLeaseTime": "30s",
"optionRouter": "172.20.0.1",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 90,
"percentused": 9,
"size": 21,
"status": "Calculated available IP 20 is different than what
we have available in the pool 19",
"used": 2
},
{
"DuplicateInPool": null,
"category": "voice",
"free": 29,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.32/27 <http://172.20.0.32/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.33",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.33",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 100,
"percentused": 0,
"size": 29,
"status": "Normal",
"used": 0
},
{
"DuplicateInPool": null,
"category": "guest",
"free": 29,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.64/27 <http://172.20.0.64/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.65",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.65",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 100,
"percentused": 0,
"size": 29,
"status": "Normal",
"used": 0
},
{
"DuplicateInPool": null,
"category": "gaming",
"free": 29,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.96/27 <http://172.20.0.96/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.97",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.97",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 100,
"percentused": 0,
"size": 29,
"status": "Normal",
"used": 0
},
{
"DuplicateInPool": null,
"category": "default",
"free": 29,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.128/27 <http://172.20.0.128/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.129",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.129",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 100,
"percentused": 0,
"size": 29,
"status": "Normal",
"used": 0
},
{
"DuplicateInPool": null,
"category": "REJECT",
"free": 29,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.160/27 <http://172.20.0.160/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.161",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.161",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 100,
"percentused": 0,
"size": 29,
"status": "Normal",
"used": 0
}
]
*After signing in:*
[
{
"DuplicateInPool": null,
"category": "registration",
"free": 20,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.0/27 <http://172.20.0.0/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.1",
"optionIPAddressLeaseTime": "30s",
"optionRouter": "172.20.0.1",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 95,
"percentused": 4,
"size": 21,
"status": "Calculated available IP 21 is different than what
we have available in the pool 20",
"used": 1
},
{
"DuplicateInPool": null,
"category": "voice",
"free": 29,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.32/27 <http://172.20.0.32/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.33",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.33",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 100,
"percentused": 0,
"size": 29,
"status": "Normal",
"used": 0
},
{
"DuplicateInPool": null,
"category": "guest",
"free": 29,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.64/27 <http://172.20.0.64/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.65",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.65",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 100,
"percentused": 0,
"size": 29,
"status": "Normal",
"used": 0
},
{
"DuplicateInPool": null,
"category": "gaming",
"free": 29,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.96/27 <http://172.20.0.96/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.97",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.97",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 100,
"percentused": 0,
"size": 29,
"status": "Normal",
"used": 0
},
{
"DuplicateInPool": null,
"category": "default",
"free": 28,
"inPoolNotInCache": null,
"interface": "eth2",
"members": [
{
"ends_at": "2019-10-23T14:13:18.117139554Z",
"error": "0",
"ip": "172.20.0.138",
"mac": "00:50:56:9b:6f:76",
"pool": "00:50:56:9b:6f:76"
}
],
"network": "172.20.0.128/27 <http://172.20.0.128/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.129",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.129",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 96,
"percentused": 3,
"size": 29,
"status": "Normal",
"used": 1
},
{
"DuplicateInPool": null,
"category": "REJECT",
"free": 29,
"inPoolNotInCache": null,
"interface": "eth2",
"members": null,
"network": "172.20.0.160/27 <http://172.20.0.160/27>",
"options": {
"optionDomainName": "inlinel2.scrivener.corp",
"optionDomainNameServer": "172.20.0.161",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "172.20.0.161",
"optionSubnetMask": "255.255.255.224"
},
"percentfree": 100,
"percentused": 0,
"size": 29,
"status": "Normal",
"used": 0
}
]
Att
*André Scrivener*
Em sex, 11 de out de 2019 às 22:18, Durand fabrice via
PacketFence-users <[email protected]
<mailto:[email protected]>> escreveu:
Hello André,
can you do that:
curl http://127.0.0.1:22222/api/v1/dhcp/stats/eth2 | python -m
json.tool
and paste the result ?
Regards
Fabrice
Le 19-10-01 à 11 h 23, André Scrivener via PacketFence-users a écrit :
Hi guys, I hope you are fine.
I have created a captive portal for network authentication, but I
have a very strange problem, after authentication in captive
portal, dhcp puts a different gateway than configured in PF.
For example, after authentication it changes the gateway to
172.20.0.129.
Does anyone have any ideas?
PF Version: packetfence-9.1.0-1.el7.noarch
PS: I'm using the appliance
Config files:
[root@PacketFence-ZEN conf]# cat pf.conf
[general]
#
# general.domain
#
# Domain name of PacketFence system.
domain=scrivener.corp
[alerting]
#
# alerting.emailaddr
#
# Comma-delimited list of email addresses to which notifications
of rogue DHCP servers, security_events with an action of "email",
or any other
# PacketFence-related message goes to.
[email protected] <mailto:[email protected]>
[database]
#
# database.pass
#
# Password for the mysql database used by PacketFence. Changing
this parameter after the initial configuration will *not* change
it in the database it self, only in the configuration.
pass=pass
[interface eth2]
enforcement=inlinel2
ip=172.20.0.1
type=internal
mask=255.255.255.0
[interface eth0]
ip=10.0.0.1
type=management
mask=255.255.255.0
[root@PacketFence-ZEN conf]#
[root@PacketFence-ZEN conf]# cat networks.conf
[172.20.0.0]
dns=172.20.0.1
gateway=172.20.0.1
domain-name=inlinel2.scrivener.corp
named=enabled
dhcp_end=172.20.0.246
netmask=255.255.255.0
split_network=disabled
dhcp_start=172.20.0.10
nat_enabled=enabled
dhcp_max_lease_time=86400
dhcpd=enabled
fake_mac_enabled=disabled
type=inlinel2
dhcp_default_lease_time=86400
coa=disabled
[root@PacketFence-ZEN conf]#
Regards
*Andre Scrivener*
_______________________________________________
PacketFence-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
_______________________________________________
PacketFence-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users