is there any way to change the order of WAN and LAN in the interface menu?



  • It's a small thing, but since my servers usually have one LAN and multiple WANs, I prefer to have my LAN listed first and then all the WANs following.

    However, it seems that pfsense defaults to putting the first WAN first, and then the LAN second, which results in a list like this, for me:

    WAN1
    LAN
    WAN2
    WAN3

    I would prefer:

    LAN
    WAN1
    WAN2
    WAN3

    Now, I thought this could be as simple as swapping the interface assignments, names (description), and the IPs, but then when I go into the pfsense console to set the IPs, I notice that the console specifically expects the second interface to be the LAN, and the first interface to be the WAN. Does this matter?

    I also noticed that it is possible to delete all interfaces except the first interface, which again tells me that pfsense is somehow hardcoded to expect the first and second interfaces to be WAN and LAN, respectively.


  • LAYER 8 Global Moderator

    Just set them to sort alphabetically

    sort.jpg

    Mine look like this

    alpha.jpg

    Or do you mean on the assignment page?

    assignment.jpg



  • I guess that setting them to sort alphabetically accomplishes what I want.

    But while we are on the topic, why is WAN set to first on the "Assignment" page? And is it possible to change that?


  • LAYER 8 Global Moderator

    Pretty sure because its the first interface setup.. As to changing that order, not sure.



  • Diagnostics > Backup & Restore and backup the Interfaces selection.

    e34ac8d8-4b5f-4497-9545-9814aaf88f09-image.png

    Use your favorite xml editir (notepad++ will do just fine) and swap and order as you like.
    Save the file.

    Select "Interfaces" only, and import.

    To be sure : reboot - but I guess it isn't needed.

    Result :

    dffd6e70-4828-4cdb-8092-89ff1dd420c3-image.png


Log in to reply