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