From: Frederic de Villamil <neuro@seclab.jp>
To: Eric McAfee <emcafee@earthlink.net>
Cc: netfilter@lists.netfilter.org
Subject: Re: simple config question
Date: Sun, 28 Mar 2004 11:53:50 +0200 [thread overview]
Message-ID: <20040328095350.GA6334@jesus.seclab.jp> (raw)
In-Reply-To: <000a01c41470$9dbe3ec0$8a361645@Earthlink.net>
[-- Attachment #1: Type: text/plain, Size: 758 bytes --]
On Sat, 27 Mar 2004, Eric McAfee wrote:
> I need to know the iptables command that would restrict all access to my server except for my computer's Dreamweaver program and ccbill's access to my password file. I know it would be some variation of:
> iptables -A INPUT -i ppp0 -p tcp --syn -j DROP
Hi,
what you're going to do is drop every new TCP connection to your
interface ppp0.
What you want to to should be something like that
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
iptables -A INPUT -s 127.0.0.1 -j ACCEPT
iptables -A OUTPUT -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -s $MACHINE -j ACCEPT
iptables -A OUTPUT -s $MACHINE -j ACCEPT
$machine is your machine IP address.
regards
Frederic
--
http://www.seclab.jp
[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]
prev parent reply other threads:[~2004-03-28 9:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-28 2:58 simple config question Eric McAfee
2004-03-28 8:17 ` Antony Stone
2004-03-28 9:53 ` Frederic de Villamil [this message]
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=20040328095350.GA6334@jesus.seclab.jp \
--to=neuro@seclab.jp \
--cc=emcafee@earthlink.net \
--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