tags:

views:

221

answers:

1

I am sending SYN packets using raw sockets in Linux. The response(SYN+ACK) is being intercepted by the OS and it is responding with a RST. I would like to prevent the OS from intercepting this packet, and let it be handled by my application. How can I accomplish this?

+1  A: 

You could make a rule in IPtables to filter outgoing RST packets.

iptables -A OUTPUT -p tcp --tcp-flags RST RST -j DROP

Don't forget to disable it later! Have fun.

kmm