Re: mystery martian source from 127.0.0.1 - more details



Tauno Voipio wrote:
> It does not add any to your security to obfuscate the
> MAC address in the data link header.

got it.

> If you prefer to LDROP the local loop sources, change the
> source IP to 127.0.0.0/8.

did it for the external iface.

>> tcpdump -vv
>>
>> 20:42:25.782992 IP (tos 0x0, ttl 126, id 10724, offset 0, flags [none],
>> length: 40) localhost.http > 80-219-238-182.dclient.hispeed.ch.stun-p3:
>> R [tcp sum ok] 0:0(0) ack 1704591361 win 0
>
>
> This is a TCP reset packet from the WWW server port. For a
> better view, save the tcpdump data with tcpdump -w, and look
> at it with Ethereal. Also, the -n switch can make the situation
> clearer by preventing the translation of numeric addresses and
> port numbers.

Frame 1 (60 bytes on wire, 60 bytes captured)
Arrival Time: Dec 8, 2005 22:33:57.-11226009
Time delta from previous packet: 0.000000000 seconds
Time since reference or first frame: 0.000000000 seconds
Frame Number: 1
Packet Length: 60 bytes
Capture Length: 60 bytes
Protocols in frame: eth:ip:tcp
Ethernet II, Src: Cisco_8d:98:70 (00:09:7b:8d:98:70), Dst: 3com_48:2c:65
(00:01:03:48:2c:65)
Destination: 3com_48:2c:65 (00:01:03:48:2c:65)
Source: Cisco_8d:98:70 (00:09:7b:8d:98:70)
Type: IP (0x0800)
Trailer: 000000000000
Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 80.219.238.182
(80.219.238.182)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 40
Identification: 0x25b1 (9649)
Flags: 0x00
0... = Reserved bit: Not set
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 126
Protocol: TCP (0x06)
Header checksum: 0x5d81 [correct]
Good: True
Bad : False
Source: 127.0.0.1 (127.0.0.1)
Destination: 80.219.238.182 (80.219.238.182)
Transmission Control Protocol, Src Port: http (80), Dst Port:
eicon-server (1438), Seq: 0, Ack: 0, Len: 0
Source port: http (80)
Destination port: eicon-server (1438)
Sequence number: 0 (relative sequence number)
Acknowledgement number: 0 (relative ack number)
Header length: 20 bytes
Flags: 0x0014 (RST, ACK)
0... .... = Congestion Window Reduced (CWR): Not set
.0.. .... = ECN-Echo: Not set
..0. .... = Urgent: Not set
...1 .... = Acknowledgment: Set
.... 0... = Push: Not set
.... .1.. = Reset: Set
.... ..0. = Syn: Not set
.... ...0 = Fin: Not set
Window size: 0
Checksum: 0x796e [correct]

> Do you have a Web server running?

no

> Check for any open ports
> with:
>
> netstat -tupan

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 0.0.0.0:32769 0.0.0.0:*
LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN 6436/portmap
tcp 0 0 127.0.0.1:948 0.0.0.0:*
LISTEN 7556/fam
tcp 0 0 :::22 :::*
LISTEN 7074/sshd
udp 0 0 0.0.0.0:1042 0.0.0.0:*
-
udp 0 0 0.0.0.0:68 0.0.0.0:*
6211/dhcpcd
udp 0 0 0.0.0.0:111 0.0.0.0:*
6436/portmap
udp 0 0 192.168.200.1:123 0.0.0.0:*
7004/ntpd
udp 0 0 80.219.238.182:123 0.0.0.0:*
7004/ntpd
udp 0 0 192.168.100.10:123 0.0.0.0:*
7004/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:*
7004/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:*
7004/ntpd
udp 0 0 :::123 :::*
7004/ntpd

However, all NEW connections of any protocol to the firewall from
outside are dropped.

> Google for 'linux martian source'. It gives plenty of information.

I know, but as i said in the initial post (please refer to it), these
informations do not lead to a satisfied conclusion. Most of the hits
(threads) did not get to an end or the solution has been disabling
logging of martians, which do not explain the cause.

> In principle, the kernel considers a packet martian if its
> source address is obviously incorrect for the interface it's
> coming in.

I thought so, that is why i want to know what is going on in this case.

Thanks and greetz,
Eric
.



Relevant Pages

  • Re: Client certificate private key prompt
    ... Windows Server 2003 server without the Header manually added to the request. ... Frame 34 will be closing the connection. ... Protocol: TCP ... Transmission Control Protocol, Src Port: 2954, Dst Port: https, ...
    (microsoft.public.dotnet.framework)
  • PuTTY terminate on open Alteon Director - Contains packet dump (LONG POSTING)
    ... Using SSH protocol version 1 ... I have also tried multiple different protocol settings and bugs ... Header checksum: 0xbdc1 ... Transmission Control Protocol, Src Port: 2759, Dst Port: ssh ...
    (comp.security.ssh)
  • Re: Help Interpreting data from Wireshark
    ... What concerns me is that the packet seemed to have a source address of 192.168.1.1 but later in the packet you see the dest as 84.160.95.226 ... Protocol Info ... DENVER.local ICMP Destination unreachable (Port unreachable) ... Fragment offset: 0 ...
    (comp.os.linux.security)
  • Sygate Firewall warning
    ... Ethernet II (Packet Length: 76) ... Internet Protocol ... Header checksum: 0x76cd ... Source port: 1161 ...
    (alt.computer.security)
  • Re: Problem with the NDIS MUX IM driver (decapsulation not working)
    ... If the higher-level protocol and the lower-level miniport have enabled some TCP task offload contract, then the decapsulated packet you are indicating may not provide the necessary task offload information. ... then temporarily disabling the NDIS task offload features of the adapter using the adapter's NCPA advanced property tab should make the behavior "better". ... I slap on my own ethernet header infront of the real ...
    (microsoft.public.development.device.drivers)