Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was reading this interesting article today: http://www.moserware.com/2009/06/first-few-milliseconds-of-https.html

A crazy thought came to mind...Is it possible to write an iptable rule that only redirects https handshake requests?

share|improve this question
up vote 3 down vote accepted

No. You can't know it's a HTTPS handshake until the connection is open. At that point, it's too late to redirect it. The SYN packet doesn't tell you what's going to be transmitted; that's why we have port numbers to begin with.

share|improve this answer
Thanks for the answer. That's what I was afraid of. :-( – exvance Mar 27 '12 at 6:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.