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!

macster2075

Very Senior Member
Hi..
Is there an iptable or script I can use to block a specific device (IP) from accessing a specific website?
 
That's what the Network Services Filter is designed to do.
I saw that.. but there is a section there that says... "https can not be blocked".

So, I cannot block lets say youtube.com or facebook.com using this service... according to what it says there.
I thought iptables would be a better way.. no?
 
I saw that.. but there is a section there that says... "https can not be blocked".
Probably badly translated from Chinese. For the example shown (blocking http on port 80) it should say "https will not be blocked" as that uses port 443. But the URL and Keyword filters do suffer from this restriction.

So, I cannot block lets say youtube.com or facebook.com using this service... according to what it says there.
I thought iptables would be a better way.. no?
Behind the GUI this does the same thing and translates it into iptables rules. The problem is that with both Network Services Filter and iptables you have to enter an IP address not a URL. And sites like youtube have multiple IP addresses that change over time. I think one of the forum members wrote a script that generates the "current list" of IP addresses for the desired sites and automatically blocks them.
 
Probably badly translated from Chinese. For the example shown (blocking http on port 80) it should say "https will not be blocked" as that uses port 443. But the URL and Keyword filters do suffer from this restriction.

Behind the GUI this does the same thing and translates it into iptables rules. The problem is that with both Network Services Filter and iptables you have to enter an IP address not a URL. And sites like youtube have multiple IP addresses that change over time. I think one of the forum members wrote a script that generates the "current list" of IP addresses for the desired sites and automatically blocks them.
I have the script for google safesearch and it works great for all google domains..... I guess I would need one for all youtube domains.
 

Sign Up For SNBForums Daily Digest

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