What's new

iptables not working

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

davros1999

New Around Here
Hi

This is probably something really simple....any rules I add to iptables are having no effect.

The firewall is activated in the GUI, I can't get iptables status from the shell. 'service iptables' just says 'Done'

Here's an example rule I added to attempt to drop all traffic from a Polycom phone. I added the same rule to the INPUT chain and again, no effect.

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP all -- Polycom_0004f25e92de anywhere


If anyone can offer help it'd be great.

Thanks
Dave
 
Try to change from INPUT chain to FORWARD chain. INPUT is for "to router".
 
Great! That works.

The rules for the FORWARD chain are back to front to how I expected. e.g. To block traffic towards 8.8.8.8 I need to put 8.8.8.8 as the source rather than the destination. But I'm sure there's a good reason for this.

Most important thing is it works.

Thank you very much!
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top