ipchains problem

I try to implement IP Masquerading on my Linux box but I recieved error message "can only set policy in built-in chains" whenever I try to run command "/sbin/ipchains -P foward DENY" or "/sbin/ipchains -A foward -j MASQ -s -d
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Should be "forward", not "foward".  'ipchains -P forward DENY' is accepted on my masquerading system.

This works for me:

/sbin/ipchains -A forward -s -j MASQ

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sandy KalugdanSystems AdministratorCommented:
make sure your ipchains is installed correctly.

edit the file /etc/rc.d/rc.local put this at the bottom. so ip masquerading with activate at boot time.

ipchains -P forward DENY
ipchains -A forward -j MASQ -s -d
echo "1" > /proc/sys/net/ipv4/ip_forward

save the file, exit then reboot your system

observe at the messages while booting.  If no error message appeard regarding ipchains, you're up and ready to masq

Sandy KalugdanSystems AdministratorCommented:
Additional information. is the class I used with my network.  you should replace this with the one that you installed with your own.


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.