Problem with static routes/gateway on another subnet
dunks last edited by
I'm currently having some issues with the way my dedicated server host manages extra IPs.
I'm running it under ESXi, the host has the address 188.8.131.52, with a gateway of 184.108.40.206 .
My WAN interface, em0, has the address 220.127.116.11. My gateway however must be set as 18.104.22.168
In order to do this I have a route set up like this:
route add -net 22.214.171.124/32 -iface em0
route add default 126.96.36.199
This works, but however once I restart my pfsense machine the routes no longer exist. I've tried adding them using the web interface but it doesn't seem to work, nor with adding it to the config.xml with shellcmd.
Any ideas how I can have these routes/gateways set upon boot?
Thanks in advance.
renow last edited by
based on Online documentation, you have to change netmask to /32 too…
To have all theses settings saved on reboot, you will have to change the /conf/config.xml file of your pfsense VM.
You can change the netmask in the interface definition :<interfaces><wan></wan></interfaces>
You have to add the two following lines just before
<shellcmd>route add -net 188.8.131.52/32 -iface em0</shellcmd> <shellcmd>route add default 184.108.40.206</shellcmd>
Hope this helps…