All of lore.kernel.org
 help / color / mirror / Atom feed
From: varun <varun@rocsys.com>
To: netfilter-devel@lists.netfilter.org
Subject: iptables doubt
Date: Wed, 12 Apr 2006 19:24:47 +0530	[thread overview]
Message-ID: <443D06A7.1060504@rocsys.com> (raw)

Hi all,

             Iam new to netfilters and iam trying to play around to 
understand a few things. By default when no policies are specified then 
it allows all traffic to go out and in to the n/w. I want to change this 
to default as deny.
             That is when there is no policy all should be default deny.

           So in order to achieve that i tried to change the  code a little.
            In the file iptable_filter.c there is a variable called 
static int forward = NF_ACCEPT
             I changed this to NF_DROP and when i compiled and used it 
sure i was not able to send any or recv any packets
             but even after i give a policy like iptables -t filter -A 
INPUT -j ACCEPT
             Nothing changes. So achieve what i want what should i do? 
And where do i change?

             Another thing is that in normally when i put a policy like 
iptables -t filter -A OUTPUT -j REJECT
              Even my own self IP doesnt ping? Why should this happen?
               Isint it ok to ping local ip and loopback ip?
                If i want such implementation where i should be able to 
ping to self and local but not any other ip?
                Is it possible?
                I dont want to add policies rather is it possible just 
by changing the iptables kernel code?

                Please help me on this?

Varun

             reply	other threads:[~2006-04-12 13:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-12 13:54 varun [this message]
     [not found] ` <443E21C1.9090508@info.ucl.ac.be>
     [not found]   ` <443E341F.1080206@rocsys.com>
2006-04-13 12:24     ` iptables doubt Sebastien Tandel
2006-04-13 13:01       ` varun
2006-04-13 13:16         ` Sebastien Tandel
2006-04-13 13:53           ` varun
2006-04-13 14:16             ` Sebastien Tandel
2006-04-14  3:42               ` varun
2006-04-13 16:04             ` Sven-Haegar Koch
2006-04-14  3:33               ` varun
  -- strict thread matches above, loose matches on Subject: below --
2006-04-13 10:14 Sebastien Tandel
2006-04-13 16:57 Sebastien Tandel
2006-04-26  7:09 varun

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=443D06A7.1060504@rocsys.com \
    --to=varun@rocsys.com \
    --cc=netfilter-devel@lists.netfilter.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.