• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 738
  • Last Modified:

how to block Domain

How to block a domain using iptables ?


thx
0
tinwong33
Asked:
tinwong33
1 Solution
 
ahoffmannCommented:
iptables -A INPUT -s net-IP-of-domain/netmask -J DROP
iptables -A FORWARD -s net-IP-of-domain/netmask -J DROP

# for eaxample net-IP-of-domain/netmask :  10.42.42.0/24
0

Featured Post

Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now