From: "Nangus Garba" <code.affe.dev@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Help with script for iptables
Date: Thu, 16 Nov 2006 10:19:40 -0500 [thread overview]
Message-ID: <5fc5c49d0611160719w7d9a8d69w908a82412be877ea@mail.gmail.com> (raw)
In-Reply-To: <200611160920.45191.michaelkintzios@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 994 bytes --]
# I think that a set of rules that looks something like this would be easier
to maintain
# there are 500 little tricks that I could add if I was home and had my
notes
iptables -P INPUT DROP
iptables -A INPUT -i lo -j ACCEPT
#this will take care of all interfaces by default
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# maybe you should just use one interface for portage to connect through
such as eth0
# might also be a good plan to use the mac address instead of the ip it is a
little harder to spoof
#Allow rsync connections from study1 to update portage
iptables -A INPUT -i eth0 -p tcp -s 192.168.0.2 -m tcp --dport 873 -d
192.168.0.5 -j ACCEPT
#Allow tcp connections from study1 to download distfiles
iptables -A INPUT -i eth0 -p tcp -s 192.168.0.2 -m tcp --dport 1024 -d
192.168.0.5 -j ACCEPT
# these rules are kinda taken car of by: iptables -P INPUT DROP
# iptables -A INPUT -p tcp -i ${x} -j DROP
# iptables -A INPUT -p udp -i ${x} -j DROP
[-- Attachment #2: Type: text/html, Size: 1785 bytes --]
next prev parent reply other threads:[~2006-11-16 15:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-15 20:29 [gentoo-user] Help with script for iptables Mick
2006-11-15 21:25 ` Flophouse Joe
2006-11-15 23:15 ` Mick
2006-11-16 1:15 ` Flophouse Joe
2006-11-16 9:20 ` Mick
2006-11-16 15:19 ` Nangus Garba [this message]
2006-11-16 18:05 ` Mick
2006-11-16 0:26 ` Iain Buchanan
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=5fc5c49d0611160719w7d9a8d69w908a82412be877ea@mail.gmail.com \
--to=code.affe.dev@gmail.com \
--cc=gentoo-user@lists.gentoo.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