From: David Cannings <lists@edeca.net>
To: netfilter@lists.netfilter.org
Subject: Re: Is outbound rule needed for http responses?
Date: Mon, 8 Mar 2004 08:46:04 +0000 [thread overview]
Message-ID: <200403080846.04475.lists@edeca.net> (raw)
In-Reply-To: <001101c4048c$74e8c180$3702a8c0@ARAQI>
On Sunday 07 March 2004 21:37, Adesina Adebiyi wrote:
> Hello gentle expert,
>
> I am trying to adapt the iptables firewall for my hosting server. That
> is, http, https will be running on it to serve ecommerce clients. I
> have adapted rules to allow tcp inbound services for port 80 and 443.
> To be able to respond to the requesting clients, do I need
> corresponding tcp outbound services on port 80 and 443? Or does the
> first inbound rule take care of this automatically since anyone that
> makes a tcp request is most likely to expect a reply?
This is what ESTABLISHED and RELATED are for, you might like to add rules
that use these two states. I use the following in my firewall script,
you may wish to be a bit stricter. Also, if you have a default DROP rule
on your OUTPUT chain, you'll need to add a similar rule in there too.
# Allow anything that's already setup
iptables -A INPUT -i ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT
Hope that helps,
David
prev parent reply other threads:[~2004-03-08 8:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-07 21:37 Is outbound rule needed for http responses? Adesina Adebiyi
2004-03-08 8:40 ` Antony Stone
2004-03-08 8:46 ` David Cannings [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=200403080846.04475.lists@edeca.net \
--to=lists@edeca.net \
--cc=david@edeca.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 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.