{"id":26138,"date":"2018-08-22T18:58:06","date_gmt":"2018-08-22T23:58:06","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=26138"},"modified":"2019-05-16T16:34:01","modified_gmt":"2019-05-16T21:34:01","slug":"trustedip","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/collection-endpoints\/trustedip\/","title":{"rendered":"trustedIp"},"content":{"rendered":"<p><b>Description: <\/b>filter incoming packets depending on the white or black IP addresses list : OBJECT<\/p>\n<table style=\"width: 550px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<thead>\n<tr>\n<td valign=\"top\" width=\"100\"><b>Element<\/b><\/td>\n<td valign=\"top\" width=\"100\"><b>Type<\/b><\/td>\n<td valign=\"top\" width=\"400\"><b>Description<\/b><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td valign=\"top\" width=\"100\">enabled<\/td>\n<td valign=\"top\" width=\"100\">BOOL<\/td>\n<td valign=\"top\" width=\"400\">enable or disable the Trusted IP functionality (default:false)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">mode<\/td>\n<td valign=\"top\" width=\"100\">STRING<\/td>\n<td valign=\"top\" width=\"400\">select the mode, black list or white list. In the white list\u00a0 mode the incoming traffic from the trusted IP addresses will be processed, other traffic will be dropped. In the black list mode the incoming traffic from the Trusted IP addresses will be dropped, other traffic will be processed. Valid values are &#8216;whitelist&#8217;, &#8216;blacklist&#8217;. (default:&#8217;whitelist&#8217;)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">rules<\/td>\n<td valign=\"top\" width=\"100\">ARRAY<\/td>\n<td valign=\"top\" width=\"400\">trusted IP filtering rules list<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">\u00a0 \u00a0 name<\/td>\n<td valign=\"top\" width=\"100\">STRING<\/td>\n<td valign=\"top\" width=\"400\">rule name<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">\u00a0\u00a0\u00a0 ipMode<\/td>\n<td valign=\"top\" width=\"100\">STRING<\/td>\n<td valign=\"top\" width=\"400\">source IP address mode. Use a single IP address with subnet mask (subnet mode) or IP range (range mode). valid values are &#8216;subnet&#8217;, &#8216;range&#8217;<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">\u00a0\u00a0\u00a0 subnetSrcAddr<\/td>\n<td valign=\"top\" width=\"100\">STRING<\/td>\n<td valign=\"top\" width=\"400\">source IP address. Is used only when ipMode is &#8216;subnet&#8217;. example: [10.10.10.10]<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">\u00a0\u00a0\u00a0 subnetSrcMask<\/td>\n<td valign=\"top\" width=\"100\">STRING<\/td>\n<td valign=\"top\" width=\"400\">source IP mask. Is used only when ipMode is &#8216;subnet&#8217;. examples [255.255.255.0], [24]<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">\u00a0\u00a0\u00a0 rangeSrcAddrStart<\/td>\n<td valign=\"top\" width=\"100\">STRING<\/td>\n<td valign=\"top\" width=\"400\">source IP address start. Is used only when ipMode is &#8216;range&#8217;. example: [10.10.10.10]<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">\u00a0\u00a0\u00a0 rangeSrcAddrEnd<\/td>\n<td valign=\"top\" width=\"100\">STRING<\/td>\n<td valign=\"top\" width=\"400\">source IP address end. is used only when ipMode is &#8216;range&#8217;. example: [10.10.10.20]<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">\u00a0 \u00a0 protocol<\/td>\n<td valign=\"top\" width=\"100\">STRING<\/td>\n<td valign=\"top\" width=\"400\">the Internet protocol to use. valid values are &#8216;TCP&#8217;, &#8216;UDP&#8217;, &#8216;TCP\/UDP&#8217; and &#8216;ANY&#8217; (default:ANY)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"100\">\u00a0\u00a0\u00a0 dstPort<\/td>\n<td valign=\"top\" width=\"100\">STRING<\/td>\n<td valign=\"top\" width=\"400\">destination port. examples [5000], [6000:6002], [5000,6000-6002,8000:8010] (default:ANY)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>\u00a0<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description: filter incoming packets depending on the white or black IP addresses list : OBJECT Element Type Description enabled BOOL enable or disable the Trusted IP functionality (default:false) mode STRING select the mode, black list or white list. In the white list\u00a0 mode the incoming traffic from the trusted IP addresses will be processed, other [&hellip;]<\/p>\n","protected":false},"author":1478,"featured_media":0,"parent":13129,"menu_order":63,"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-26138","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/26138","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\/1478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=26138"}],"version-history":[{"count":7,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/26138\/revisions"}],"predecessor-version":[{"id":26140,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/26138\/revisions\/26140"}],"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=26138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}