Run two services on the same port?
-
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?
-
@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.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.