Stealth Packet Shaping involves adding a machine to a network to act as a firewall/packet-shaper without the rest of the network really being aware of it. This can be used for good (avoiding hassle of reconfiguring network settings) or evil (prioritising your traffic above everyone elses).
It is assumed that no other configuration can be done to the network. This means that we cant play with the existing WAN router or firewall, change the DHCP server, change the IP addresses of devices etc. This is often the case in corporate networks, where layers of approvals, procedures and clueless PHBs prevent any real changes being made.
For the juicy details on how to do it, see http://www.sjdjweis.com/linux/proxyarp/.
In the meantime, here is a brief explanation:
ARP is the protocol which resolves IP addresses to Ethernet MAC addresses. Linux 2.4 supports Proxy ARP, which effectively makes one machine appear as another on the network. (More on this later)
Let's say you had a corporate LAN in a branch office which connects to head office via a Cisco router and a 256kbps link. Let's also imagine that a lot of work gets done over telnet and SSH across the 256k link, but some people also like to make large FTP and SMB file transfers which grind telnet to a halt.
The network currently looks like this: LAN (172.22.0.0/22) ---- Cisco (172.22.0.1) ---- WAN
All the machines on the LAN have the Cisco as their default gateway. Simply adding the new box to the network wont do anything. What we need is to divide the network into 2 segments, with the stealth packet shaper machine inbetween.
LAN (172.22.0.0/22) ---- Stealth Box (172.22.0.2) ---- Cisco (172.22.0.1) ---- WAN
Here's the tricky bit:
All done. Here's what's happening:
The beauty is that none of the other machines knows that they are routing through the new machine. The only way to see what's really happening is via traceroute (the new machine shows up before the default gateway) or by listing the ARP table (several IPs will have the same MAC address).
If you are wondering about the practicalities of this, it's currently running very well in a medium business branch with about 40-50 Windows PCs. The box was configured before plugging into the network. It was plugged in and the Cisco was rebooted to clear its ARP cache. Once the Windows machines' ARP caches expired, it worked like a charm.
No page links to StealthPacketShaping.