Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: Host blocking
Date: Thu, 19 May 2005 14:38:34 -0400	[thread overview]
Message-ID: <20050519183834.GA8500@bender.817west.com> (raw)
In-Reply-To: <000901c55c28$c1840870$d40aa8c0@winxp>

On Thu, May 19, 2005 at 07:10:56AM +0300, Wennie V. Lagmay wrote:
> Hi Jason,
> 
> Thank you very much, I was able to block it but I do it this way:
> 
> iptables -A FORWARD -s 192.168.10.0/24  -d "ISP ISP ADDRESS" -j REJECT
> iptables -A FORWARD -d 192.168.10.0/24  -s "ISP ISP ADDRESS" -j REJECT
> iptables -A FORWARD -s 192.168.10.0/24 -j ACCEPT
> iptables -A FORWARD -d 192.168.10.0/24  -j ACCEPT
> 
> Even though it is working, I want to know if I've done it right? and what 
> is the --syn in your sysntax?

i'm not so sure that rules 2 and 4 are really necessary, but i guess ya
never know...

--syn is an alias for:  --tcp-flags SYN,RST,ACK SYN

i.e. i write my rules such that i allow ESTABLISHED,RELATED packets
first, and then my rules only allow the TCP SYN to start new
connections.

-j

--
"Joe Swanson: Peter, it's over.
 Peter: Over? What are you talking about? What kind of talk is that? It's
 un-American. Did George W. Bush quit even after losing the popular
 vote? No! Did he quit after losing millions of dollars of his father's
 money in failed oil companies? No! Did he quit after knocking that girl
 up? No! Did he quit after he got that DUI? No! Did he quit after he
 got busted for drunk and disorderly conduct at a football game? No! Did
 he quit... 
 Joe Swanson: I get the message, Peter."
        --Family Guy


  reply	other threads:[~2005-05-19 18:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-17 10:30 Host blocking Wennie V. Lagmay
2005-05-17 11:12 ` Jörg Harmuth
2005-05-17 13:09 ` Askar
2005-05-17 13:17   ` wlagmay
2005-05-17 13:14 ` Jason Opperisano
2005-05-17 13:39   ` Wennie V. Lagmay
2005-05-17 13:44     ` Jason Opperisano
2005-05-17 13:50       ` Wennie V. Lagmay
2005-05-18  7:09   ` Wennie V. Lagmay
2005-05-18 15:08     ` Jason Opperisano
2005-05-19  4:10       ` Wennie V. Lagmay
2005-05-19 18:38         ` Jason Opperisano [this message]
2005-05-17 16:06 ` Taylor, Grant

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=20050519183834.GA8500@bender.817west.com \
    --to=opie@817west.com \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox