{"id":4585,"date":"2014-02-06T15:31:00","date_gmt":"2014-02-06T23:31:00","guid":{"rendered":"http:\/\/www.podfeet.com\/blog\/?page_id=4585"},"modified":"2014-05-19T22:06:07","modified_gmt":"2014-05-20T05:06:07","slug":"how-to-restart-ip-forwarding-on-vpn-server-on-mac","status":"publish","type":"page","link":"https:\/\/www.podfeet.com\/blog\/tutorials-5\/how-to-restart-ip-forwarding-on-vpn-server-on-mac\/","title":{"rendered":"How to Restart IP Forwarding on VPN Server on Mac"},"content":{"rendered":"<p>I have been running a VPN server on my Mac for a while now, per Donald Burr&#8217;s most awesome instructions <a href=\"https:\/\/www.podfeet.com\/blog\/tutorials-5\/how-to-set-up-a-vpn-server-using-a-mac-2\/\" target=\"_blank\">here<\/a>. One day while out and about I tried to use my VPN from my Mac and iOS devices only to discover that while I could connect and get an IP address internal to my network, I could not get outside to the Internet.  I described the problem to Donald and he sent me the following instructions to restart IP forwarding on the VPN server.  This fixed my problem in a snap, hope it helps you too.<\/p>\n<p>Try running the following commands in terminal on the VPN server.  You\u2019ll have to do this when you\u2019re next at home obviously.  Note: replace \u201cINTERFACE\u201d with \u201cen0\u201d if your machine is hardwired (ethernet) or \u201cen1\u201d if it\u2019s on wifi.<br \/>\n<code><br \/>\nsudo sysctl -w net.inet.ip.fw.enable=1<br \/>\nsudo sysctl -w net.inet.ip.forwarding=1<br \/>\nsudo natd -interface INTERFACE<br \/>\nsudo ipfw add divert natd ip from any to any via INTERFACE<br \/>\n<\/code><code><br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been running a VPN server on my Mac for a while now, per Donald Burr&#8217;s most awesome instructions here. One day while out and about I tried to use my VPN from my Mac and iOS devices only to discover that while I could connect and get an IP address internal to my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":4374,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[],"tags":[152,9],"class_list":["post-4585","page","type-page","status-publish","hentry","tag-security-tutorials","tag-tutorials","post"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/pages\/4585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=4585"}],"version-history":[{"count":3,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/pages\/4585\/revisions"}],"predecessor-version":[{"id":4588,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/pages\/4585\/revisions\/4588"}],"up":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/pages\/4374"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=4585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=4585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=4585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}