WRT54G Multiple External IP Trick
To assign multiple external IP addresses to a WRT54G/S, you have to push a multiline variable into the rc_firewal nvram variable (non-volatile ram):
nvram set rc_firewal="
iptables -t nat -I PREROUTING -d x.y.z.1 -j DNAT --to-destination 192.168.1.x
iptables -t nat -I PREROUTING -d x.y.z.2 -j DNAT --to-destination 192.168.1.x
"
nvram commit
This will protect the changes against being lost when the router is reset.









Tony said,
August 30, 2006 @ 11:30 pm
Hi Jeff,
I have subscribed 5 fixed ip through pppoe from my ISP.
Does the above setting work under pppoe mode?
Tony
Administrator said,
August 31, 2006 @ 2:51 am
I have used this with good results with a PPPOE connection (DSL in my case).