[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Pb forwarding sur Lenny



Re-bonjour à tous,

 

J'ai un souci pour accéder à mon serveur de test, dans mon LAN (192.168.10.20) depuis l'extérieur, via ssh (port 222).
Entre les deux, j'ai ma passerelle sous Lenny.
Le serveur ssh est bien configuré, je m'y connecte sans problème depuis le LAN.

voici ma configuration d'iptables (abrégée) :

# iptables -t nat -L

Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       tcp  --  anywhere             anywhere            tcp dpt:222 to:192.168.10.20

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  anywhere             anywhere            to:82.240.31.243

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

# iptables -L

Chain INPUT (policy DROP)
target     prot opt source               destination
tcp_inbound  tcp  --  anywhere             anywhere

Chain FORWARD (policy DROP)
ACCEPT     tcp  --  anywhere             192.168.10.20         tcp dpt:222
Chain OUTPUT (policy DROP)
target     prot opt source               destination

Chain tcp_inbound (1 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:222
RETURN     tcp  --  anywhere             anywhere            tcp


Que manque-t-il ?
Merci
Vincent





Plus de 15 millions de français utilisent Windows Live Messenger ! Téléchargez Messenger, c'est gratuit !

Reply to: