On Thu, Sep 15, 2016 at 19:41:28 +0000, fishy wrote: > I tried /etc/systemd/system/ocserv.socket.d/port.conf trick, looks like it > adds port to listen, but didn't replace the ports defined in > /lib/systemd/system/ocserv.socket:
Sorry, you're right, I forgot these options are cumulative. Assigning them to an empty value first in the drop-in file disables the default port (see 'man systemd.socket'). Actually tested this time and works for me: [Socket] ListenStream= ListenDatagram= ListenStream=12345 ListenDatagram=12345 Reorder however you like, as long as the empty assignment comes before the new port assignment of the corresponding socket type. Do you think this should be documented in ocserv, maybe README.Debian? -- mike