-A forward -s 10.0.0.0/8 -d 0.0.0.0/0 -j MASQ -A forward -s 172.16.0.0/12 -d 0.0.0.0/0 -j MASQ -A forward -s 192.168.0.0/16 -d 0.0.0.0/0 -j MASQ
Just put these lines in the /etc/sysconfig/ipchains file. The next time you start ipchains the rules will be in effect. This is how you would restart ipchains:
bash# /etc/rc.d/init.d/ipchains stop Flushing all chains: [ OK ] Removing user defined chains: [ OK ] Resetting built-in chains to the default ACCEPT policy: [ OK ] bash# /etc/rc.d/init.d/ipchains start Flushing all current rules and user defined chains: [ OK ] Clearing all current rules and user defined chains: [ OK ] Applying ipchains firewall rules: [ OK ]