Bebbet van Dinges
2017-05-07 17:30:53 UTC
Hello all,
I've done a fresh PF install of 7.0.0. Since then i've got issues trying
to reach the portal (status/unreg).
I've uncovered that the iptables had no 'hole' to allow the management
vlan/interface to reach the input-portal-if chain. Assigning another
role to the management interface (additional services: portal) this
'restriction' is gone, and tcpdump shows incoming connections and ack's.
Yet there is no service*** enabled on port 80 or 443.
Ok, there is a httpd.portal service working but only 127.0.0.1. After
some digging my understanding is that in
/usr/local/pf/conf/httpd.conf.d/httpd.portal.tt a foreach section
exists, that generates the url/ips to listen on. After a little more
digging i found sub vhosts in
/usr/local/pf/lib/pf/services/manager/httpd_portal.pm.
sub vhosts {
my ($self) = @_;
if ($cluster_enabled) {
return
[
uniq map {
defined $_->{'Tvip'} && $_->{'Tvip'} ne '' ?
$_->{'Tvip'} : $_->{'Tip'}
} @internal_nets, @portal_ints
];
} else {
return ["127.0.0.1"];
}
}
My setup is not cluster enabled, so the else statement is true, and
127.0.0.1 is the output of vhosts. which in turn only enables the portal
on localhost.
How do i enable more vhosts, or did i uncover some kind of bug/loophole?
Hope to hear soon from you,
Your sincerely,
Bebbet
I've done a fresh PF install of 7.0.0. Since then i've got issues trying
to reach the portal (status/unreg).
I've uncovered that the iptables had no 'hole' to allow the management
vlan/interface to reach the input-portal-if chain. Assigning another
role to the management interface (additional services: portal) this
'restriction' is gone, and tcpdump shows incoming connections and ack's.
Yet there is no service*** enabled on port 80 or 443.
Ok, there is a httpd.portal service working but only 127.0.0.1. After
some digging my understanding is that in
/usr/local/pf/conf/httpd.conf.d/httpd.portal.tt a foreach section
exists, that generates the url/ips to listen on. After a little more
digging i found sub vhosts in
/usr/local/pf/lib/pf/services/manager/httpd_portal.pm.
sub vhosts {
my ($self) = @_;
if ($cluster_enabled) {
return
[
uniq map {
defined $_->{'Tvip'} && $_->{'Tvip'} ne '' ?
$_->{'Tvip'} : $_->{'Tip'}
} @internal_nets, @portal_ints
];
} else {
return ["127.0.0.1"];
}
}
My setup is not cluster enabled, so the else statement is true, and
127.0.0.1 is the output of vhosts. which in turn only enables the portal
on localhost.
How do i enable more vhosts, or did i uncover some kind of bug/loophole?
Hope to hear soon from you,
Your sincerely,
Bebbet