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

port forwarding configuration



Hi,

I have a small network at home :
gateway + server (web+ftp) + laptop

I have a domaine name and use port forwarding with iptables for the ftp and web server :

iptables -A PREROUTING -t nat -p tcp -d my_domaine_name --dport 80 -j DNAT --to 192.168.0.1:80

iptables -A OUTPUT -t nat -p tcp -d my_domaine_name --dport 80 -j DNAT --to 192.168.0.1:80

iptables -A PREROUTING -t nat -p tcp -d my_domaine_name --dport 21 -j DNAT --to 192.168.0.1:21
echo -n $DEBUG

iptables -A OUTPUT -t nat -p tcp -d my_domaine_name --dport 21 -j DNAT --to 192.168.0.1:21

from outside everything work well but if I try to connecte from my local network on my domain, I can't access to my server.

there is a time out. nothing appear in the firewall log and wer server log

for the ftp it's not a problem but for the web server it is.
I have sub domain and I can access only with my domain name and not directly with the local name for the server.

I haven't DNS on my network

any idea ?

thanks for you help

Yoann

_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France



Reply to: