Re: Weird!

From: Stephen Samuel (
Date: 07/07/04

  • Next message: Marius Huse Jacobsen: "Re[2]: Weird!"
    Date: Wed, 07 Jul 2004 14:40:37 -0700
    To: Kostas K <>

    Kostas K wrote:
    > IN=ppp0 OUT= MAC= LEN=76 TOS=0x18 PREC=0x20 TTL=45 ID=56552 PROTO=ICMP TYPE=3 CODE=1 [ DST= LEN=48 TOS=0x00 PREC=0x00 TTL=109 ID=16249 DF PROTO=TCP SPT=1730 DPT=4662 WINDOW=16384 RES=0x00 SYN URGP=0 ]
    > I get some weird logs from iptables. Someone is trying to ping (using a c class ip) me with no result since it gets the msg. of host unreachable.
    > The weird thing or perhaps the things that i can't understand is why the destination address in the first row is the same with the src in the second row which seems to scan a c class ip which happens to be private, while i am using a network.

    My reading is that is probably attempting to send packets
    to address OVER THE PPP LINK (i.e. out into the
    wider internet). [[ You should be egress filtering against such things ]]
    after a couple of hops, the packet hits a (border?) router that filters
    against such evils and it sends back the ICMP reject.

    Suggested rule:

    -A OUTPUT -o PPP0 -d -J REJECT

    (similarly for other non-routable networks).

    That should get rid of your wierd messages.

    (( The other possibility is that someone else is faking your
    source address, but that's rarely of any use with TCP unless they're
    in a position to capture any response en-route. ))

    Stephen Samuel +1(604)876-0426      
        Powerful committed communication. Transformation touching
          the jewel within each person and bringing it to light.

  • Next message: Marius Huse Jacobsen: "Re[2]: Weird!"