{"id":1827,"date":"2015-02-12T22:31:51","date_gmt":"2015-02-12T22:31:51","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1827"},"modified":"2015-02-12T22:31:51","modified_gmt":"2015-02-12T22:31:51","slug":"change-ip-route-blacklist","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/12\/change-ip-route-blacklist\/","title":{"rendered":"Change IP route for Blacklist"},"content":{"rendered":"<p>Add the clean IP to the server.<\/p>\n<p>Edit the firewall to NAT all connections FROM port 25 to use the new IP.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# iptables -t nat -A POSTROUTING -p tcp --dport 25 -j SNAT --to-source NEW.IPA.DDR.ESS\n# service iptables save\n<\/pre>\n<p>Ensure that the IP is on eth1<br \/>\nor&#8230;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# iptables -t nat -A POSTROUTING -o eth1 -p tcp -j SNAP --dport 25 --to-source 123.45.6.7\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Add the clean IP to the server. Edit the firewall to NAT all connections FROM port 25 to use the new IP. # iptables -t nat -A POSTROUTING -p tcp &#8211;dport 25 -j SNAT &#8211;to-source NEW.IPA.DDR.ESS # service iptables save Ensure that the IP is on eth1 or&#8230; # iptables -t nat -A POSTROUTING -o &#8230; <a title=\"Change IP route for Blacklist\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/12\/change-ip-route-blacklist\/\" aria-label=\"Read more about Change IP route for Blacklist\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,52],"tags":[],"class_list":["post-1827","post","type-post","status-publish","format-standard","hentry","category-emal","category-iptables"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=1827"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1827\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}