How do i do this

I am after an install of a stable and secure flavour of Linux to run as
an _easily_* configurable router.

The router needs one LAN interface and two WAN interfaces, with many
specific rules needed as to what data goes through which interface.
These rules need to be simple to add, remove, and change. This must
include the ability to change rules automatically if a WAN interface
has had a certain amount of traffic within a month. MRTG type graphs of
WAN interface usage, including by port number, certain web sites, and
by (labelled) LAN MAC address are also needed.

To refine:
One WAN interface would be for general browsing and certain games,
while the other would be for all incoming and outgoing emails, text
chat (Windows Live, MSN etc), certain websites (eg: youtube), FTP, and
large downloads.
If the first WAN interface reached a certain data usage within a month
then all traffic would go through the second interface. This would need
to revert to the usual rules once a specified anniversary date had been
passed. If possible something similar, applied by quota and per MAC
address, would come into effect daily.
All rules must be able to be applied or not by MAC address. In this way
one or more specified computers could always use the first WAN even
after the month's limit has been reached.

*easily configurable does not mean things like "-A FORWARD -i eth1 -m
state --state NEW,RELATED,ESTABLISHED -j ACCEPT", but more like "MAC
all, PORT 25, WAN 2" and "MAC 11:22:33:44:55:66, PORT all, WAN 1,


Mitch Frazier's picture

Not sure if there's an out of the box solution for all you want to do but you might check out Linux LiveCD Router.

Mitch Frazier is an Associate Editor for Linux Journal.

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState