Solved

how to block Domain

Posted on 2004-03-23
1
725 Views
Last Modified: 2008-02-01
How to block a domain using iptables ?


thx
0
Comment
Question by:tinwong33
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 total points
ID: 10665175
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CentOS 6.6 Port opening question 1 137
Server config/directory 3 62
Outgoing Traffic 11 77
Linux Ubuntu - Gave up waiting for root device. ALERT! /dev/sda1 does not exist 16 241
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Fine Tune your automatic Updates for Ubuntu / Debian
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question