I was reading: IP Spoofing with real IP when TCP 3-way handshake has been made
Where the answer says:
First of all, every TCP packet has a sequential identifier, which starts at a random position. (explained briefly in this discussion) So if the attacker is spoofing (non-SYN) packets (trying to hijack an existing connection), then all of those spoofed packets will be ignored or refused (depending on the type of packet) because they will be out of sequence.
- I understand this, but what about the case where the attacker is spoofing all packets (including the first SYN packet that was transmitted)?
In this case, the victim can't detect the attacker. (since the attacker decides the initial sequential identifier)
- In the above answer, why the attacker can't look the initial value of sequential identifier? let's say all packets pass though him (still from what I know sequential identifier isn't encoded) maybe it's encoded in IPSec? In other words, can we encode IP headers?