Hello everybody,
Aangezien mijn ISP alle poorten onder de 1024 blocked lijkt het mij verstandig om de ftp poort te veranderen naar boven de 21 zodat remote access mogelijk wordt. Met een andere Netgear ReadyNAS Duo is me dit zelfstandig gelukt, echter geraak ik er bij dit filesystem niet zo goed aan uit waar alles precies staat.
ssh enablen is kinderspel: http://192.168.0.180/manage/diagnostics.html
Vervolgens ssh'en en inloggen als root met het passwoord: soho******* met ****** je ingesteld wachtwoord.
Vervolgens run ik:
root@iom-server:/# cd ~/
root@iom-server:/# find -name *ftp*
./.atftp_history
./sys/module/nf_conntrack_ftp
./var/proftpd.sock
./var/proftpd.pid
./var/proftpd.scoreboard
./var/proftpd.delay
./var/run/proftpd
./var/log/proftpd.log
./var/lib/tftpboot
./etc/init.d/atftpd.dpkg-new
./etc/default/atftpd
./etc/pam.d/ftp
./etc/ftpusers
./mnt/system/opt/dpkg/info/atftpd.config
./mnt/system/opt/dpkg/info/atftpd.md5sums
./mnt/system/opt/dpkg/info/atftpd.templates
./mnt/system/opt/dpkg/info/atftpd.list
./mnt/system/opt/dpkg/info/atftpd.prerm
./mnt/system/opt/dpkg/info/atftpd.postinst
./mnt/system/opt/dpkg/info/atftpd.conffiles
./mnt/system/opt/dpkg/info/atftpd.postrm
./mnt/system/config/proftpdtemp.conf
./mnt/system/config/proftpd.conf
./mnt/system/log/proftpd.log.20130422140717
./mnt/system/log/proftpd.log.20130422135928
./mnt/etc/init.d/atftpd.dpkg-new
./mnt/etc/default/atftpd
./mnt/etc/pam.d/ftp
./mnt/etc/ftpusers
./mnt/apps/bin/tftp
./mnt/apps/lib/security/pam_ftp.so
./mnt/apps/usr/bin/apt-ftparchive
./mnt/apps/usr/bin/atftp
./mnt/apps/usr/bin/conchftp
./mnt/apps/usr/bin/sftp
./mnt/apps/usr/lib/apt/methods/ftp
./mnt/apps/usr/lib/python2.5/site-packages/twisted/plugins/twisted_ftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/plugins/twisted_ftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/test/test_ftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/test/test_ftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/python/zsh/_cftp
./mnt/apps/usr/lib/python2.5/site-packages/twisted/conch/test/test_cftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/conch/test/test_cftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/conch/scripts/cftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/conch/scripts/cftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/protocols/ftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/protocols/ftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/tap/ftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/tap/ftp.py
./mnt/apps/usr/lib/python2.5/ftplib.py
./mnt/apps/usr/lib/python2.5/ftplib.pyc
./mnt/apps/usr/lib/openssh/sftp-server
./mnt/apps/usr/lib/sftp-server
./mnt/apps/usr/sbin/atftpd
./mnt/apps/usr/sbin/in.tftpd
./mnt/apps/usr/share/pyshared/twisted/plugins/twisted_ftp.py
./mnt/apps/usr/share/pyshared/twisted/test/test_ftp.py
./mnt/apps/usr/share/pyshared/twisted/python/zsh/_cftp
./mnt/apps/usr/share/pyshared/twisted/conch/test/test_cftp.py
./mnt/apps/usr/share/pyshared/twisted/conch/scripts/cftp.py
./mnt/apps/usr/share/pyshared/twisted/protocols/ftp.py
./mnt/apps/usr/share/pyshared/twisted/tap/ftp.py
./mnt/apps/usr/share/python-support/python-m2crypto/M2Crypto/ftpslib.py
./mnt/apps/usr/share/lua/5.1/socket/ftp.lua
./mnt/apps/usr/local/gathertool/ftp
./mnt/apps/usr/local/gathertool/tftp
./mnt/apps/usr/local/pam_orig/ftp
./mnt/apps/usr/local/proftpd
./mnt/apps/usr/local/proftpd/sbin/ftptop
./mnt/apps/usr/local/proftpd/sbin/ftpwho
./mnt/apps/usr/local/proftpd/sbin/ftpdctl
./mnt/apps/usr/local/proftpd/sbin/ftpcount
./mnt/apps/usr/local/proftpd/sbin/ftpscrub
./mnt/apps/usr/local/proftpd/sbin/ftpshut
./mnt/apps/usr/local/proftpd/sbin/proftpd
./mnt/apps/usr/local/cfg/proftpd.xml
./mnt/apps/etc/init.d/atftpd.dpkg-new
./mnt/apps/etc/pam.d/ftp
./mnt/apps/etc/ftpusers
Als ik lokaal inlog, via poort 21 dan krijg ik het welkomstbericht van proftpd, dus die zal ik moeten aanpassen, dus ik dacht dus aan de files:
./mnt/system/config/proftpdtemp.conf
./mnt/system/config/proftpd.conf
Echter na rebooten veranderd steeds de poort terug naar 21 dus hij moet deze waarde ergens anders uit een bestand halen.
root@iom-server:/# uname -a
Linux iom-server 3.0.29 #1 SMP Tue Mar 12 17:50:52 EDT 2013 v2.1.1.1 armv7l GNU/Linux
Iemand een idee ?
Dank bij voorbaat.
EDIT:
./mnt/apps/usr/local/cfg/proftpd.xml bevatten ook de poort instellingen, echter wanneer ik deze wijzig krijg ik read-only file. Waneer ik chmod 777 proftpd.xml doe krijg ik read-only filesystem. Ik denk nu dat ik moet unmounten en remounten als read write ? Is dit veilig?
De mount command geeft me zoals verwacht:
/dev/loop0 on /mnt/apps type ext2 (ro,relatime)
Aangezien mijn ISP alle poorten onder de 1024 blocked lijkt het mij verstandig om de ftp poort te veranderen naar boven de 21 zodat remote access mogelijk wordt. Met een andere Netgear ReadyNAS Duo is me dit zelfstandig gelukt, echter geraak ik er bij dit filesystem niet zo goed aan uit waar alles precies staat.
ssh enablen is kinderspel: http://192.168.0.180/manage/diagnostics.html
Vervolgens ssh'en en inloggen als root met het passwoord: soho******* met ****** je ingesteld wachtwoord.
Vervolgens run ik:
root@iom-server:/# cd ~/
root@iom-server:/# find -name *ftp*
./.atftp_history
./sys/module/nf_conntrack_ftp
./var/proftpd.sock
./var/proftpd.pid
./var/proftpd.scoreboard
./var/proftpd.delay
./var/run/proftpd
./var/log/proftpd.log
./var/lib/tftpboot
./etc/init.d/atftpd.dpkg-new
./etc/default/atftpd
./etc/pam.d/ftp
./etc/ftpusers
./mnt/system/opt/dpkg/info/atftpd.config
./mnt/system/opt/dpkg/info/atftpd.md5sums
./mnt/system/opt/dpkg/info/atftpd.templates
./mnt/system/opt/dpkg/info/atftpd.list
./mnt/system/opt/dpkg/info/atftpd.prerm
./mnt/system/opt/dpkg/info/atftpd.postinst
./mnt/system/opt/dpkg/info/atftpd.conffiles
./mnt/system/opt/dpkg/info/atftpd.postrm
./mnt/system/config/proftpdtemp.conf
./mnt/system/config/proftpd.conf
./mnt/system/log/proftpd.log.20130422140717
./mnt/system/log/proftpd.log.20130422135928
./mnt/etc/init.d/atftpd.dpkg-new
./mnt/etc/default/atftpd
./mnt/etc/pam.d/ftp
./mnt/etc/ftpusers
./mnt/apps/bin/tftp
./mnt/apps/lib/security/pam_ftp.so
./mnt/apps/usr/bin/apt-ftparchive
./mnt/apps/usr/bin/atftp
./mnt/apps/usr/bin/conchftp
./mnt/apps/usr/bin/sftp
./mnt/apps/usr/lib/apt/methods/ftp
./mnt/apps/usr/lib/python2.5/site-packages/twisted/plugins/twisted_ftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/plugins/twisted_ftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/test/test_ftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/test/test_ftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/python/zsh/_cftp
./mnt/apps/usr/lib/python2.5/site-packages/twisted/conch/test/test_cftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/conch/test/test_cftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/conch/scripts/cftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/conch/scripts/cftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/protocols/ftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/protocols/ftp.py
./mnt/apps/usr/lib/python2.5/site-packages/twisted/tap/ftp.pyc
./mnt/apps/usr/lib/python2.5/site-packages/twisted/tap/ftp.py
./mnt/apps/usr/lib/python2.5/ftplib.py
./mnt/apps/usr/lib/python2.5/ftplib.pyc
./mnt/apps/usr/lib/openssh/sftp-server
./mnt/apps/usr/lib/sftp-server
./mnt/apps/usr/sbin/atftpd
./mnt/apps/usr/sbin/in.tftpd
./mnt/apps/usr/share/pyshared/twisted/plugins/twisted_ftp.py
./mnt/apps/usr/share/pyshared/twisted/test/test_ftp.py
./mnt/apps/usr/share/pyshared/twisted/python/zsh/_cftp
./mnt/apps/usr/share/pyshared/twisted/conch/test/test_cftp.py
./mnt/apps/usr/share/pyshared/twisted/conch/scripts/cftp.py
./mnt/apps/usr/share/pyshared/twisted/protocols/ftp.py
./mnt/apps/usr/share/pyshared/twisted/tap/ftp.py
./mnt/apps/usr/share/python-support/python-m2crypto/M2Crypto/ftpslib.py
./mnt/apps/usr/share/lua/5.1/socket/ftp.lua
./mnt/apps/usr/local/gathertool/ftp
./mnt/apps/usr/local/gathertool/tftp
./mnt/apps/usr/local/pam_orig/ftp
./mnt/apps/usr/local/proftpd
./mnt/apps/usr/local/proftpd/sbin/ftptop
./mnt/apps/usr/local/proftpd/sbin/ftpwho
./mnt/apps/usr/local/proftpd/sbin/ftpdctl
./mnt/apps/usr/local/proftpd/sbin/ftpcount
./mnt/apps/usr/local/proftpd/sbin/ftpscrub
./mnt/apps/usr/local/proftpd/sbin/ftpshut
./mnt/apps/usr/local/proftpd/sbin/proftpd
./mnt/apps/usr/local/cfg/proftpd.xml
./mnt/apps/etc/init.d/atftpd.dpkg-new
./mnt/apps/etc/pam.d/ftp
./mnt/apps/etc/ftpusers
Als ik lokaal inlog, via poort 21 dan krijg ik het welkomstbericht van proftpd, dus die zal ik moeten aanpassen, dus ik dacht dus aan de files:
./mnt/system/config/proftpdtemp.conf
./mnt/system/config/proftpd.conf
Echter na rebooten veranderd steeds de poort terug naar 21 dus hij moet deze waarde ergens anders uit een bestand halen.
root@iom-server:/# uname -a
Linux iom-server 3.0.29 #1 SMP Tue Mar 12 17:50:52 EDT 2013 v2.1.1.1 armv7l GNU/Linux
Iemand een idee ?
Dank bij voorbaat.
EDIT:
./mnt/apps/usr/local/cfg/proftpd.xml bevatten ook de poort instellingen, echter wanneer ik deze wijzig krijg ik read-only file. Waneer ik chmod 777 proftpd.xml doe krijg ik read-only filesystem. Ik denk nu dat ik moet unmounten en remounten als read write ? Is dit veilig?
De mount command geeft me zoals verwacht:
/dev/loop0 on /mnt/apps type ext2 (ro,relatime)
[ Voor 4% gewijzigd door Verwijderd op 22-04-2013 17:15 ]