Linux Netfilter discussions
 help / color / mirror / Atom feed
* NAT+FORWARD
@ 2004-05-05 10:09 Paulo Andre
  2004-05-06 10:21 ` NAT+FORWARD Ray Leach
  0 siblings, 1 reply; 2+ messages in thread
From: Paulo Andre @ 2004-05-05 10:09 UTC (permalink / raw)
  To: netfilter

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?

Paulo


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: NAT+FORWARD
  2004-05-05 10:09 NAT+FORWARD Paulo Andre
@ 2004-05-06 10:21 ` Ray Leach
  0 siblings, 0 replies; 2+ messages in thread
From: Ray Leach @ 2004-05-06 10:21 UTC (permalink / raw)
  To: Netfilter Mailing List

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-06 10:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-05 10:09 NAT+FORWARD Paulo Andre
2004-05-06 10:21 ` NAT+FORWARD Ray Leach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox