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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With