From 3d8b5af83c8ec1d8d58b34ed2282c599cd1a99c6 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Wed, 30 May 2018 01:29:57 +0200 Subject: [PATCH] =?UTF-8?q?conformit=C3=A9=20IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoNetfilter.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HowtoNetfilter.md b/HowtoNetfilter.md index a157e14f..e63e5db7 100644 --- a/HowtoNetfilter.md +++ b/HowtoNetfilter.md @@ -109,8 +109,8 @@ En cas de besoin de bannir temporairement une adresse IP 192.0.2.66 : ### NAT bidirectionnel ~~~ -# iptables -t nat -A PREROUTING -i eth0 -d IP_publique -j DNAT --to-destination 10.1.2.3 -# iptables -t nat -A POSTROUTING -o eth0 -s 10.1.2.3 -j SNAT --to-source IP_publique +# iptables -t nat -A PREROUTING -i eth0 -d IP_publique -j DNAT --to-destination 192.0.2.1 +# iptables -t nat -A POSTROUTING -o eth0 -s 192.0.2.1 -j SNAT --to-source IP_publique ~~~ ### Autoriser toute une interface