Re: A processing unit of IP packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux