Server IP : 103.119.228.120 / Your IP : 18.227.0.57 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/share/man/man3/ |
Upload File : |
.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Net::Config 3" .TH Net::Config 3 "2016-08-01" "perl v5.16.3" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Net::Config \- Local configuration data for libnet .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use Net::Config qw(%NetConfig); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\f(CW\*(C`Net::Config\*(C'\fR holds configuration data for the modules in the libnet distribution. During installation you will be asked for these values. .PP The configuration data is held globally in a file in the perl installation tree, but a user may override any of these values by providing their own. This can be done by having a \f(CW\*(C`.libnetrc\*(C'\fR file in their home directory. This file should return a reference to a \s-1HASH\s0 containing the keys described below. For example .PP .Vb 6 \& # .libnetrc \& { \& nntp_hosts => [ "my_preferred_host" ], \& ph_hosts => [ "my_ph_server" ], \& } \& _\|_END_\|_ .Ve .SH "METHODS" .IX Header "METHODS" \&\f(CW\*(C`Net::Config\*(C'\fR defines the following methods. They are methods as they are invoked as class methods. This is because \f(CW\*(C`Net::Config\*(C'\fR inherits from \&\f(CW\*(C`Net::LocalCfg\*(C'\fR so you can override these methods if you want. .IP "requires_firewall ( \s-1HOST \s0)" 4 .IX Item "requires_firewall ( HOST )" Attempts to determine if a given host is outside your firewall. Possible return values are. .Sp .Vb 3 \& \-1 Cannot lookup hostname \& 0 Host is inside firewall (or there is no ftp_firewall entry) \& 1 Host is outside the firewall .Ve .Sp This is done by using hostname lookup and the \f(CW\*(C`local_netmask\*(C'\fR entry in the configuration data. .SH "NetConfig VALUES" .IX Header "NetConfig VALUES" .IP "nntp_hosts" 4 .IX Item "nntp_hosts" .PD 0 .IP "snpp_hosts" 4 .IX Item "snpp_hosts" .IP "pop3_hosts" 4 .IX Item "pop3_hosts" .IP "smtp_hosts" 4 .IX Item "smtp_hosts" .IP "ph_hosts" 4 .IX Item "ph_hosts" .IP "daytime_hosts" 4 .IX Item "daytime_hosts" .IP "time_hosts" 4 .IX Item "time_hosts" .PD Each is a reference to an array of hostnames (in order of preference), which should be used for the given protocol .IP "inet_domain" 4 .IX Item "inet_domain" Your internet domain name .IP "ftp_firewall" 4 .IX Item "ftp_firewall" If you have an \s-1FTP\s0 proxy firewall (\fB\s-1NOT\s0\fR an \s-1HTTP\s0 or \s-1SOCKS\s0 firewall) then this value should be set to the firewall hostname. If your firewall does not listen to port 21, then this value should be set to \&\f(CW"hostname:port"\fR (eg \f(CW"hostname:99"\fR) .IP "ftp_firewall_type" 4 .IX Item "ftp_firewall_type" There are many different ftp firewall products available. But unfortunately there is no standard for how to traverse a firewall. The list below shows the sequence of commands that Net::FTP will use .Sp .Vb 5 \& user Username for remote host \& pass Password for remote host \& fwuser Username for firewall \& fwpass Password for firewall \& remote.host The hostname of the remote ftp server .Ve .RS 4 .IP "0" 4 There is no firewall .IP "1" 4 .IX Item "1" .Vb 2 \& USER user@remote.host \& PASS pass .Ve .IP "2" 4 .IX Item "2" .Vb 4 \& USER fwuser \& PASS fwpass \& USER user@remote.host \& PASS pass .Ve .IP "3" 4 .IX Item "3" .Vb 5 \& USER fwuser \& PASS fwpass \& SITE remote.site \& USER user \& PASS pass .Ve .IP "4" 4 .IX Item "4" .Vb 5 \& USER fwuser \& PASS fwpass \& OPEN remote.site \& USER user \& PASS pass .Ve .IP "5" 4 .IX Item "5" .Vb 2 \& USER user@fwuser@remote.site \& PASS pass@fwpass .Ve .IP "6" 4 .IX Item "6" .Vb 4 \& USER fwuser@remote.site \& PASS fwpass \& USER user \& PASS pass .Ve .IP "7" 4 .IX Item "7" .Vb 4 \& USER user@remote.host \& PASS pass \& AUTH fwuser \& RESP fwpass .Ve .RE .RS 4 .RE .IP "ftp_ext_passive" 4 .IX Item "ftp_ext_passive" .PD 0 .IP "ftp_int_passive" 4 .IX Item "ftp_int_passive" .PD \&\s-1FTP\s0 servers can work in passive or active mode. Active mode is when you want to transfer data you have to tell the server the address and port to connect to. Passive mode is when the server provide the address and port and you establish the connection. .Sp With some firewalls active mode does not work as the server cannot connect to your machine (because you are behind a firewall) and the firewall does not re-write the command. In this case you should set \f(CW\*(C`ftp_ext_passive\*(C'\fR to a \fItrue\fR value. .Sp Some servers are configured to only work in passive mode. If you have one of these you can force \f(CW\*(C`Net::FTP\*(C'\fR to always transfer in passive mode; when not going via a firewall, by setting \f(CW\*(C`ftp_int_passive\*(C'\fR to a \fItrue\fR value. .IP "local_netmask" 4 .IX Item "local_netmask" A reference to a list of netmask strings in the form \f(CW"134.99.4.0/24"\fR. These are used by the \f(CW\*(C`requires_firewall\*(C'\fR function to determine if a given host is inside or outside your firewall. .PP The following entries are used during installation & testing on the libnet package .IP "test_hosts" 4 .IX Item "test_hosts" If true then \f(CW\*(C`make test\*(C'\fR may attempt to connect to hosts given in the configuration. .IP "test_exists" 4 .IX Item "test_exists" If true then \f(CW\*(C`Configure\*(C'\fR will check each hostname given that it exists .SH "AUTHOR" .IX Header "AUTHOR" Graham Barr <\fIgbarr@pobox.com\fR> .PP Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version 1.22_02 .SH "COPYRIGHT" .IX Header "COPYRIGHT" Versions up to 1.11 Copyright (c) 1998\-2011 Graham Barr. All rights reserved. Changes in Version 1.11_01 onwards Copyright (C) 2013\-2014 Steve Hay. All rights reserved. .PP This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file.