Add route to host
-
Hi,
I am new to pfSense and have a problem setting up the routing correctly. The underlying problem is that the gateway for the Internet is outside the subnet:- IP address: 135.125.25.X
- gateway: 5.135.X.254
- Interface: vtnet0
Manually I get it set up under FreeBSD::
/sbin/route add -host 5.135.X.254 -iface vtnet0 /sbin/route add default 5.135.X.254
How can I best configure this in pfSense? It seems to be possible in the interface only to define a static route to a whole network via a gateway, which does not help me.
At the moment I help myself by putting the commands in
/usr/local/etc/rc.d/network.sh
. -
Under system routing, when you add a gateway - bottom of page advanced. You can set that the gateway is not local to your wan subnet
-
@johnpoz said in Add route to host:
Under system routing, when you add a gateway - bottom of page advanced. You can set that the gateway is not local to your wan subnet
Thank you, @johnpoz ! This was too simple.