Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

iptables rule redirects all closed ports on the machine to the one portspoof listens to: https://github.com/drk1wi/portspoof/blob/c3f3c34531c59df229e...

Then it calls getsockopt to find out what the original port was: https://github.com/drk1wi/portspoof/blob/c3f3c34531c59df229e...



That's actually pretty darn neat. Thanks for the references, too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: