8.3.2 Forwarding

De UnixWiki
Aller à : navigation, rechercher

Activer le forwarding

 echo 1 > /proc/sys/net/ipv4/ip_forward

Rediriger toutes les connexions entrantes sur le port destination 80, jusuqu'à la machine 192.168.1.10 sur son port 8080

 #iptables -t nat -A PREROUTING -d $VOTRE_IP_INTERNET -p tcp --dport 80 -j DNAT --to-destination 192.168.1.10:8080