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

    OVH - cannot set wan interface default gateway

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    6 Posts 2 Posters 487 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.
    • I
      ICTProxserver
      last edited by

      With OVH it is often very inconvenient when an extra IP address is used. In this case the pfsense does not accept the gateway during installation. So how do you get this information to work?

      The settings below are not accepted during installation following error,
      cannot set wan interface default gateway.

      IPv4 Address 5.39.98.xx /32 = 255.255.255.255
      Default Gateway 94.23.217.xxx

      With a Windows 10 installation, for example, these settings do work. Apart from the fact that Windows also indicates that this setting is incorrect. OVH simply has a strange way of routing, which it is not in this case. But linked to your current IP

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You have to set the advanced gateway option: Use non-local gateway because, as you say, OVH have their special way of doing things that ignore normal conventions! A gateway outside the WAN subnet is not valid except for ptp connections. But.... OVH. ๐Ÿ™„

        https://docs.netgate.com/pfsense/en/latest/routing/gateway-configure.html#advanced-gateway-settings

        I 1 Reply Last reply Reply Quote 0
        • I
          ICTProxserver @stephenw10
          last edited by

          @stephenw10 Thanks for the response, only I have not yet run the web interface I am in the setup installation. Can I go to the Command line and enter a command via the shell that activates this action? In the meantime I have installed OPNsense. Works too but Pfsense has more other options.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            No, the input validation will prevent you entering a bad gateway at the initial setup like that. You would have to either connect to the webgui from the LAN or add a gateway manually as a temporary workaround to get WAN access/

            I 1 Reply Last reply Reply Quote 0
            • I
              ICTProxserver @stephenw10
              last edited by

              @stephenw10

              Am I understanding this correctly so as an example use a non-existing gateway which is on the same network segment. Then via the kan gui adjust this to the correct (OVH gate) For now I have installed a
              fork of pfSense namely OPNsense running. This system went a bit smoother here with the strange gateway of OVH. I want to evaluate both systems. OPNsense is also not bad. Both systems will have their pros and cons. Thx for youre reply ๐Ÿ‘

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Just set no gateway or set the WAN to DHCP at the initial assignment. Then access it via the WAN and enable the non-local gateway option.

                If you really have to you could probably set that at the command line but I'd have to go through and check.

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