On Sun, 7 Jan 2001, bo li 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 implement your own tunnel using a module. if you are using kernel 2.4.x, your can also use netfilter to deal with IP packet. have a look at VTun - Virtual Tunnels over TCP/IP network at http://vtun.saol.com/ it might be helpful.. > And I have a question: how do the packets flow over >the IP layer? Can I get and modify it in ipip tunnel? have a look at net/ipv4/ipip.c and ip_gre.c. I think modify packet in ipip tunnel will require you change ipip.c. - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org