To me the above command seems perfectly fine, except for the position of the NOT (=!
) operator:
$iptables -t mangle -A POSTROUTING -o br-lan -s ! 192.168.0.0/16 -j TEE --gateway 192.168.1.254
EDIT:
If it still does not work, that's because you are missing some of the iptables modules. You can find them here, it is imposisble for me to know which one you are missing, you may wish to try them out. You will surely need
insmod ipt_route
for the above iptables command to work, plus, like I said, perhaps more.
Should this all fail, this Googl Code page presents an easy alternative to doing it with iptables.