pfsense Enable WAN using shell

* Install pfSense  on your target machine



* Unless your WAN gets a DHCP address, you will need to manually assign the IP Address of the WAN interface:

  –> Get to the CLI (option 8 )

  –> Type “ifconfig en0 10.20.30.40 255.255.255.248” (substitute en0 for your WAN interface and use the correct IP Address/Mask)

  –> Type “route add default <default-gw-ip>”

  –> Type “pfctl -d” to temporarily disable the packet filter



* Point your browser to your WAN IP address then login as admin/pfsense



* Once you have done your initial configuration, MAKE SURE to enable the packet filter again (CLI –> “pfctl -e”)

 

 

[2.0-RC1][[email protected]]/root(1): netstat -rn
Routing tables

Internet:
Destination        Gateway                  Flags    Refs      Use  Netif  Expire
82.53.4.204        link#2                    UHS         0        0    lo0      =>
82.53.4.204/32   link#2                      U           0        0    em1
85.37.17.57        00:0e:0c:dc:c7:d7  UHS         0        2    em1
127.0.0.1            link#5                    UH          0      131    lo0
192.168.0.0/24   link#1                      U           0      384    em0
192.168.0.253    link#1                    UHS         0        0     lo0