From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: Protecting multiple webservers
Date: Wed, 19 Jan 2005 15:58:00 -0500 [thread overview]
Message-ID: <20050119205800.GA13202@bender.817west.com> (raw)
In-Reply-To: <48be50bb0501191237386d15c8@mail.gmail.com>
On Wed, Jan 19, 2005 at 12:37:06PM -0800, gui wrote:
> # allow outgoing connections from web servers.
> # added these lines so I can browse the web from the web servers
> -A OUTPUT -d 0/0 -m state --state NEW -p tcp -m multiport --dport
> http,https -o eth0 -j ACCEPT
>
> -A FORWARD -s 192.168.0.3 -d 0/0 -m state --state NEW -p tcp -m
> multiport --dport http,https -o eth0 -i eth1 -j ACCEPT
> -A FORWARD -s 192.168.0.2 -d 0/0 -m state --state NEW -p tcp -m
> multiport --dport http,https -o eth0 -i eth1 -j ACCEPT
uh--where are the "allow incoming connections to my web servers" lines?
-A FORWARD -i eth0 -o eth1 -p tcp --syn -d 192.168.0.2 --dport 80 \
-j ACCEPT
-A FORWARD -i eth0 -o eth1 -p tcp --syn -d 192.168.0.3 --dport 80 \
-j ACCEPT
make sure you also enabled IP forwarding:
sysctl -w net.ipv4.ip_forward=1
-j
--
"Look, just give me some inner peace, or I'll mop the floor with ya!"
--The Simpsons
next prev parent reply other threads:[~2005-01-19 20:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-19 20:37 Protecting multiple webservers gui
2005-01-19 20:58 ` Jason Opperisano [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-01-19 22:35 gui
2005-01-19 21:07 Hudson Delbert J Contr 61 CS/SCBN
[not found] <15069645.1105491740310.JavaMail.rct@kale>
2005-01-12 4:01 ` Bob Tellefson
2005-01-12 15:14 ` Maxime Ducharme
2005-01-12 15:37 ` Samuel Jean
2005-01-12 19:57 ` John A. Sullivan III
2005-01-12 1:01 gui
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=20050119205800.GA13202@bender.817west.com \
--to=opie@817west.com \
--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.