In article <20010107203850.4266.qmail@web4904.mail.yahoo.com> you wrote: > I know Linux has implemented the tunnel, with > ifconfig you can control it, but my boss ask me to > encapsulate the packet according to the port, I can't > handle it with ifconfig. You can use FWMARK to choose different Routing Tables. See the docu on "fwmark" in ip-cref.dvi, the iproute docu. Basically you can use ipchains/iptables to mark a packet based on all filter criterias you have available (port, source,dest, proto) and then you can choose a routing table based on that fwmark. Note, of course the other side have most likely to know about this, too. Greetings Bernd - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org