From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: simple config question
Date: Sun, 28 Mar 2004 09:17:34 +0100 [thread overview]
Message-ID: <200403280917.34504.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <000a01c41470$9dbe3ec0$8a361645@Earthlink.net>
On Sunday 28 March 2004 3:58 am, 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
That rule will definitely block all TCP access via ppp0 to the machine.
All you need to do next is insert before that rule something suitable to allow
the connections you mentioned.
I can't quite figure out from the description you gave what network protocols
you are talking about however, so I can't suggest what rules they need to be,
however if you're not sure either, a simple LOGging rule should help you work
out what is needed:
iptables -I INPUT -i ppp0 -p tcp -s a.b.c.d -j LOG
where a.b.c.d is the IP address of a machine you want to allow access. The
LOG will show you what packets arrive, just before they get DROPped, so you
should be able to work out from that what rule to add to ACCEPT them instead.
Regards,
Antony.
--
This is not a rehearsal.
This is Real Life.
Please reply to the list;
please don't CC me.
next prev parent reply other threads:[~2004-03-28 8:17 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 [this message]
2004-03-28 9:53 ` Frederic de Villamil
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=200403280917.34504.Antony@Soft-Solutions.co.uk \
--to=antony@soft-solutions.co.uk \
--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