my OpenVPN only accept the connection if the first packet is 60bytes. Connection like telnet won't get through and will be thrown to DROP rule.
Not great but works for me.
Something like that would be nice, assumed first packet from a browser always has the same size.
What I had in mind was a https server on a non-standard port.
And have a filter rule that allows only ip's listed in a address list to access this server.
When a client wants to connect it will send a initial packet towards the server. If this packet can be matched by a mangle rule, the ip could be added to the address list and thereby be allowed access to the server.
Why would anyone want a rule that allows anyone to connect? Well, I'm thinking that if the first packet of a https connection differs from any packet from a port scanner, the port will look closed to the portscanners, but still be open for https connections. This way I hope to make the server a little bit harder to find.