I am still getting blank emails from a verizon dsl customer. I found the IP address after viewing the source. 71.247.113.185
here is the command to use to block this ip address.
iptables -I INPUT -s 71.247.113.185 -j DROP
This command will simply drop any packet coming from the address 71.247.113.185 To list the chains:
iptables -L -n
.
.
[root@kpenguin root]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all — 71.247.113.185 0.0.0.0/0
acct_int all — 0.0.0.0/0 0.0.0.0/0
acct_ext all — 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
acct_int all — 0.0.0.0/0 0.0.0.0/0
acct_int all — 0.0.0.0/0 0.0.0.0/0
acct_ext all — 0.0.0.0/0 0.0.0.0/0
acct_ext all — 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
acct_int all — 0.0.0.0/0 0.0.0.0/0
acct_ext all — 0.0.0.0/0 0.0.0.0/0
Chain acct_ext (4 references)
target prot opt source destination
Chain acct_int (4 references)
target prot opt source destination
.
.
.
The -n sticks with just IP addresses, rather than resolving the name. This is useful if you have a lot of IP addresses. It can take a lot of time to resolve all of the addresses, particularly since they are probably funky. After all, you have blocked them for some reason. If you need to investigate with names, just use the command with out -n:
iptables -L
.
.
.
DROP all — 55.55.55.25.i.portscan.com anywhere
DROP all — 55.56.55.202.many.fetch.api.request.com anywhere
.
.
.
If you later decide that you don’t want to drop packets from a particular host, use the -D option instead of -I:
iptables -D INPUT -s 71.247.113.185 -j DROP
The annoying emails stopped after I added that rule to the firewall. This is annoying and not a good solution, but this emails are coming from a dynamic IP and there is no way to contact the user behind this ip address.