Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Add route to host

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 2 Posters 510 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      svengo
      last edited by

      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.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @svengo
        last edited by

        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

        gateway.png

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        S 1 Reply Last reply Reply Quote 1
        • S
          svengo @johnpoz
          last edited by

          @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. 🙄

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.