{"id":13274,"date":"2016-06-22T10:32:43","date_gmt":"2016-06-22T15:32:43","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=13274"},"modified":"2019-12-02T16:26:51","modified_gmt":"2019-12-02T22:26:51","slug":"nat","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/collection-endpoints\/nat\/","title":{"rendered":"nat"},"content":{"rendered":"<p>Description: list of NAT rules for advanced firewall settings : ARRAY<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color: #4682b4;\"><span style=\"color: #ffffff;\"><strong>Element<\/strong><\/span><\/td>\n<td style=\"background-color: #4682b4;\"><span style=\"color: #ffffff;\"><strong>Type<\/strong><\/span><\/td>\n<td style=\"background-color: #4682b4;\"><span style=\"color: #ffffff;\"><strong>Description<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">__v<\/td>\n<td valign=\"top\" width=\"75\">UINT<\/td>\n<td valign=\"top\" width=\"350\">Version of model [2]<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">chain<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Chain to apply rule : PREROUTING, or POSTROUTING<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">description<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Short description of rule (optional)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">dstAddr<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Destination IP address of packet (optional)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">dstInterface<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Destination interface to apply rule (optional). examples: WAN, LAN, CELLULAR, WIFI<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">dstMask<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Destination IP mask (optional). examples: 255:255:255:0, 24<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">dstPort<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Destination IP port (optional). examples: 5000, 6000:6002, 5000, 6000-6002, 8000:8010<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">dstSpecInterface<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Destination specific interface. Use for tunnels. Use only when &#8216;dstInterface&#8217; is &#8216;OPENVPN&#8217;. (optional)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">enableNatLoopback<\/td>\n<td valign=\"top\" width=\"75\">BOOL<\/td>\n<td valign=\"top\" width=\"350\">Enables or disables NAT loopback<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">enabled<\/td>\n<td valign=\"top\" width=\"75\">BOOL<\/td>\n<td valign=\"top\" width=\"350\">Enables or disables this rule<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">guid<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Rule ID (automatic)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">name<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Unique name of rule<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">protocol<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Specifies the packet protocol (optional). examples: TCP, UDP, TCP, UDP, TCP\/UDP<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">srcAddr<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Source IP address of packet (optional)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">srcInterface<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Specifies the source interface to apply rule (optional). examples: WAN, LAN, CELLULAR, WIFI<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">srcMac<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Source MAC address<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">srcMask<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Source IP mask of packet (optional). examples: 255:255:255:0, 24<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">srcPort<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Source IP port (optional). examples: 5000, 6000:6002, 5000, 6000-6002, 8000:8010<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">srcSpecInterface<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Source specific interface. Use for tunnels. Use only when &#8216;srcInterface&#8217; is &#8216;OPENVPN&#8217;. (optional)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">target<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Target of NAT rule: DNAT, SNAT, or MASQUERADE<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">toAddr<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Network address translation of IP address<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">toPort<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Network address translation of IP ports. examples: 5000, 6000:6002, 5000, 6000-6002, 8000:8010<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Description: list of NAT rules for advanced firewall settings : ARRAY Element Type Description __v UINT Version of model [2] chain STRING Chain to apply rule : PREROUTING, or POSTROUTING description STRING Short description of rule (optional) dstAddr STRING Destination IP address of packet (optional) dstInterface STRING Destination interface to apply rule (optional). examples: WAN, [&hellip;]<\/p>\n","protected":false},"author":1872,"featured_media":0,"parent":13129,"menu_order":37,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-13274","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1872"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=13274"}],"version-history":[{"count":7,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13274\/revisions"}],"predecessor-version":[{"id":22670,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13274\/revisions\/22670"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13129"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=13274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}