http://arav.i2p/stuff/article/setting_up_a_tor_proxy_relay_hiddenserv?lang=ru
For example, SocksPolicy accept 192.168.1.0/24 is allowing everyone from that network to use it. In order to forbid all other networks add reject * after all SocksPolicy entries. You may preffer to have them on separate lines for the sake of readability.