conformité IP
This commit is contained in:
parent
e21eeb42bf
commit
3d8b5af83c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue