After fixing some bugs I needed to restart packetfence but now I cannot access 
the web portal and don't know how to fix it. I am on  a test machine on a test 
network. I set the host and domain as localhost and localhost.
Any ideas?

My relevant configs are below:

[root@localhost /]# service packetfence start
Starting PacketFence...Set name-type for VLAN subsystem. Should be visible in 
/proc/net/vlan/config
httpd: Could not reliably determine the server's fully qualified domain name, 
using ::1 for ServerName
httpd.admin|start
Checking configuration sanity...
service|command
config files|start
iptables|start
pfdns|start
Use of uninitialized value $net{"dhcpd"} in string eq at 
/usr/local/pf/lib/pf/services/dhcpd.pm line 68.
Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not 
specified in the config file
Wrote 1 leases to leases file.
Listening on LPF/eth0.5/00:0c:29:83:e5:95/192.168.5.0/24
Sending on   LPF/eth0.5/00:0c:29:83:e5:95/192.168.5.0/24
Listening on LPF/eth0.3/00:0c:29:83:e5:95/192.168.3.0/24
Sending on   LPF/eth0.3/00:0c:29:83:e5:95/192.168.3.0/24
Sending on   Socket/fallback/fallback-net
dhcpd|start
pfdetect|start
snort|start
suricata|start
radiusd|start
httpd: Could not reliably determine the server's fully qualified domain name, 
using ::1 for ServerName
httpd.webservices|start
httpd: Could not reliably determine the server's fully qualified domain name, 
using ::1 for ServerName
httpd.portal|start
snmptrapd|start
pfsetvlan|start
pfdhcplistener|start
pfmon|start
[root@localhost /]#

[root@localhost /]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@localhost /]#

[root@localhost conf]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:83:E5:95
          inet6 addr: fe80::20c:29ff:fe83:e595/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30050 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12873 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13438860 (12.8 MiB)  TX bytes:1635676 (1.5 MiB)

eth0.2    Link encap:Ethernet  HWaddr 00:0C:29:83:E5:95
          inet addr:192.168.2.253  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe83:e595/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10471 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7314 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7374834 (7.0 MiB)  TX bytes:898558 (877.4 KiB)

eth0.3    Link encap:Ethernet  HWaddr 00:0C:29:83:E5:95
          inet addr:192.168.3.254  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe83:e595/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2210 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:110500 (107.9 KiB)  TX bytes:720 (720.0 b)

eth0.5    Link encap:Ethernet  HWaddr 00:0C:29:83:E5:95
          inet addr:192.168.5.254  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe83:e595/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2211 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:110550 (107.9 KiB)  TX bytes:720 (720.0 b)

eth0.10   Link encap:Ethernet  HWaddr 00:0C:29:83:E5:95
          inet addr:192.168.10.249  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe83:e595/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2286 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:114369 (111.6 KiB)  TX bytes:978 (978.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1418 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1418 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:83491 (81.5 KiB)  TX bytes:83491 (81.5 KiB)
[root@localhost conf]#

[root@localhost conf]# cat pf.conf
[general]
#
# general.domain
#
# Domain name of PacketFence system.
domain=localhost
#
# general.hostname
#
# Hostname of PacketFence system.  This is concatenated with the domain in 
Apache rewriting rules and therefore must be resolvable by clients.
hostname=localhost
#
# general.dnsservers
#
# Comma-delimited list of DNS servers.  Passthroughs are created to allow 
queries to these servers from even "trapped" nodes.
dnsservers=10.1.0.1,192.168.3.254,192.168.5.254
#
# general.dhcpservers
#
# Comma-delimited list of DHCP servers.  Passthroughs are created to allow DHCP 
transactions from even "trapped" nodes.
dhcpservers=10.1.0.1

[trapping]
#
# trapping.range
#
# Comma-delimited list of address ranges/CIDR blocks that PacketFence will 
monitor/detect/trap on.  Gateway, network, and
# broadcast addresses are ignored.
range=192.168.3.0/24,192.168.5/24

[alerting]
#
# alerting.emailaddr
#
# Email address to which notifications of rogue DHCP servers, violations with 
an action of "email", or any other
# PacketFence-related message goes to.
emailaddr=

[database]
#
# database.pass
#
# Password for the mysql database used by PacketFence.
pass=***
#
# database.user
#
# Username of the account with access to the mysql database used by PacketFence.
user=admin

[interface eth0.10]
ip=192.168.10.249
type=management
mask=255.255.255.0

[interface eth0.2]
ip=192.168.2.253
gateway=192.168.2.254
mask=255.255.255.0
#type=guest
enforcement=vlan

[interface eth0.3]
enforcement=vlan
ip=192.168.3.254
type=internal
mask=255.255.255.0

[interface eth0.5]
enforcement=vlan
ip=192.168.5.254
type=internal
mask=255.255.255.0
[root@localhost conf]#


[root@localhost conf]# cat networks.conf
[192.168.2.0]
dns=10.1.0.1
dhcp_start=192.168.2.10
dhcp_end=192.168.2.246
gateway=192.168.2.254
domain-name=vlan-guest.localhost
named=enabled
type=vlan-guest
netmask=255.255.255.0
dhcp_default_lease_time=30

[192.168.3.0]
dns=192.168.3.254
dhcp_start=192.168.3.10
gateway=192.168.3.254
domain-name=vlan-registration.localhost
named=enabled
dhcp_max_lease_time=30
dhcpd=enabled
type=vlan-registration
netmask=255.255.255.0
dhcp_end=192.168.3.246
dhcp_default_lease_time=30

[192.168.5.0]
dns=192.168.5.254
dhcp_start=192.168.5.10
gateway=192.168.5.254
domain-name=vlan-isolation.localhost
named=enabled
dhcp_max_lease_time=30
dhcpd=enabled
type=vlan-isolation
netmask=255.255.255.0
dhcp_end=192.168.5.246
dhcp_default_lease_time=30
[root@localhost conf]#

Please let me know if you need anymore configs to help you find the issue.

Respectfully,
Jason DeCoursey

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to