From: Jean-Christian Imbeault <jc@mega-bucks.co.jp>
To: Eugene Joubert <eugenej@centratel.co.za>
Cc: netfilter@lists.netfilter.org
Subject: Re: Newbie: need help with table rules
Date: Fri, 14 Feb 2003 16:16:32 +0900 [thread overview]
Message-ID: <3E4C97D0.7040201@mega-bucks.co.jp> (raw)
In-Reply-To: B848917C9D07D71199C5005004D778B8017B4F@TELECOMS04
Eugene Joubert wrote:
>
> First of all you're connection SSH doesn't work because you have got
> your OUTPUT policy as DROP. Now surely if you want the linux box to
> return your request you need to allow it to do so:-)
Doh! So true. Ok, now I have fixed that but I still cannot get to SSH.
The new rules are:
$IPT --policy INPUT DROP
$IPT --policy OUTPUT ACCEPT
$IPT --policy FORWARD DROP
# Loopback accepts everything
$IPT -A INPUT -i lo -j ACCEPT
$IPT -A OUTPUT -o lo -j ACCEPT
# Aceept ICMP
$IPT -A INPUT -p icmp -j ACCEPT
# Allow previously established connections
$IPT -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# HTTP, HTTPS, SSH
$IPT -A INPUT -p TCP -s 0/0 -i eth0 -d $IP --dport 80 -j ACCEPT
$IPT -A INPUT -p TCP -s 0/0 -i eth0 -d $IP --dport 443 -j ACCEPT
$IPT -A INPUT -p TCP -s 0/0 -i eth0 -d $IP --dport 22 -j ACCEPT
# DNS
$IPT -A INPUT -p tcp --dport 53 -j ACCEPT
$IPT -A INPUT -p udp --dport 53 -j ACCEPT
next prev parent reply other threads:[~2003-02-14 7:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-14 7:02 Newbie: need help with table rules Eugene Joubert
2003-02-14 7:16 ` Jean-Christian Imbeault [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-14 13:33 Peter Hurley
2003-02-14 11:25 hclfm
2003-02-14 6:49 Jean-Christian Imbeault
2003-02-15 7:44 ` Joel Newkirk
2003-02-15 8:19 ` Joel Newkirk
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=3E4C97D0.7040201@mega-bucks.co.jp \
--to=jc@mega-bucks.co.jp \
--cc=eugenej@centratel.co.za \
--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 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.