What's new

Iptables Help

  • 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!

Daxx123

Occasional Visitor
Hi, I'm very new to this, so thanks in advance for any help.

I'm trying to setup an iptable rule to block https facebook. So far I have this in my /jffs/scripts/firewall-start:

Code:
#!/bin/sh
touch /tmp/000firewallstarted
iptables -I FORWARD 1 -p tcp --dport 443 -s 192.168.1.0/24 -d www.facebook.com -j DROP

Running this outputs 000firewalstarted to the /tmp directory, but https facebook is not blocked at all.

If someone can point me in the right direction on where to put this iptable rule or how to get it working, I would apprecitate it.

Dave
 
Hi, I'm very new to this, so thanks in advance for any help.

I'm trying to setup an iptable rule to block https facebook. So far I have this in my /jffs/scripts/firewall-start:

Code:
#!/bin/sh
touch /tmp/000firewallstarted
iptables -I FORWARD 1 -p tcp --dport 443 -s 192.168.1.0/24 -d www.facebook.com -j DROP

Running this outputs 000firewalstarted to the /tmp directory, but https facebook is not blocked at all.

If someone can point me in the right direction on where to put this iptable rule or how to get it working, I would apprecitate it.

Dave

Try putting it in nat-start instead of firewall-start.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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