All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Oester <kernel@linuxace.com>
To: Abogholo A <abogholo@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: why scapy packet no effected by ip tables
Date: Thu, 17 Jul 2014 08:23:50 -0700	[thread overview]
Message-ID: <20140717152350.GA4553@home> (raw)
In-Reply-To: <CAPpnho=+jciiQzpa9gnihrJsBRnRkniQtfWHPcrr7s4-3KHSDw@mail.gmail.com>

On Wed, Jul 16, 2014 at 05:16:21PM +0430, Abogholo A wrote:
> i wrote this rule for change all udp destination ip address to 8.8.8.8
> when dport is 53:
> 
> iptables -t nat -A OUTPUT -p udp -m udp --dport 53 -j DNAT
> --to-destination 8.8.8.8
> 
> but when send this packet
> 
> sr1(IP(dst="4.2.2.4")/UDP()/DNS(rd=1,qd=DNSQR(qname="iranled.com")))
> 
> iptables no effected to them
> 
> why?

Scapy uses raw sockets, which don't go through iptables.

Phil

  reply	other threads:[~2014-07-17 15:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-16 12:46 why scapy packet no effected by ip tables Abogholo A
2014-07-17 15:23 ` Phil Oester [this message]
2014-07-20 16:27   ` Paul Robert Marino
2014-07-21 12:38     ` Jeff White

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140717152350.GA4553@home \
    --to=kernel@linuxace.com \
    --cc=abogholo@gmail.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.