Hi Arthur,
I've edited the /usr/local/pf/lib/pf/vlan/custom.pm like you said and
packetfence assign the Guest category using self registration to the Guest
vlan.
But now I encounter another problem. Guest vlan doesn't have internet access.
Should I edit the packetfence iptables to allow Guest vlan to access the
internet?
How will I do that? Sorry but I don't have the knowledge in using Centos.
Or will I look somewhere else...
sunb getNormalVlan {
my ($this, $switch, $ifIndex, $mac, $node_info, $connection_type, $user_name,
$ssid) = @_;
my $logger = Log::Log4perl->get_logger();
# custom example: guest category
# return guestVlan to nodes in the admin category
if (defined($node_info->{'category'}) && lc($node_info->{'category'}) eq
"guest") {
return $switch->getVlanByName('guestVlan');
}
return $switch->getVlanByName('guestVlan');
My current setup:
NormalVlan = 192.168.1.0/24 (with Windows2k3 server that acts as DHCP & DNS)
GuestVlan = 192.168.5.0/24 (Enable packetfence as dhcp and dns)
Best Regards,
Mon
}------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users