{"id":1260,"date":"2014-04-12T21:27:34","date_gmt":"2014-04-13T04:27:34","guid":{"rendered":"http:\/\/wp.colliertech.org\/cj\/?p=1260"},"modified":"2014-04-12T21:27:34","modified_gmt":"2014-04-13T04:27:34","slug":"iptables-and-the-prerouting-chain","status":"publish","type":"post","link":"https:\/\/wp.c9h.org\/cj\/?p=1260","title":{"rendered":"iptables and the PREROUTING chain"},"content":{"rendered":"<p>So it looks like the PREROUTING chain does not exist in the filter table.  When attempting to drop packets in the PREROUTING chain, you need to specify the table.  For instance, the nat table:<\/p>\n<p>iptables -t nat -A PREROUTING  -p tcp -i eth2 -s 10.18.83.0\/24 -d ! 172.16.0.0\/12 -m multiport \u00e2\u20ac\u201cdports 80,8080 -j DNAT \u00e2\u20ac\u201cto 172.19.100.206:80<\/p>\n\n<div class=\"twitter-share\"><a href=\"https:\/\/twitter.com\/intent\/tweet?via=cjamescollier\" class=\"twitter-share-button\">Tweet<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>So it looks like the PREROUTING chain does not exist in the filter table. When attempting to drop packets in the PREROUTING chain, you need to specify the table. For instance, the nat table: iptables -t nat -A PREROUTING -p tcp -i eth2 -s 10.18.83.0\/24 -d ! 172.16.0.0\/12 -m multiport \u00e2\u20ac\u201cdports 80,8080 -j DNAT \u00e2\u20ac\u201cto [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1260","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1YDIB-kk","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/1260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1260"}],"version-history":[{"count":1,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/1260\/revisions"}],"predecessor-version":[{"id":1278,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/1260\/revisions\/1278"}],"wp:attachment":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}