ftp accessible depuis lan&wan ok,mais 2min après plus d

Post new topic   Reply to topic    DD-WRT Forum Index -> Questions générales
Author Message
lejurassien34
DD-WRT Novice


Joined: 17 May 2011
Posts: 14

PostPosted: Wed Jun 29, 2011 12:27    Post subject: ftp accessible depuis lan&wan ok,mais 2min après plus d Reply with quote
bonjour,voilà mon problème j'ai un dd-wrt avec optware installé dessus j'ai réussi à mettre en oeuvre samba 3.5
transmission,et le ftp avec xinetd. tuto http://www.dd-wrt.com/wiki/index.php/ProFTPd

Tuto suivi scrupuleusement mais quand je mets les lignes suivantes(a sauver dans le démarrage) qui sont décrites dans le tuto à savoir: #-------- for proftpd passive WAN access -----
echo 'MasqueradeAddress xxxxx.dyndns.org'>> /tmp/proftpd/etc/proftpd.conf #Masquerade the responses
echo 'PassivePorts 60000 61000'>> /tmp/proftpd/etc/proftpd.conf #Set the passive ports range
killall -HUP proftpd #restart the ftp serve
/usr/sbin/iptables -I INPUT -p tcp -m tcp --dport 60000:61000 --syn -j logaccept

Ca ne fonctionne ni en lan ni en wan.
J'ai donc changé un mot,ce qui donne ceci:

echo 'MasqueradeAddress thomi.dyndns-free.com'>> /tmp/proftpd/etc/proftpd.conf
echo 'PassivePorts 60000 61000'>> /tmp/proftpd/etc/proftpd.conf
killall -HUP xinetd
/usr/sbin/iptables -I INPUT -p tcp -m tcp --dport 60000:61000 --syn -j logaccept

presque pareil mais a part killall -HUP proftpd j'ai remplacé proftpd par xinetd.

Et là ca fonctionne depuis le lan et le wan.Mais car il y a un mais,ca ne fonctionne que deux minutes ensuite ce n'est accessible que depuis le lan!!!!?

Et je vous raconte pas la peine que j'ai eu à faire en sorte que masqueradeaddress et passiveports ne s'efface pas à chaque reboot..

comme je n'ai le droit de mettre que 3 images je mets celles qui me paraissent importantes et le reste je le posterai si quelqu'un m'aide...

Encore une chose mon firmwire est le V24 sp2 mega build 14929.
Sponsor
lejurassien34
DD-WRT Novice


Joined: 17 May 2011
Posts: 14

PostPosted: Wed Jun 29, 2011 12:34    Post subject: les images restantes Reply with quote
je n'ai trouvé que cette facon pour ajouter les images qui aideront peut-etre un peu plus...
please aider moi,ca fait 1mois que je rame seul...
lejurassien34
DD-WRT Novice


Joined: 17 May 2011
Posts: 14

PostPosted: Wed Jun 29, 2011 12:36    Post subject: suite Reply with quote
suite
lejurassien34
DD-WRT Novice


Joined: 17 May 2011
Posts: 14

PostPosted: Wed Jun 29, 2011 12:39    Post subject: scripts de demarrage Reply with quote
scripts
lejurassien34
DD-WRT Novice


Joined: 17 May 2011
Posts: 14

PostPosted: Wed Jun 29, 2011 12:41    Post subject: et la dernière Reply with quote
j'ai un peu pollué le topic j'en suis désolé,mais ca fait maintenant trois semaines que je rame et vraiment en désespoir de cause je vous demande un peu d'aide. Embarassed
lejurassien34
DD-WRT Novice


Joined: 17 May 2011
Posts: 14

PostPosted: Wed Jun 29, 2011 15:29    Post subject: Need help Reply with quote
Please help me... Crying or Very sad
lejurassien34
DD-WRT Novice


Joined: 17 May 2011
Posts: 14

PostPosted: Thu Jun 30, 2011 13:16    Post subject: j'ai trouvé le problème mais pas la solution Reply with quote
voici une capture de iptables -L avec fixtables acctivé
lejurassien34
DD-WRT Novice


Joined: 17 May 2011
Posts: 14

PostPosted: Thu Jun 30, 2011 13:21    Post subject: et la derniere avec fixtables désactivé Reply with quote
au moins je sais maintenant ou se situe le problème,mais je ne saurais pas le régler..
lejurassien34
DD-WRT Novice


Joined: 17 May 2011
Posts: 14

PostPosted: Thu Jun 30, 2011 13:24    Post subject: opt/etc/init.d Reply with quote
C'est ici qu'il doit y avoir un problème je pense.

opt/etc/init.d

# check FTP-server if necessary
if [ `nvram get proftpd_enable` -ne 0 ] ; then
echo "if [ -e /tmp/proftpd/etc/proftpd.conf ] ; then" >>${FILE}
echo " if ! grep -iq MaxLoginAttempts /tmp/proftpd/etc/proftpd.conf ; then" >>${FILE}
echo " echo -e \"MaxLoginAttempts\\t3\" >>/tmp/proftpd/etc/proftpd.conf" >>${FILE}
echo " killall -HUP proftpd" >>${FILE}
echo " fi" >>${FILE}
echo "fi" >>${FILE}
fi
echo "sed -i -e '/^search /d' `readlink -f /etc/resolv.conf`" >>${FILE}
fi
fi
fi

chmod +x ${FILE}
mkdir -p ${CONFDIR} 2>/dev/null
ln -s ${FILE} ${SYMLINK} 2>/dev/null
stopservice firewall
startservice firewall
else
echo "${NAME} is already active"
fi
exit 0
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Questions générales All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum