{"id":386,"date":"2016-01-16T23:49:37","date_gmt":"2016-01-17T04:49:37","guid":{"rendered":"http:\/\/www.ryanbelanger.com\/?p=386"},"modified":"2016-01-16T23:49:37","modified_gmt":"2016-01-17T04:49:37","slug":"pfsense-on-ovh-vm","status":"publish","type":"post","link":"https:\/\/ryanbelanger.com\/?p=386","title":{"rendered":"PFSense on OVH VM"},"content":{"rendered":"<ol>\n<li>Create a virtual MAC for the failover IP in OVH Manager<\/li>\n<li>Add an additional switch to VMware<\/li>\n<li>Create a VM for pfSense (FreeBSD 64bits), add 2 nics, one connected to each switch (WAN and LAN)<\/li>\n<li>Set the VM\u2019s WAN adapter MAC address to the OVH virtual MAC created on step1<\/li>\n<li>Install pfSense using the LiveCD<\/li>\n<li>Add both NIC\u2019s in pfSense. WAN should be em0 and LAN will be em1<\/li>\n<li>Once pfSense is booted, set the WAN IP<\/li>\n<li>Choose option 8) Shell\n<ol>\n<li>route add -net x.x.x.254\/32 -iface em0<\/li>\n<li>route add default x.x.x.254<\/li>\n<li>** WHERE x.x.x is the IP address of the VMWare HOST<\/li>\n<li>Ping 8.8.8.8 (if this doesn\u2019t work, review previous steps)<\/li>\n<\/ol>\n<\/li>\n<li>In another VM which has as NIC on LAN and IP in 192.168.1.x, goto http:\/\/192.168.1.1\n<ol>\n<li>admin:pfsense<\/li>\n<\/ol>\n<\/li>\n<li>In Firewall &gt; NAT, Outbound add a rule.<\/li>\n<li>Leave everything unchanged except Source Address: 192.168.1.0 and add a description<\/li>\n<li>In Services &gt; DHCP Server, LAN set the Gateway to 192.168.1.1<\/li>\n<li>Done (almost). You should now be able to ping the Internet from your VMs on the LAN<\/li>\n<\/ol>\n<p>The routes added will clear themselves when the firewall is rebooted.\u00a0 Here is how to make them permanent.<\/p>\n<ul>\n<li>Install the package: System &gt; Packages, Shellcmd<\/li>\n<li>Services &gt; Shellcmd and add the commands you ran in 8-a. and 8-b.<\/li>\n<li>Reboot and you should be good!<\/li>\n<\/ul>\n<p>Optionally but suggested, install Open-VM Vmware tools<\/p>\n<ul>\n<li>System &gt; Packages, Open-VM-Tools<\/li>\n<li>Reboot<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Create a virtual MAC for the failover IP in OVH Manager Add an additional switch to VMware Create a VM for pfSense (FreeBSD 64bits), add 2 nics, one connected to each switch (WAN and LAN) Set the VM\u2019s WAN adapter MAC address to the OVH virtual MAC created on step1 Install pfSense using the LiveCD [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-386","post","type-post","status-publish","format-standard","hentry","category-tips"],"_links":{"self":[{"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/posts\/386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=386"}],"version-history":[{"count":0,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/posts\/386\/revisions"}],"wp:attachment":[{"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}