You Cheated, the Code Does Not Work The resets are going to the wrong place! The 2 flag to rewrite is new You can use a BPF filter to swap src and dst Install it on the call chain Call it "src_dst_swap" Call prior to calling rewrite. Syntax errors on ipdata lines! Strings as number is not yet implemented Translate the string to hex Use 0x47455420 instead of "GET "