{"id":2348,"date":"2025-04-24T20:30:10","date_gmt":"2025-04-24T20:30:10","guid":{"rendered":"https:\/\/wiki.xontel.com\/?post_type=manual_documentation&#038;p=2348"},"modified":"2026-07-25T11:34:28","modified_gmt":"2026-07-25T11:34:28","slug":"ip-tables","status":"publish","type":"manual_documentation","link":"https:\/\/wiki.xontel.com\/ar\/documentation\/xontel-platform\/pbx\/pbx-v-1-x-x\/system\/security\/ip-tables\/","title":{"rendered":"IP Tables"},"content":{"rendered":"<p class=\"wp-block-paragraph\">The XonTel PBX system comes preconfigured with a built-in iptables firewall to protect your IP phone system from unauthorized access, fraudulent calls, and various types of network attacks. It enables the creation of custom iptables rules to control the traffic sent to and received from PBX devices.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"355\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-96-1024x355.png\" alt=\"\" class=\"wp-image-7988\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-96-1024x355.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-96-300x104.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-96-768x266.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-96-18x6.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-96.png 1522w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The system includes default rules that:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Accept all internal traffic<\/li>\n\n\n\n<li>Block external traffic<\/li>\n\n\n\n<li>Block unauthorized ports<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To manage iptables, first enable the service by checking the <strong>Enable Service<\/strong> option. Once enabled, you can create, delete, modify, disable, or reorder firewall rules. Be sure to click the <strong>Save<\/strong> button after each change; otherwise, the modifications will not take effect in the system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Clicking <strong>Reset Rules<\/strong> will discard all changes and restore the firewall to the default XonTel rule set.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:30px\"><strong>Add Rule<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"593\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-94-1024x593.png\" alt=\"\" class=\"wp-image-7984\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-94-1024x593.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-94-300x174.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-94-768x445.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-94-18x10.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-94.png 1508w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Name<\/strong>: Defines the name used to identify the firewall rule.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Description<\/strong>: Provides optional details about the purpose of the rule.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Order<\/strong>: Defines the rule priority. Rules are applied according to their order.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>IP Address<\/strong>: Defines the IP address and mask used to match network traffic when IP Address is selected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Protocol<\/strong>: Defines the protocol affected by the rule, such as TCP, UDP, or both.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Action<\/strong>: Defines the action applied to matching traffic, such as Accept or Reject access.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Enabled<\/strong>: Enables or disables the firewall rule without deleting it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Protocol<\/strong>: Defines the protocol affected by the rule, such as TCP, UDP, or both.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Port<\/strong>: Defines the port or port range affected by the rule.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"292\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-95-1024x292.png\" alt=\"\" class=\"wp-image-7987\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-95-1024x292.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-95-300x86.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-95-768x219.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-95-18x5.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-95.png 1490w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ud83d\udd01 Reordering Rules<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"387\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-98-1024x387.png\" alt=\"\" class=\"wp-image-7993\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-98-1024x387.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-98-300x113.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-98-768x290.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-98-18x7.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-98.png 1501w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In IP tables rule management, the <strong>order of rules<\/strong> is critical \u2014 packets are evaluated <strong>top-down<\/strong>, and the first matching rule determines the action.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"345\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-97-1024x345.png\" alt=\"\" class=\"wp-image-7989\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-97-1024x345.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-97-300x101.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-97-768x259.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-97-18x6.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-97.png 1518w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To <strong>reorder rules<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Identify the rule<\/strong> to move.<\/li>\n\n\n\n<li>Use the <strong>Move<\/strong> icons:\n<ul class=\"wp-block-list\">\n<li>\u23eb <strong>Move to Top<\/strong> \u2013 Places rule at the top.<\/li>\n\n\n\n<li>\ud83d\udd3c <strong>Move Up<\/strong> \u2013 Shifts rule one step higher.<\/li>\n\n\n\n<li>\ud83d\udd3d <strong>Move Down<\/strong> \u2013 Shifts rule one step lower.<\/li>\n\n\n\n<li>\u23ec <strong>Move to Bottom<\/strong> \u2013 Sends rule to the end.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click the <strong>Submit<\/strong> button to <strong>apply<\/strong> changes.<\/li>\n\n\n\n<li>(Optional) Click <strong>Cancel<\/strong> to <strong>discard<\/strong> changes.<\/li>\n<\/ol>","protected":false},"author":1,"featured_media":0,"parent":2345,"menu_order":0,"template":"","manualdocumentationcategory":[16],"manual_doc_tag":[],"class_list":["post-2348","manual_documentation","type-manual_documentation","status-publish","hentry","manualdocumentationcategory-xontel-doc"],"_links":{"self":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":8,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2348\/revisions"}],"predecessor-version":[{"id":9262,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2348\/revisions\/9262"}],"up":[{"embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2345"}],"wp:attachment":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/media?parent=2348"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manualdocumentationcategory?post=2348"},{"taxonomy":"manual_doc_tag","embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_doc_tag?post=2348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}