iptables -A FORWARD -d ad.doubleclick.net -j REJECT
iptables -A FORWARD -d ad.de.doubleclick.net -j REJECT
iptables -A FORWARD -d doubleclick.net -j REJECT
iptables -A FORWARD -d mediaplex.com -j REJECT
iptables -A FORWARD -d altfarm.mediaplex.com -j REJECT
iptables -A FORWARD -d atdmt.com -j REJECT
iptables -A FORWARD -d zanox.com -j REJECT
iptables -A FORWARD -d ad.z5x.net -j REJECT
...
Chain FORWARD (policy DROP)
target prot opt source destination
REJECT all -- anywhere eqvamegaadvip4.doubleclick.net reject-with icmp-port-unreachable
REJECT all -- anywhere demegaadvip1.doubleclick.net reject-with icmp-port-unreachable
REJECT all -- anywhere 216.73.93.8 reject-with icmp-port-unreachable
REJECT all -- anywhere ad1.c2.vip.rm.ch1.yahoo.com reject-with icmp-port-unreachable
REJECT all -- anywhere adfarm.mediaplex.com reject-with icmp-port-unreachable
REJECT all -- anywhere 217.110.110.251 reject-with icmp-port-unreachable
REJECT all -- anywhere 12.130.62.126 reject-with icmp-port-unreachable
REJECT all -- anywhere valueclick.com reject-with icmp-port-unreachable
REJECT all -- anywhere eqnjmegaadvip4.doubleclick.net reject-with icmp-port-unreachable
REJECT all -- anywhere 216.73.93.8 reject-with icmp-port-unreachable
...
Die DNS-Namen können aber mehre Ziele verweise, so wird nur das geblockt was beim ausführen zufällig zurückgeliefert wurde
#nslookup www.google.com
Name: www.google.com
Address 1: 74.125.43.147 bw-in-f147.google.com
Address 2: 74.125.43.104 bw-in-f104.google.com
Address 3: 74.125.43.103 bw-in-f103.google.com
Address 4: 74.125.43.99 bw-in-f99.google.com
# ping www.google.com
PING www.google.com (74.125.43.103): 56 data bytes
64 bytes from [B]74.125.43.103[/B]: seq=0 ttl=245 time=29.603 ms
--- www.google.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 29.603/29.603/29.603 ms
# ping www.google.com
PING www.google.com (74.125.43.104): 56 data bytes
64 bytes from [B]74.125.43.104[/B]: seq=0 ttl=245 time=30.159 ms
--- www.google.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 30.159/30.159/30.159 ms
# ping www.google.com
PING www.google.com (74.125.43.99): 56 data bytes
64 bytes from [B]74.125.43.99[/B]: seq=0 ttl=245 time=28.894 ms
--- www.google.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 28.894/28.894/28.894 ms