| To: | Andrew Kraslavsky <andykras@hotmail.com> |
|---|---|
| Subject: | Re: Blocking direct private IP address |
| From: | Jan Engelhardt <jengelh@linux01.gwdg.de> |
| Date: | Thu, 1 Mar 2007 04:52:48 +0100 (MET) |
| Cc: | netfilter@lists.netfilter.org |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | netfilter-list1@securepoint.com |
| In-reply-to: | <BAY119-F26E778C8C143FF9F0EBA49D6800@phx.gbl> |
| List-archive: | </pipermail/netfilter> |
| List-help: | <mailto:netfilter-request@lists.netfilter.org?subject=help> |
| List-id: | General discussion and user questions <netfilter.lists.netfilter.org> |
| List-post: | <mailto:netfilter@lists.netfilter.org> |
| List-subscribe: | <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe> |
| List-unsubscribe: | <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe> |
| References: | <BAY119-F26E778C8C143FF9F0EBA49D6800@phx.gbl> |
| Sender: | netfilter-bounces@lists.netfilter.org |
On Feb 28 2007 19:12, Andrew Kraslavsky wrote: [recap > external 10.0.0.1/24 > internal 192.168.0.1/24 ] > > Thanks for the pointer but the question here is about the destination IP > address, not the source. > > When I create the DNAT rule, the private IP address to which I want my > public address to map suddenly becomes directly accessible to hosts on > the public network. Then don't add a DNAT rule. > I.e. I want hosts on the public network to _have_to_ send traffic to > the public IP of 10.0.0.1 but, after adding that rule, they can > actually send traffic to that address _AND_ also directly to the > private IP address of the Web server at 192.168.0.99. Your DNAT rule is broken: >iptables -t nat -A PREROUTING -d 10.0.0.1 -j DNAT --to-destination >192.168.0.99 You are forwarding _ALL_ traffic, _ALL_ ports. (And you can never reach the real 10.0.0.1 from the outside using 10.0.0.1.) Jan -- |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Blocking direct private IP address, Andrew Kraslavsky |
|---|---|
| Next by Date: | Re: Blocking direct private IP address, Andrew Kraslavsky |
| Previous by Thread: | Re: Blocking direct private IP address, Andrew Kraslavsky |
| Next by Thread: | Re: Blocking direct private IP address, Andrew Kraslavsky |
| Indexes: | [Date] [Thread] [Top] [All Lists] |