From: Askar Ali Khan <askarali@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: ipfilter on satellite receive only PC
Date: Sat, 26 Jun 2004 13:28:50 +0500 [thread overview]
Message-ID: <a0f69e5040626012851d190ba@mail.gmail.com> (raw)
In-Reply-To: <200406260915.01035.Antony@Soft-Solutions.co.uk>
this is out im running on my slackware, adjust it to your needs :)
#!/bin/bash
#
# Basic script to keep the nasties out of slack-lap
# First we make the default policy to drop everything
iptables -P INPUT DROP
iptables -P FORWARD DROP
# Allow established connections and programs that use
loopback
iptables -A INPUT -m state --state ESTABLISHED,RELATED
-j ACCEPT
iptables -A INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -i lo
-j ACCEPT
# Lets allow ssh to connect
iptables -A INPUT -p tcp --dport 22 -i ppp0 -j ACCEPT
#end script
On Sat, 26 Jun 2004 09:15:01 +0100, Antony Stone
<antony@soft-solutions.co.uk> wrote:
>
> On Saturday 26 June 2004 8:41 am, yunus wrote:
>
> > Dear netfilter gurus,
> >
> > I am new to iptables. The computer on which I want to use iptables is a
> > Redhat linux 7.3 with satellite pentanet card. I want to filter the
> > traffice forwarded to our LAN. When I use:
> >
> > iptables -P Forward DROP
> > iptables -A INPUT -m state --state RELATED, ESTABLISHED -j ACCEPT
> > iptables -A Forward -m state --state RELATED, ESTABLISHED -j ACCEPT
> >
> > It still does not allow me to browse from the LAN. Outgoing is through
> > router serial port.
>
> Well, if that's your complete ruleset, the main problem is that you are
> allowing established connections, but you have no way to establish them (ie:
> you are not allowing any NEW packets through).
>
> If that's not your complete ruleset, then please post it so we can see what
> your firewall is being told to do.
>
> Regards,
>
> Antony.
>
> --
> All matter in the Universe can be placed into one of two categories:
>
> 1. Things which need to be fixed.
> 2. Things which need to be fixed once you've had a few minutes to play with
> them.
>
> Please reply to the list;
> please don't CC me.
>
>
next prev parent reply other threads:[~2004-06-26 8:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-26 7:41 ipfilter on satellite receive only PC yunus
2004-06-26 8:15 ` Antony Stone
2004-06-26 8:28 ` Askar Ali Khan [this message]
2004-06-26 8:45 ` Antony Stone
2004-06-26 9:33 ` Askar Ali Khan
2004-06-29 12:41 ` Ruprecht Helms
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=a0f69e5040626012851d190ba@mail.gmail.com \
--to=askarali@gmail.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