To counter opportunistic probes of common ports, for years my SSH port has been at the high end of the Registered port range,1024-49151 (instead of port 22), and I’ve never had a single problem.
More recently, and for the same reasons, I moved the OpenVPN Server port from 1194 to a number also at the high end of the Registered range, say, 44567. No problems until yesterday when the server stopped working. (And, although my second server was running, I wasn’t able to connect; fortunately, I was at home.). The logfile stated: “errno99: cannot assign requested address “ and then the public IP address was listed along with the port number 44567. A search led me to believe I’d had a collision on that port: some other process, by chance, happened to be using it.
I thought, serves me right: I should have picked a port in the Dynamic or Private port range (49152-65535). At least, I did think that till I did some digging
https://stackoverflow.com/questions...or-in-house-application-use/38141340#38141340
after which, more confused, I thought perhaps it was right after all to use a Registered port number after all, and that the Private/Dynamic port range (>49152) should be left alone.
But one item in that link caught my eye:
“On the opposite, take a port already assigned to something you're sure won't ever get needed. For example, TCP 31457 is assigned to TetriNET, so it's a pretty sure bet (unless your business is multiplayer tetris). – maaartinusAug 20 '18 at 18:17”
And, that strikes me as quite a good idea.
But before I do anything, I thought I’d seek people’s comments not only on that suggestion but also on the rest of this post.
More recently, and for the same reasons, I moved the OpenVPN Server port from 1194 to a number also at the high end of the Registered range, say, 44567. No problems until yesterday when the server stopped working. (And, although my second server was running, I wasn’t able to connect; fortunately, I was at home.). The logfile stated: “errno99: cannot assign requested address “ and then the public IP address was listed along with the port number 44567. A search led me to believe I’d had a collision on that port: some other process, by chance, happened to be using it.
I thought, serves me right: I should have picked a port in the Dynamic or Private port range (49152-65535). At least, I did think that till I did some digging
https://stackoverflow.com/questions...or-in-house-application-use/38141340#38141340
after which, more confused, I thought perhaps it was right after all to use a Registered port number after all, and that the Private/Dynamic port range (>49152) should be left alone.
But one item in that link caught my eye:
“On the opposite, take a port already assigned to something you're sure won't ever get needed. For example, TCP 31457 is assigned to TetriNET, so it's a pretty sure bet (unless your business is multiplayer tetris). – maaartinusAug 20 '18 at 18:17”
And, that strikes me as quite a good idea.
But before I do anything, I thought I’d seek people’s comments not only on that suggestion but also on the rest of this post.
Last edited: