Re: Spoofing MAC address in tcp transmission

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

 



On Wed, 17 Oct 2001, Etienne Bernard wrote:

> On Wed, Oct 17, 2001, chakri wrote:
> >
> > How do i spoof the source MAC address when sending a TCP packet in Linux
> > platform?
>
> More generally, is there a way to emulate something like a virtual
> ethernet device, that would act like a normal ethernet adapter but
> would be physicaly wired through another one?

I have created virtual ethernet devices with complete xmit and rcv
functionality. Each has its own MAC address, IP address etc. So it acts as
a virtual host. All the virtual devices on a machine multiplex their
traffic onto the single physical ethernet device.

We use these to simulate virtual hosts in a network. Along with 'virtual
router' which also i have we essentially simulate (currently in testing)
complete networks on a few linux boxes.

>
> That would be really great for load balancing and/or failover.
>
> I tried to have a look at a sort of bridge using tun/tap driver and ip
> aliasing, but I would have to deal with arp myself.

For ARP we simple load each virtual device with its ARP table since its
not worth the hassle to do ARP req over virtual hosts currently.
I might be able to send a patch for 2.2.18 (in a couple of days) if
somebody's interested.

Regards,
Amit

-- 
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
                  Amit Kucheria
          EECS Grad. Research Assistant
         University of Kansas @ Lawrence
   (R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774
____________________________________________________

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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