Here come a on site tool that may help,
u follow the step (DHCP, device, ....) and the web page will generate the scipt for u!
I'll advice not to put your real IP adds in, but I think it's a good tool to learn & progress

http://www.linux-firewall-tools.com/...all/index.html