{"id":822,"date":"2008-05-27T01:05:50","date_gmt":"2008-05-27T06:05:50","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/?p=822"},"modified":"2008-05-27T01:05:50","modified_gmt":"2008-05-27T06:05:50","slug":"secure-travelling-with-ipfw-on-os-x","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2008\/05\/27\/secure-travelling-with-ipfw-on-os-x","title":{"rendered":"Secure travelling with ipfw on OS X?"},"content":{"rendered":"<p>Dear (mac\/bsd) Lazyweb,<\/p>\n<p>Any idea how I can do the following, on Mac OS X?<\/p>\n<p><tt>iptables -t nat -A PREROUTING -p tcp -d my.pop.server \u2014dport 110 -j DNAT \u2014to-destination 127.0.0.1:1235<br \/>\niptables -t nat -A OUTPUT -p tcp -d my.pop.server \u2014dport 110 -j DNAT \u2014to-destination 127.0.0.1:1235<\/tt><\/p>\n<p>Does <tt>ipfw(8)<\/tt> work in OS X? What magic will I have to use for this to work? All I really want is for my.pop.server:110 to point to localhost:1235, so if the SSH tunnel isn&#8217;t up, I can&#8217;t POP my mail. I wrote about this in <a href=\"https:\/\/www.bytebot.net\/blog\/archives\/2007\/12\/06\/secure-travelling-tips-with-iptables-and-ssh-port-forwarding\">Secure travelling tips with iptables and SSH port forwarding<\/a>, as that&#8217;s what I do on Linux.<\/p>\n<p>Why do I ask? I&#8217;m thinking that my personal laptop (currently a Dell Inspiron 640m running Linux) might actually be replaced with a MacBook Air in the near future (lighter, easier to carry, etc.). Oh, if you have comments about the Air, don&#8217;t hesitate to tell them to me as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dear (mac\/bsd) Lazyweb, Any idea how I can do the following, on Mac OS X? iptables -t nat -A PREROUTING -p tcp -d my.pop.server \u2014dport 110 -j DNAT \u2014to-destination 127.0.0.1:1235 iptables -t nat -A OUTPUT -p tcp -d my.pop.server \u2014dport 110 -j DNAT \u2014to-destination 127.0.0.1:1235 Does ipfw(8) work in OS X? What magic will I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[147,17,145,144,148,5,68,146],"class_list":["post-822","post","type-post","status-publish","format-standard","hentry","category-general","tag-apple","tag-freebsd","tag-ipfw","tag-iptables","tag-macbook-air","tag-macosx","tag-security","tag-ssh"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-dg","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/822","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=822"}],"version-history":[{"count":0,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/822\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}