Link to home
Start Free TrialLog in
Avatar of colorsit123
colorsit123

asked on

ICMP Code: 10 (Host administratively prohibited)

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?

I need help.
Thanks!!!
ASKER CERTIFIED SOLUTION
Avatar of Kamran Arshad
Kamran Arshad
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of colorsit123
colorsit123

ASKER

I was found some miss in my code. Hower, thank you for your reply.