{"id":11009,"date":"2024-02-25T11:32:04","date_gmt":"2024-02-25T11:32:04","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=11009"},"modified":"2024-03-14T09:47:59","modified_gmt":"2024-03-14T09:47:59","slug":"how-to-list-and-delete-iptables-and-firewall-rules","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/","title":{"rendered":"How to List and Delete Iptables and Firewall Rules"},"content":{"rendered":"\n<p>Iptables, in Linux-based systems, are used for managing network traffic. These are the rules that control outgoing and incoming traffic, ensuring network security.&nbsp;<\/p>\n\n\n\n<p>You can keep networks safe by allowing only authorized traffic by inspecting them through the listing. Additionally, you can delete unwanted IPTables and firewall rules from your Ubuntu system.<\/p>\n\n\n\n<p>This post aims to explain how to list the Iptables and Firewall rules and delete them to manage network traffic on your Ubuntu 22.04 system.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to List and Delete Iptables and Firewall Rules?<\/strong><\/h2>\n\n\n\n<p>This post will explain the following sections:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>How to List Iptables and Firewall Rules?<\/li>\n\n\n\n<li>How to Delete Iptables and Firewall Rules?<\/li>\n\n\n\n<li>How to Delete the User-defined Iptables and Firewall Rules?<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How to List Iptables and Firewall Rules?<\/strong><\/h3>\n\n\n\n<p>To view the list of Iptables and Firewall rules, the following are some useful commands.<\/p>\n\n\n\n<p><strong>Step 1: List Iptables Rules<\/strong><\/p>\n\n\n\n<p>Here is the simple command that will list the current iptables rules configured on your Ubuntu machine:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -L<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/YdvfKARGEbe9VmNvwCOm8vsx-dRW7CDiZ3qeI5MURI8jqRR-x1dCKwtO70dRrlJCGHduRvzLlqYfolcxpV5gDHtbZh7jaiCA7TuYrw5na25iWhWczSbU50PqSciHjS3D2ASC4RZzlS6uI9gfhvdOjQ\" alt=\"\"\/><\/figure>\n\n\n\n<p>In response to the above command, a list of Iptables rules will be displayed under the three main categories: INPUT, FORWARD, and OUTPUT.&nbsp;<\/p>\n\n\n\n<p><strong>Step 2: List Iptables Rules with Details<\/strong><\/p>\n\n\n\n<p>For a more detailed view of the IPTables rules, including packets and bytes, use the additional -v flag with the command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -L -v<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/aPlCNdmBYQSPmMo76vRBoXGHftnezIMGi8ufpdUmk6AIdwL2CDoNyWyApYSms16QgRot3LVp5e_Vqg3B0WXGFnMVo5J2zEwCz5Y0bB65oVJI3fRBLuSA1raWZ78GIa7kj-8uVnty9qxelrjZK41aXw\" alt=\"\"\/><\/figure>\n\n\n\n<p>Here you can examine the packet counts and bytes for each rule in Iptables.&nbsp;<\/p>\n\n\n\n<p><strong>Step 3: List Specific (OUTPUT) Iptables Rules<\/strong><\/p>\n\n\n\n<p>If you are looking for a specific Iptables rule, such as OUTPUT, execute the below-mentioned command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -L OUTPUT -v<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/rSuCx1ixfdNyGULCOAiB8F7N61Z424mzH9_bAS3ujGiXQJtXNqDyB97cNJwdA6Cs-BxLK3nFyp1YSKik3H1WQbqHLACmgpgTQlclm1dyOuIiIibTq7O-1PM-4GLWr7I61Om4IE0F9QT06zklgLv5-A\" alt=\"\"\/><\/figure>\n\n\n\n<p>As you can see the OUTPUT option listed only the rules specified in the OUTPUT category.<\/p>\n\n\n\n<p><strong>Step 4: List Rules with Line Numbers<\/strong><\/p>\n\n\n\n<p>For a better representation of the rules list, you can add a reference number using the simple command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -L --line-numbers<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/QUdPgz-KcEYuZI4Ka-syfH-1lnf51Bt5AHhye0i-n8CoocJqJH9ik1r4FnfGzL7awQbBPq8BD9ADw79pQ7CBq8Ds35BqzEEdhjZJD-xVSScW0wBjeIj0YJcSvFLkhsrNyYacM8uCIqGCt58tcfnDpA\" alt=\"\"\/><\/figure>\n\n\n\n<p>With serial or reference numbers, it is easy to inspect the Iptables rules.&nbsp;<\/p>\n\n\n\n<p><strong>Step 5: List Rules with Lines and Numeric Values<\/strong><\/p>\n\n\n\n<p>By adding the -n flag to the Iptables command, you can see numerical output rather than names. Use the given-below command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -L -n --line-numbers<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/zeBBfyt0TWEZ9poMPNRdXdGstOBG2R9fvOv_n3mnJK6FFpuN6lsmELzRS-kA84sA6ZLLboRv1jCFgZJMwI-ApJ0RQR_-4fvNQIa3RcH6kXVpicJ2muubpViVeJqVV9ydLhVuvlxNlh1w5PY2zZiwRQ\" alt=\"\"\/><\/figure>\n\n\n\n<p>The command displayed the sources and destinations numerically rather than by their hostnames or service names.<\/p>\n\n\n\n<p>Here, we experienced different commands for listing the Iptables and Firewall rules on the Ubuntu 22.04 machine.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How to Delete Iptables and Firewall Rules?<\/strong><\/h3>\n\n\n\n<p>These commands will delete the Iptables and Firewall rules from your Ubuntu 22.04 system.<\/p>\n\n\n\n<p><strong>Step 1:&nbsp; List the Rules with Line Numbers<\/strong><\/p>\n\n\n\n<p>Before deleting Iptables rules, first, inspect the list of rules using the command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -L --line-numbers<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/QUdPgz-KcEYuZI4Ka-syfH-1lnf51Bt5AHhye0i-n8CoocJqJH9ik1r4FnfGzL7awQbBPq8BD9ADw79pQ7CBq8Ds35BqzEEdhjZJD-xVSScW0wBjeIj0YJcSvFLkhsrNyYacM8uCIqGCt58tcfnDpA\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Step 2: Delete Specific Rule<\/strong><\/p>\n\n\n\n<p>To delete a specific rule such as reference number <strong>4<\/strong> under the <strong>INPUT<\/strong> chain, use the command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -D INPUT 4<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/IDOMBzYQUsP0pdWlaty5gw-TPvMWTXkmIJ0W9XEOrnZinsfmna0Ejzzf0jOdhwR0A3mHU5oWYOBq2gNpwzLniYnsQC8b7iGhftJqb7wW7WPvkGUPE9PGkvhNwTXCQm4vsUbadm9JtZjbBWHr4k_PiQ\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Step 3: Verify List After Deleted Rules<\/strong><\/p>\n\n\n\n<p>After deleting a rule, you can confirm the changes by listing the rules in the terminal:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -L --line-numbers<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/YX6Ueh1gFNJbxWoTgGHnM2N127ak1QaXMonlG2TKzkexpIxGHBgFWzoWZATLbXrnY7jOjDEeglk-7gu71bKz3yu1uIbrQeYy8odhIE2_YYHfgXf0sIxP260eL8X9k-u-do3zsYQ8GizdXYDAO2ePBg\" alt=\"\"\/><\/figure>\n\n\n\n<p>If the specific rule (i.e., INPUT 4) no longer exists in your IPTables list, it indicates that the rule has been deleted successfully.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How to Delete the User-defined Iptables and Firewall Rules?<\/strong><\/h3>\n\n\n\n<p>This section will explore commands for deleting Iptables and Firewall rules, particularly the user-defined rules, from your Ubuntu system.&nbsp;<\/p>\n\n\n\n<p><strong>Step 1: List User-defined Rules<\/strong><\/p>\n\n\n\n<p>First of all, run the list command to identify the user-defined chains and rules:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -L --line-numbers<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/mqeyIk8rneIpsp9bAW1exNB1u4BQ_HuxIjrSlJi-8WpG2Ks4S2z5W1VD-MSRjpEz9FOtuOlWxOkfb_eOaNQz_06xhHBrHnLLeuDb5qwwJS9nD_edaRyNTklnZXOQ2-YjYVRbTUtejwincYFDRzbtbw\" alt=\"\"\/><\/figure>\n\n\n\n<p>In this example, you can see a chain and rules with the name \u201cKARIM\u201d.<\/p>\n\n\n\n<p><strong>Step 2: Delete Chains Associated with User-defined<\/strong><\/p>\n\n\n\n<p>Now, let\u2019s delete the rules first, which are associated with \u201cKARIM\u201d. Specify the chain and rule number using the following syntax to delete the rules:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -D FORWARD 2<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/s8hkYiVtkMmTsOWPG3WobdQYZmHEEbh3zSglIVwEcLfj_TPZrji9n8w853AZrP0Ap37Cei7s7rQ1IWvCaDgmNidjG2eynD1kJXnrtNKmGC7NiDEOz0CNQJNgk3NO2-9zGSSQXLbdFq_A9hLzFCiJKQ\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Step 3: Delete User-defined Rules<\/strong><\/p>\n\n\n\n<p>Finally, use the -X option to delete the user-defined chain like &#8220;KARIM&#8221; :<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -X KARIM<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/GP-xZHViAUsb3BdClIHMuD0Q4rpFRaEOLROeTNzqoKwPdcFCHi5eN2C8eFhgW8ytARRPgmo86vpe_7_1RVKwRwdqXs-TjABmvsII8qyFt0ypVCp0iKrqXw-jzim3evixo8wJ8_9HEnPbAjNy-krBlw\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Step 4: Verify Iptables Rules After Deletion&nbsp;<\/strong><\/p>\n\n\n\n<p>Use the list command to verify whether the user-defined rules (i.e. KARIM) have been deleted from the Iptables rules:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><pre>sudo iptables -L --line-numbers<\/pre><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/CeGUUCchtv-AbYkk9CMlevmRl4EFXXmMnXXsLnIjh4HSHSgGVwN5xfvMq39Dy7L8zLJOA-zknXUcxR2RvNKK03c2IpoyQAFjo6PFUYIZbjT9x5fQ-VVPqNq4ukeB7I5iVlkU_cR07uHG-LKr80DB6g\" alt=\"\"\/><\/figure>\n\n\n\n<p>It can be seen that the chain and rules associated with KARIM no longer exist.&nbsp;<\/p>\n\n\n\n<p>In this section, we have explored different commands to delete the Iptables and Firewall rules from your Ubuntu 22.04 system.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In Ubuntu, you can inspect the list of Iptables and delete them using simple commands. The command, sudo iptables -L will display the list, while deleting the Iptable chain and rules, use sudo iptables -D. This post has provided some useful commands to list and delete Iptables and Firewall rules from the Ubuntu 22.04 system.&nbsp;<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Iptables, in Linux-based systems, are used for managing network traffic. These are the rules that control outgoing and incoming traffic, ensuring network security.&nbsp; You can keep networks safe by allowing only authorized traffic by inspecting them through the listing. Additionally, you can delete unwanted IPTables and firewall rules from your Ubuntu system. This post aims [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":11024,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[284,285,230],"class_list":["post-11009","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","tag-firewall","tag-iptables","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to List and Delete Iptables and Firewall Rules - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This post aims to explain how to list the Iptables and Firewall rules and delete them to manage network traffic on your Ubuntu 22.04 system.\u00a0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to List and Delete Iptables and Firewall Rules - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This post aims to explain how to list the Iptables and Firewall rules and delete them to manage network traffic on your Ubuntu 22.04 system.\u00a0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-25T11:32:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-14T09:47:59+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to List and Delete Iptables and Firewall Rules\",\"datePublished\":\"2024-02-25T11:32:04+00:00\",\"dateModified\":\"2024-03-14T09:47:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/\"},\"wordCount\":706,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg\",\"keywords\":[\"Firewall\",\"IPtables\",\"Linux\"],\"articleSection\":[\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/\",\"name\":\"How to List and Delete Iptables and Firewall Rules - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg\",\"datePublished\":\"2024-02-25T11:32:04+00:00\",\"dateModified\":\"2024-03-14T09:47:59+00:00\",\"description\":\"This post aims to explain how to list the Iptables and Firewall rules and delete them to manage network traffic on your Ubuntu 22.04 system.\u00a0\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg\",\"width\":1020,\"height\":600,\"caption\":\"How to List and Delete Iptables and Firewall Rules\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to List and Delete Iptables and Firewall Rules\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to List and Delete Iptables and Firewall Rules - Greenwebpage Community","description":"This post aims to explain how to list the Iptables and Firewall rules and delete them to manage network traffic on your Ubuntu 22.04 system.\u00a0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/","og_locale":"en_US","og_type":"article","og_title":"How to List and Delete Iptables and Firewall Rules - Greenwebpage Community","og_description":"This post aims to explain how to list the Iptables and Firewall rules and delete them to manage network traffic on your Ubuntu 22.04 system.\u00a0","og_url":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/","og_site_name":"Greenwebpage Community","article_published_time":"2024-02-25T11:32:04+00:00","article_modified_time":"2024-03-14T09:47:59+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to List and Delete Iptables and Firewall Rules","datePublished":"2024-02-25T11:32:04+00:00","dateModified":"2024-03-14T09:47:59+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/"},"wordCount":706,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg","keywords":["Firewall","IPtables","Linux"],"articleSection":["Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/","url":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/","name":"How to List and Delete Iptables and Firewall Rules - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg","datePublished":"2024-02-25T11:32:04+00:00","dateModified":"2024-03-14T09:47:59+00:00","description":"This post aims to explain how to list the Iptables and Firewall rules and delete them to manage network traffic on your Ubuntu 22.04 system.\u00a0","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-to-List-and-Delete-Iptables-and-Firewall-Rules.jpg","width":1020,"height":600,"caption":"How to List and Delete Iptables and Firewall Rules"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-list-and-delete-iptables-and-firewall-rules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to List and Delete Iptables and Firewall Rules"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/11009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=11009"}],"version-history":[{"count":2,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/11009\/revisions"}],"predecessor-version":[{"id":11025,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/11009\/revisions\/11025"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/11024"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=11009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=11009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=11009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}