Internet on pfsense, no internet on LAN clients
-
Addred gateway i WAN interface, the route add lines. now its working. :P
-
I am leasing some servers at OVH, and to get internet working i have to run these lines after every boot to get internet working.
route add -net x.x.27.254/32 -iface em0
route add default x.x.27.254So after reboot internet is not working. how can i do this automatic the best way? is this something that can be done in routing in pfsense?
-
you need to add a gateway
-
gateway on wan has been added to :x.x.27.254
but these line has to go also before internet can be accessed
route add -net x.x.27.254/32 -iface em0
route add default x.x.27.254 -
then you are doing something wrong, those commands manually add a gateway - they shouldn't be needed
-
Do this for WAN to set the default gateway on WAN…
![Screen Shot 2016-10-23 at 8.17.18 AM.png](/public/imported_attachments/1/Screen Shot 2016-10-23 at 8.17.18 AM.png)
![Screen Shot 2016-10-23 at 8.17.18 AM.png_thumb](/public/imported_attachments/1/Screen Shot 2016-10-23 at 8.17.18 AM.png_thumb) -
Se my screenshot, this is in my wan interface.
-
and this is the OVH ip guide:
http://guide.ovh.com/BridgeClient
-
If others wonder how i fixed it?
This is how: http://www.ryanbelanger.com/pfsense-on-ovh-vm/And if there is a bether way please tell me.
-
Under Routing -> Gateways -> Advanced i checked : Use non-local gateway Use non-local gateway through interface specific route.
That fixed all my problems. Case Closed