| 1 | # | ||
| 2 | # hylafax.pm: Fwctl service module to handle the hylafax protocol. | ||
| 3 | # | ||
| 4 | # This file is part of Fwctl. | ||
| 5 | # | ||
| 6 | # Author: Francis J. Lacoste <francis@iNsu.COM> | ||
| 7 | # | ||
| 8 | # Copyright (c) 1999,2000 iNsu Innovations Inc. | ||
| 9 | # | ||
| 10 | # This program is free software; you can redistribute it and/or modify | ||
| 11 | # it under the terms of the GNU General Public License as published by | ||
| 12 | # the Free Software Foundation; either version 2 of the License, or | ||
| 13 | # (at your option) any later version. | ||
| 14 | # | ||
| 15 | package Fwctl::Services::hylafax; | ||
| 16 | |||
| 17 | use strict; | ||
| 18 | |||
| 19 | use vars qw( @ISA ); | ||
| 20 | |||
| 21 | use Fwctl::RuleSet qw( :ports); | ||
| 22 | use Fwctl::Services::ftp; | ||
| 23 | |||
| 24 | use Carp; | ||
| 25 | |||
| 26 | BEGIN { | ||
| 27 | @ISA = qw( Fwctl::Services::ftp ); | ||
| 28 | } | ||
| 29 | |||
| 30 | sub new { | ||
| 31 | my $proto = shift; | ||
| 32 | my $class = ref $proto || $proto; | ||
| 33 | my $ctrl = getservbyname( "hylafax", "tcp"); | ||
| 34 | $ctrl ||= 4559; | ||
| 35 | my $data = $ctrl - 1 ; | ||
| 36 | bless { pasv_ports => UNPRIVILEGED_PORTS, | ||
| 37 | pasv => 1, | ||
| 38 | port => 1, | ||
| 39 | data_port => $data, | ||
| 40 | ctrl_port => $ctrl, | ||
| 41 | }, $class; | ||
| 42 | } | ||
| 43 | |||
| 44 | sub valid_options { | ||
| 45 | my $self = shift; | ||
| 46 | (); | ||
| 47 | } | ||
| 48 | |||
| 49 | 1; | ||
| 50 | =pod | ||
| 51 | |||
| 52 | =head1 NAME | ||
| 53 | |||
| 54 | Fwctl::Services::hylafax - Fwctl module to handle the HylaFax protocol. | ||
| 55 | |||
| 56 | =head1 SYNOPSIS | ||
| 57 | |||
| 58 | accept hylafax -src INTERNAL_NET -dst INT_IP | ||
| 59 | |||
| 60 | =head1 DESCRIPTION | ||
| 61 | |||
| 62 | The hylafax module is used to handle the HylaFAX protocol which is | ||
| 63 | a variant of the FTP protocol. | ||
| 64 | |||
| 65 | =head1 OPTIONS | ||
| 66 | |||
| 67 | No service specific options. | ||
| 68 | |||
| 69 | =head1 AUTHOR | ||
| 70 | |||
| 71 | Francis J. Lacoste <francis.lacoste@iNsu.COM> | ||
| 72 | |||
| 73 | =head1 COPYRIGHT | ||
| 74 | |||
| 75 | Copyright (c) 1999,2000 iNsu Innovations Inc. | ||
| 76 | All rights reserved. | ||
| 77 | |||
| 78 | This program is free software; you can redistribute it and/or modify | ||
| 79 | it under the terms of the GNU General Public License as published by | ||
| 80 | the Free Software Foundation; either version 2 of the License, or | ||
| 81 | (at your option) any later version. | ||
| 82 | |||
| 83 | =head1 SEE ALSO | ||
| 84 | |||
| 85 | fwctl(8) Fwctl(3) Fwctl::RuleSet(3) | ||
| 86 | |||
| 87 | =cut | ||
| 88 |