Original Post
My server has been the target of many attempted hacks recently, and I am kinda tired of it. I also want to learn more about tcp/ip, so I thought a good project would be to write a connection tracer. Basically I want to scare the crap out of the hackers that keep on trying to get in. I want my program to start tracing when it detects a spoofed packet. I know several techniques to do that, mostly inspection the TTL field. But I am not sure how to trace a connection(especially through multiple "bounces"). I have some vague theory on how to do it, but I am not sure. If the hacker didnt spoof their MAC address, I could probably find them through ARP, but I am not well versed on low level protocol well. Oh yeah, is it legal to trace a hacker connection on your server? Any ideas on tracing would be appriciated.