I am writing a program make the function packet forwarding.
I have a pc with two ether card A and B.
I disabled ip forwarding.
I use raw socket to capture packet from ether A, and then send this packet through ether B. However, I receive this ICMP error: Code: 10 (Host administratively prohibited).
I think this error cause by I was disabled ip forwarding, but I don't know how to fix it.
And if I turn on ip forwarding, how to configuration for ether A don't forward some kind of packet though ether B like that: tcp packet?