From: "Brad Morgan" <B-Morgan@concentric.net>
To: Steve Mickeler <steve@neptune.ca>, Chris Poupart <cpoupart@canada.com>
Cc: netfilter@lists.netfilter.org
Subject: RE: Single IP firewall help...
Date: Thu, 12 Sep 2002 12:24:58 -0600 [thread overview]
Message-ID: <NABBJOOEOFODEALNMJAJGEFMGLAA.B-Morgan@concentric.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0209121224420.17354-100000@triton.neptune.on.ca>
Don't forget to change the default policy on INPUT to be DROP.
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Steve Mickeler
Sent: Thursday, September 12, 2002 10:32 AM
To: Chris Poupart
Cc: netfilter@lists.netfilter.org
Subject: Re: Single IP firewall help...
This should work for you.
$IPTABLES -A INPUT -d 192.168.0.10 -p tcp --dport 22 -j ACCEPT
$IPTABLES -A INPUT -d 192.168.0.10 -p tcp --dport 80 -j ACCEPT
$IPTABLES -A INPUT -d 192.168.0.10 -p tcp --dport 443 -j ACCEPT
$IPTABLES -A INPUT -d 192.168.0.10 -p tcp --syn -j REJECT
$IPTABLES -A INPUT -d 192.168.0.10 -p udp -j REJECT
> Hello,
>
> I have been having a heck of a time getting a IPTables firewall working
> (directly) on our future webserver.
>
> Essentially, it should be easy, I want to accept SSH, HTTP and HTTPS and
> deny everything else (incoming) and, at least for the moment, allow all
> outgoing.
>
> I am sure that this can be done in about 4 lines, and yet all that I
> have tried has ended in me getting locked out (and having to go to the
> console). So I am stuck, and I have to have this ready to go live by
> friday.
>
> Assuming that the IP address was (we will give a nice private one)
> 192.168.0.10 does anyone have any ideas?
>
> Thanks for any help that you guys can offer on this.
>
> -- Chris Poupart
>
>
[-] Steve Mickeler [ steve@neptune.ca ]
[|] Todays root password is brought to you by /dev/random
[+] 1024D/9AA80CDF = 4103 9E35 2713 D432 924F 3C2E A7B9 A0FE 9AA8 0CDF
next prev parent reply other threads:[~2002-09-12 18:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-12 15:43 Single IP firewall help Chris Poupart
2002-09-12 16:31 ` Steve Mickeler
2002-09-12 18:24 ` Brad Morgan [this message]
2002-09-13 9:05 ` Roy Sigurd Karlsbakk
2002-09-12 17:26 ` Maciej Soltysiak
2002-09-12 17:34 ` Chris Poupart
2002-09-12 19:06 ` Maciej Soltysiak
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=NABBJOOEOFODEALNMJAJGEFMGLAA.B-Morgan@concentric.net \
--to=b-morgan@concentric.net \
--cc=cpoupart@canada.com \
--cc=netfilter@lists.netfilter.org \
--cc=steve@neptune.ca \
/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