{
    "content": [
        {
            "type": "text",
            "text": "# ufw (pydoc)\n\n## TLDR\n\n> Uncomplicated Firewall.\n\n- Enable `ufw`:\n  `sudo ufw enable`\n- Disable `ufw`:\n  `sudo ufw disable`\n- Show `ufw` rules, along with their numbers:\n  `sudo ufw status numbered`\n- Allow incoming traffic on port 5432 on this host with a comment identifying the service:\n  `sudo ufw allow 5432 comment \"{{Service}}\"`\n- Allow only TCP traffic from 192.168.0.4 to any address on this host, on port 22:\n  `sudo ufw allow proto tcp from 192.168.0.4 to any port 22`\n- Deny traffic on port 80 on this host:\n  `sudo ufw deny 80`\n- Deny all UDP traffic to ports in range 8412:8500:\n  `sudo ufw deny proto udp from any to any port 8412:8500`\n- Delete a particular rule. The rule number can be retrieved from the `ufw status numbered` command:\n  `sudo ufw delete {{rule_number}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** ufw\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **PACKAGE CONTENTS** (8 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nufw\n\n### PACKAGE CONTENTS\n\napplications\nbackend\nbackendiptables\ncommon\nfrontend\nparser\nutil\n\n### FILE\n\n/usr/lib/python3/dist-packages/ufw/init.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "ufw",
        "section": "",
        "mode": "pydoc",
        "summary": "ufw",
        "synopsis": null,
        "tldr_summary": "Uncomplicated Firewall.",
        "tldr_examples": [
            {
                "description": "Enable `ufw`",
                "command": "sudo ufw enable"
            },
            {
                "description": "Disable `ufw`",
                "command": "sudo ufw disable"
            },
            {
                "description": "Show `ufw` rules, along with their numbers",
                "command": "sudo ufw status numbered"
            },
            {
                "description": "Allow incoming traffic on port 5432 on this host with a comment identifying the service",
                "command": "sudo ufw allow 5432 comment \"{{Service}}\""
            },
            {
                "description": "Allow only TCP traffic from 192.168.0.4 to any address on this host, on port 22",
                "command": "sudo ufw allow proto tcp from 192.168.0.4 to any port 22"
            },
            {
                "description": "Deny traffic on port 80 on this host",
                "command": "sudo ufw deny 80"
            },
            {
                "description": "Deny all UDP traffic to ports in range 8412:8500",
                "command": "sudo ufw deny proto udp from any to any port 8412:8500"
            },
            {
                "description": "Delete a particular rule. The rule number can be retrieved from the `ufw status numbered` command",
                "command": "sudo ufw delete {{rule_number}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "PACKAGE CONTENTS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}