{
    "content": [
        {
            "type": "text",
            "text": "# Net::config (info)\n\n## NAME\n\nNet::Config - Local configuration data for libnet\n\n## SYNOPSIS\n\nuse Net::Config qw(%NetConfig);\n\n## DESCRIPTION\n\n\"Net::Config\" holds configuration data for the modules in the libnet\ndistribution. During installation you will be asked for these values.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **EXPORTS**\n- **KNOWN BUGS**\n- **AUTHOR**\n- **COPYRIGHT**\n- **LICENCE**\n- **VERSION**\n- **DATE**\n- **HISTORY**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Net::config",
        "section": "",
        "mode": "info",
        "summary": "Net::Config - Local configuration data for libnet",
        "synopsis": "use Net::Config qw(%NetConfig);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 140,
                "subsections": []
            },
            {
                "name": "EXPORTS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "KNOWN BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "LICENCE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DATE",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Net::Config - Local configuration data for libnet\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Net::Config qw(%NetConfig);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "\"Net::Config\" holds configuration data for the modules in the libnet\ndistribution. During installation you will be asked for these values.\n\nThe configuration data is held globally in \"/etc/perl/Net/libnet.cfg\",\nbut a user may override any of these values by providing their own.\nThis can be done by having a \".libnetrc\" file in their home directory.\nThis file should return a reference to a HASH containing the keys\ndescribed below.  For example\n\n# .libnetrc\n{\nnntphosts => [ \"mypreferredhost\" ],\nphhosts   => [ \"myphserver\" ],\n}\nEND\n\nClass Methods\n\"Net::Config\" defines the following methods. They are methods as they\nare invoked as class methods. This is because \"Net::Config\" inherits\nfrom \"Net::LocalCfg\" so you can override these methods if you want.\n\n\"requiresfirewall($host)\"\nAttempts to determine if a given host is outside your firewall.\nPossible return values are.\n\n-1  Cannot lookup hostname\n0  Host is inside firewall (or there is no ftpfirewall entry)\n1  Host is outside the firewall\n\nThis is done by using hostname lookup and the \"localnetmask\" entry\nin the configuration data.\n\nNetConfig Values\nnntphosts\nsnpphosts\npop3hosts\nsmtphosts\nphhosts\ndaytimehosts\ntimehosts\nEach is a reference to an array of hostnames (in order of\npreference), which should be used for the given protocol\n\ninetdomain\nYour internet domain name\n\nftpfirewall\nIf you have an FTP proxy firewall (NOT an HTTP or SOCKS firewall)\nthen this value should be set to the firewall hostname. If your\nfirewall does not listen to port 21, then this value should be set\nto \"hostname:port\" (eg \"hostname:99\")\n\nftpfirewalltype\nThere are many different ftp firewall products available. But\nunfortunately there is no standard for how to traverse a firewall.\nThe list below shows the sequence of commands that Net::FTP will\nuse\n\nuser        Username for remote host\npass        Password for remote host\nfwuser      Username for firewall\nfwpass      Password for firewall\nremote.host The hostname of the remote ftp server\n\n0   There is no firewall\n\n1\nUSER user@remote.host\nPASS pass\n\n2\nUSER fwuser\nPASS fwpass\nUSER user@remote.host\nPASS pass\n\n3\nUSER fwuser\nPASS fwpass\nSITE remote.site\nUSER user\nPASS pass\n\n4\nUSER fwuser\nPASS fwpass\nOPEN remote.site\nUSER user\nPASS pass\n\n5\nUSER user@fwuser@remote.site\nPASS pass@fwpass\n\n6\nUSER fwuser@remote.site\nPASS fwpass\nUSER user\nPASS pass\n\n7\nUSER user@remote.host\nPASS pass\nAUTH fwuser\nRESP fwpass\n\nftpextpassive\nftpintpassive\nFTP servers can work in passive or active mode. Active mode is when\nyou want to transfer data you have to tell the server the address\nand port to connect to.  Passive mode is when the server provide\nthe address and port and you establish the connection.\n\nWith some firewalls active mode does not work as the server cannot\nconnect to your machine (because you are behind a firewall) and the\nfirewall does not re-write the command. In this case you should set\n\"ftpextpassive\" to a true value.\n\nSome servers are configured to only work in passive mode. If you\nhave one of these you can force \"Net::FTP\" to always transfer in\npassive mode; when not going via a firewall, by setting\n\"ftpintpassive\" to a true value.\n\nlocalnetmask\nA reference to a list of netmask strings in the form\n\"134.99.4.0/24\".  These are used by the \"requiresfirewall\"\nfunction to determine if a given host is inside or outside your\nfirewall.\n\nThe following entries are used during installation & testing on the\nlibnet package\n\ntesthosts\nIf true then \"make test\" may attempt to connect to hosts given in\nthe configuration.\n\ntestexists\nIf true then \"Configure\" will check each hostname given that it\nexists\n",
                "subsections": []
            },
            "EXPORTS": {
                "content": "The following symbols are, or can be, exported by this module:\n\nDefault Exports\n%NetConfig.\n\nOptional Exports\nNone.\n\nExport Tags\nNone.\n",
                "subsections": []
            },
            "KNOWN BUGS": {
                "content": "None.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Graham Barr <gbarr@pobox.com <mailto:gbarr@pobox.com>>.\n\nSteve Hay <shay@cpan.org <mailto:shay@cpan.org>> is now maintaining\nlibnet as of version 1.2202.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (C) 2000 Graham Barr.  All rights reserved.\n\nCopyright (C) 2013-2014, 2016, 2020 Steve Hay.  All rights reserved.\n",
                "subsections": []
            },
            "LICENCE": {
                "content": "This module is free software; you can redistribute it and/or modify it\nunder the same terms as Perl itself, i.e. under the terms of either the\nGNU General Public License or the Artistic License, as specified in the\nLICENCE file.\n",
                "subsections": []
            },
            "VERSION": {
                "content": "Version 3.13\n",
                "subsections": []
            },
            "DATE": {
                "content": "23 Dec 2020\n",
                "subsections": []
            },
            "HISTORY": {
                "content": "See the Changes file.\n\nperl v5.34.0                      2026-06-23                Net::Config(3perl)",
                "subsections": []
            }
        }
    }
}