IPFW Rules for jails


I can not figure out how to block access in and out of jail. I could only find what jail is not have a firewall. Configure the system should be in the form of parental rules:
# ipfw add 00001 tcp any to any jail 1.
In manual ipfw about it almost nothing.

Tell me how to properly configure traffic shaping for the jail.
Thank you in advance.
Shaping, firewalling and general network settings are done on the host, not the jail.