Block martians with source address 127.0.0.1

From: Bjørn Rasmussen (bjoernr_at_sensewave.com)
Date: 05/31/04


To: "focus-linux@securityfocus.com" <focus-linux@securityfocus.com>
Date: Mon, 31 May 2004 12:55:52 +0200

Hi!

I've firewall connected to the Internet via an ISDN-line. Sometimes
martians arrive from the Internet with source address 127.0.0.1. I want
to block these packets, but I don't find any way to set up the rules to
accomplish this.

Normally I use "fwbuilder" to set up my rules, but since the martians
were not blocked by the spoofing-rules generated by "fwbuilder", I tried
a simple test using iptables-commands directly.

I added these rules as the only ones to the input chain on my
LAN-interface:

iptables -A INPUT -i eth0 -s 127.0.0.1 -j LOG
iptables -A INPUT -i eth0 -s 127.0.0.1 -j DROP
iptables -A INPUT -i eth0 -s -j LOG
iptables -A INPUT -i eth0 -s -j DROP

>From a client on my LAN, I used the command "nmap -e <LAN-interface on
client> -S 127.0.0.1 <ip-addr. of firewalls LAN-interfac>" to spoof the
localhost address.

The kernel on the firewall logs these packets as martians which it
should do, but my rules will not log or block these packets. Anybody
who knows how to do it? Is it possible? I guess there are situations
were malicious persons could at least perform a DoS-attack?

Best regards
Bjørn Rasmussen

-- 
Bjørn Rasmussen
IT-konsulent
Firma:		Bjørn Rasmussen Nettverkstjenester
Sertifikater:
Linux:		RHCE (Red Hat Certified Engineer)
Windows NT 4.0:	MCSE (Microsoft Certified System Engineer)
Adr:		Moneheia 47, 4656 Kristiansand
Tlf:		38 04 09 55
Mbl:		911 27367
Email:		bjoernr@sensewave.com
Web:		http://wind.prohosting.com/bjoernr


Relevant Pages

  • Re: Block martians with source address 127.0.0.1
    ... Sometimes> martians arrive from the Internet with source address 127.0.0.1. ... I want> to block these packets, but I don't find any way to set up the rules to> accomplish this. ... > Normally I use "fwbuilder" to set up my rules, but since the martians> were not blocked by the spoofing-rules generated by "fwbuilder", I tried> a simple test using iptables-commands directly. ... > The kernel on the firewall logs these packets as martians which it> should do, but my rules will not log or block these packets. ...
    (Focus-Linux)
  • Re: Block martians with source address 127.0.0.1
    ... >> martians arrive from the Internet with source ... > Pretty common use of spoofed packets. ... Try the all-new Yahoo! ...
    (Focus-Linux)
  • Re: Block martians with source address 127.0.0.1
    ... > martians arrive from the Internet with source ... Pretty common use of spoofed packets. ... > The kernel on the firewall logs these packets as ...
    (Focus-Linux)
  • Re: Block martians with source address 127.0.0.1
    ... > The kernel on the firewall logs these packets as martians which it ... but my rules will not log or block these packets. ... martians are automaticly discarded, before they get to INPUT or FORWARD. ... I'm your friendly neighbourhood signature virus. ...
    (Focus-Linux)
  • Re: Block martians with source address 127.0.0.1
    ... >> The kernel on the firewall logs these packets as martians which it ... but my rules will not log or block these packets. ... > As a general rule, when a Linux box receive a packet sourced with one of ... > martians are automaticly discarded, before they get to INPUT or FORWARD. ...
    (Focus-Linux)