From: Ray Leach <raymondl@knowledgefactory.co.za>
To: Netfilter Mailing List <netfilter@lists.netfilter.org>
Subject: Re: NAT+FORWARD
Date: Thu, 06 May 2004 12:21:18 +0200 [thread overview]
Message-ID: <1083838878.29496.22.camel@raylinux.internal> (raw)
In-Reply-To: <200405051209.55454.pandre@darkstar.nom.za>
[-- Attachment #1: Type: text/plain, Size: 964 bytes --]
On Wed, 2004-05-05 at 12:09, Paulo Andre wrote:
> I just need some clarification please.
>
> Take for example the following two rules:
>
> iptables -t nat -A PREROUTING -i $ext_card -s $client_IP -d $my_ext_ip -p tcp
> --dport 80 -j DNAT --to $int_web_IP:80
> iptables -A FORWARD -i $ext_card -d $int_web-IP -p tcp --dport 80 -j ACCEPT
>
> According to my thinking the above rule would be unsafe as the source was not
> specified on the FORWARD rule. As the would allow anyone using the firewall
> as a gateway to have access to $int_web_IP on port 80. Is that correct?
>
Assuming their traffic passes the prerouting rules and the $int_web-IP
is routable for them, yes.
> Paulo
--
--
Raymond Leach <raymondl@knowledgefactory.co.za>
Network Support Specialist
http://www.knowledgefactory.co.za
"lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import"
Key fingerprint = 7209 A695 9EE0 E971 A9AD 00EE 8757 EE47 F06F FB28
--
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2004-05-06 10:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-05 10:09 NAT+FORWARD Paulo Andre
2004-05-06 10:21 ` Ray Leach [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=1083838878.29496.22.camel@raylinux.internal \
--to=raymondl@knowledgefactory.co.za \
--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.