Re: NAT implementation in an IM driver

From: Valeriu Ilie (vali_il[nospam)
Date: 06/16/04


Date: Wed, 16 Jun 2004 10:27:50 -0400


> Forwarding the packet to another adapter will be done by the usual routing
code
> in the IP stack. The NAT must only translate the IP addresses and ports in
the
> header, and then deliver the packet to the IP stack.

OK. That's why I asked if the above protocols have to be involved in the
process of getting the destination MAC address. The IP routing from TCP/IP
protocol is taking care of sending ARPs if necessary according to the
routing table and building the new Ethernet header. But now comes the
difficult question. If for example you have 2 public interfaces (say 2
Internet providers) Windows will route the packet only on one interface, no
matter if the source IP is from one interface or another. Is it then right
to change the source MAC when you see the packet outgoing (assuming TCP/IP
is doing the routing)?

Valeriu



Relevant Pages

  • intervlan routing and policy routing C3750 or C 4948
    ... routing) and for some vlans i need different gateways. ... interface Vlan10 ... route-map, 2) routing table. ... the packet will be routed according to the routing table (standard IOS ...
    (comp.dcom.sys.cisco)
  • Re: How do I read/interpret a (netstat) routing table ?
    ... I know this routing table is used to direct TCP/IP packets to their destination. ... Assume on local computer 192.168.0.14 a TCP-IP packet is arriving with the destination ... NetMask --> Makes it easier for the Router (layer 3 device, ...
    (microsoft.public.windowsxp.network_web)
  • Re: Programming Question: Policy Based Routing
    ... My definition of Policy-Based Routing: ... address, L4 protocol, tos, packet length. ... packet and an AVL tree to store routing information in it. ... first thing is to create a generic route mask. ...
    (freebsd-net)
  • Re: Programming Question: Policy Based Routing
    ... > My definition of Policy-Based Routing: ... > address, L4 protocol, tos, packet length. ... > packet and an AVL tree to store routing information in it. ... > first thing is to create a generic route mask. ...
    (freebsd-net)
  • multiple routing tables roadmap
    ... packet streams to be routed by more than just the destination address. ... multiple kernel routing tables (which I will now refer to as "Forwarding Information Bases" or "FIBs" for political correctness reasons. ... Other protocol families are left untouched and should there be users with proprietary protocol families, ... To understand how this is done, one must know that the current FIB code ...
    (freebsd-arch)