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

    Run two services on the same port?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 345 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.
    • gnitingG
      gniting
      last edited by

      I have a scenario where I want to run two services on the same port. The port is 5353 and it is picked up by the Avahi service when I install the package. I am running another (custom) package that also does MDNS discovery and uses the same port (5353).

      On linux one can use SO_REUSEADDR and SO_REUSEPORT to achieve this. Is there a way to use these options on pfsense?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @gniting
        last edited by

        @gniting
        Like running two DNS server process on the same address same port.
        Or web servers.
        IMHO : that's pretty broken.

        @gniting said in Run two services on the same port?:

        SO_REUSEADDR and SO_REUSEPORT

        IFAIK both process should also support port sharing .... maybe. Not sure if Avahi does this. Guess not.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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