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

    Differences in UI and command line

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 702 Views 2 Watching
    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.
    • P Offline
      poulp06
      last edited by poulp06

      Hi all,

      I'm totally new to pfsense (and have no XP with FreeBSD either) and the link between the configuration shown in the webUI and the server configuration that I can see from the command line isn't clear to me.

      As an example, I've setup an openVPN client. When I check the routes I can see the route setup by the OpenVPN client to the remote network :

      $ netstat -rn
      [...]
      192.168.0.0/24     123.123.123.123      UGS      ovpnc1
      

      To me that means that I have a static route to the network 192.168.0.0/24.
      That does look good as I setup that network as "IPv4 Remote network" in my OpenVPN client configuration.

      However when in the webUI I go to : System/Routing/Static Routes
      I see nothing there ?

      Furthermore the PfSense/OpenVPN doc documenting the creation of OpenVPN interface and possible associated static routing says :

      Do not use this automatic gateway for static routes. Use the Remote Network field in the VPN configuration. Defining a static route using the automatic OpenVPN gateway will not work properly.
      

      Why not ? I saw that indeed the Remote Network option did create a route on FreeBSD side... but why is not referenced in the GUI then ?

      Anyway it doesn't work ;) So I've probably missed something... but that's another topic ;)

      While trying to debug that, I feel like I'm also missing a more general concept about PfSense spirit. Is the UI supposed to represent exactly the FreeBSD configuration ? Or is there some software in the middle ? One which would be using other dedicated routing tables ?
      I haven't find any reference in the documentation, but I'm not really sure of how to search for that :-(

      Thanks for your help !

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        SteveITS Rebel Alliance @poulp06
        last edited by

        Static routes are routes you enter. Check Diagnostics/Routes.

        Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 0
        • P Offline
          poulp06
          last edited by poulp06

          Hi Steve,

          Thanks for your answer !
          Indeed in Diagnostics/Routes I do find the output of netstat -nr.

          So should I understand that in System/Routing/Static Routes I can only see routes that were added through this very same System/Routing/Static Routes page of the webUI ?

          So, if it's just a question of UI -apart from being easier to setup- why setting up my openVPN routes through this interface would make them "not working properly" as it's said in the documentation ?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            SteveITS Rebel Alliance @poulp06
            last edited by

            @poulp06 You shouldn’t need to add routes in most instances.
            “ Static routes are used when hosts or networks are reachable through a router other than the default gateway. The firewall knows about the networks directly attached to it, and it reaches all other networks as directed by the routing table. In networks where an internal router connects additional internal subnets, a static route must be defined for those networks to be reachable.”
            http://docs.netgate.com/pfsense/en/latest/routing/static.html

            Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
            Upvote 👍 helpful posts!

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              poulp06 @SteveITS
              last edited by

              @teamits I'm pretty familiar with the network principles and static routes :)
              I was just puzzled about the way pfSense web interface present (or hide) them.

              Probably it's because I'm not used to user interface to manage my networks ;)

              I was expecting a UI which directly represent the host configuration whereas it looks like the spirit is more to manage the config behind the scene and only present the high level functionalities ^^.

              Anyway, thanks for your insights !

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