On Wednesday 2013-05-01 05:06, Ravi Kanth Vanapalli wrote: >I was trying to change the incoming interface of the packet using >iptables MARK and ip route commands. > >I have tried this approach after going through the weblink >belowhttp://www.netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO-4.html#ss4.5 >which suggests the use of iptable Mark and iproute2 utilities instead >of ROUTE target. but could not find any success chaging the incoming >interface of the packet in the receiving path. > >I have an application 'A' which binds to an interface 'intfA' in linux >i.e the application sends and receives packets only on via intfA. If it uses bind(2), it does not bind to an interface, but an address. Therefore, changing the interface is the wrong thing to do. Make your program listen on the particular address(es) that you intend to send to instead. -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html