DD-WRT forum claims IPTABLES can do a mirror of the ports. Quote:
"
There's many posts about it if you search. You'll need to add iptables rules to your firewall script on the admin->commands page. Change the IP to be whatever one is monitoring the traffic.
iptables -t mangle -I PREROUTING -i br0 -j ROUTE --gw 192.168.1.10 --tee
iptables -t mangle -I POSTROUTING -o br0 -j ROUTE --gw 192.168.1.10 --tee
If you want to use a VLAN instead then set up VLAN2 and use these.
iptables -t mangle -I PREROUTING -i br0 -j ROUTE --oif vlan2 --tee
iptables -t mangle -I POSTROUTING -o br0 -j ROUTE --oif vlan2 --tee
"
Some relevant info from IPTABLES man page:
PARAMETERS
The following parameters make up a rule specification (as used in the
add, delete, insert, replace and append commands).
-i, --in-interface [!] name
Name of an interface via which a packet was received (only for
packets entering the INPUT, FORWARD and PREROUTING chains).
-o, --out-interface [!] name
Name of an interface via which a packet is going to be sent (for
packets entering the FORWARD, OUTPUT and POSTROUTING chains).
ROUTE
This is used to explicitly override the core network stack’s routing
decision. mangle table.
--gw IP_address
Route the packet via this gateway
--tee Make a copy of the packet, and route that copy to the given des-
tination. For the original, uncopied packet, behave like a non-
terminating target and continue traversing the rules. Not valid
in combination with ‘--iif’ or ‘--continue’