Hi I have an application whereby i am receiving packets from one network and forwarding to respective destinations on other networks. I am using recvfrom and sendto to accomplish this and have my ipforwarding disabled.. The n/w is A:192.168.1.1 B:10.2.1.1 Gateway:192.168.1.2 10.2.1.2 The routing tables in A and B are set accordingly as everything works fine with ipforwarding enabled. The problem is: When A pings to B using the gateway, gateway forwards the packet correctly to B. B receives the echo request packet. however,in return B sends the ICMP packet of type 3 code 2 i.e. destination unreachable (Protocol unreachable). And B sends this packet to gateway's 10.2.1.2 interface and not to A. What canm be the possible problem???What's the way out?? Paridhi __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/