{
# allow normal user connections either only from local network,
# or from anywhere
}<Limit LOGIN>
{
    my $access = $ftp{LoginAccess} || "private";
    if ($access eq 'public')
    {
	$OUT = "  AllowAll";
    }
    else
    {
	use Net::IPv4Addr qw(ipv4_parse);

	$OUT = "  Order Allow,Deny\n";
	$OUT .= join "\n",
	    map { "  Allow from " . join '/', ipv4_parse($_) }
		@local_access;
	$OUT .= "\n  Deny from all";
    }
}
</Limit>
