{"id":300,"date":"2013-02-12T05:22:50","date_gmt":"2013-02-12T05:22:50","guid":{"rendered":"https:\/\/shan.info\/new\/pfsense-enable-wan-using-shell\/"},"modified":"2013-02-12T05:22:50","modified_gmt":"2013-02-12T05:22:50","slug":"pfsense-enable-wan-using-shell","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/pfsense-enable-wan-using-shell\/","title":{"rendered":"pfsense Enable WAN using shell"},"content":{"rendered":"<p>\n\t<span style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\">* Install pfSense &nbsp;on your target machine<\/span><br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<span style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\">* Unless your WAN gets a DHCP address, you will need to manually assign the IP Address of the WAN interface:<\/span><br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<span style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\">&nbsp;&nbsp;&#8211;&gt; Get to the CLI (option 8 )<\/span><br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<span style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\">&nbsp;&nbsp;&#8211;&gt; Type &#8220;ifconfig en0 10.20.30.40 255.255.255.248&#8221; (substitute en0 for your WAN interface and use the correct IP Address\/Mask)<\/span><br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<span style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\">&nbsp;&nbsp;&#8211;&gt; Type &#8220;route add default &lt;default-gw-ip&gt;&#8221;<\/span><br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<span style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\">&nbsp;&nbsp;&#8211;&gt; Type &#8220;pfctl -d&#8221; to temporarily disable the packet filter<\/span><br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<span style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\">* Point your browser to your WAN IP address then login as admin\/pfsense<\/span><br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<br style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\" \/><br \/>\n\t<span style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\">* Once you have done your initial configuration, MAKE SURE to enable the packet filter again (CLI &#8211;&gt; &#8220;pfctl -e&#8221;)<\/span><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t<i style=\"font-family: verdana, sans-serif; font-size: small; line-height: 16.890625px; background-color: rgb(239, 239, 239);\">[2.0-RC1][<a href=\"mailto:admin@pfsense.localdomain\" style=\"color: rgb(150, 22, 22);\">admin@pfsense.localdomain<\/a>]\/root(1): <span style=\"color:#ff0000;\">netstat -rn<\/span><br \/>\n\tRouting tables<\/p>\n<p>\tInternet:<br \/>\n\tDestination&nbsp; &nbsp; &nbsp; &nbsp; Gateway&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Flags&nbsp; &nbsp; Refs&nbsp; &nbsp; &nbsp; Use&nbsp; Netif&nbsp; Expire<br \/>\n\t82.53.4.204&nbsp; &nbsp; &nbsp; &nbsp; link#2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UHS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; lo0&nbsp; &nbsp; &nbsp; =&gt;<br \/>\n\t82.53.4.204\/32&nbsp; &nbsp;link#2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; em1<br \/>\n\t85.37.17.57&nbsp; &nbsp; &nbsp; &nbsp; 00:0e:0c:dc:c7:d7&nbsp; UHS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; em1<br \/>\n\t127.0.0.1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; link#5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UH&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; 131&nbsp; &nbsp; lo0<br \/>\n\t192.168.0.0\/24&nbsp; &nbsp;link#1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 384&nbsp; &nbsp; em0<br \/>\n\t192.168.0.253&nbsp; &nbsp; link#1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UHS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;lo0<\/i><\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>* Install pfSense &nbsp;on your target machine * Unless your WAN gets a DHCP address, you will need to manually assign the IP Address of the WAN interface: &nbsp;&nbsp;&#8211;&gt; Get to the CLI (option 8 ) &nbsp;&nbsp;&#8211;&gt; Type &#8220;ifconfig en0 10.20.30.40 255.255.255.248&#8221; (substitute en0 for your WAN interface and use the correct IP Address\/Mask) &nbsp;&nbsp;&#8211;&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-300","post","type-post","status-publish","format-standard","hentry","category-pfsense"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=300"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/300\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}