{"id":208,"date":"2010-07-19T03:07:49","date_gmt":"2010-07-19T01:07:49","guid":{"rendered":"http:\/\/fifonik.com\/blog\/2010\/07\/19\/thecus-n3200pro-ftps-behind-router\/"},"modified":"2010-07-19T03:07:49","modified_gmt":"2010-07-19T01:07:49","slug":"thecus-n3200pro-ftps-behind-router","status":"publish","type":"post","link":"http:\/\/fifonik.com\/blog\/2010\/07\/19\/thecus-n3200pro-ftps-behind-router\/","title":{"rendered":"Thecus N3200PRO: FTPS behind router"},"content":{"rendered":"<p>Official firmware supports FTPS: Network | FTP &gt; Secure FTP (Explicit) == Enable (I use 1.00.05, in other versions it could be in different place).<\/p>\n<p>However, if your NAS is located behind the router (a bit typical situation, isn&#039;t it?) you couldn&#039;t use FTPS for sharing files. The problem is simple: by default FTPS will choose port from range 1024-65535, but your router couldn&#039;t sniff the port number and open incoming port because the information is already encrypted.<\/p>\n<p>I&#039;ve found very simple hack: by modifying <a href=\"http:\/\/www.pureftpd.org\/project\/pure-ftpd\">FTP daemon&#039;s<\/a> option you can narrow the ports range and forward all of them to your NAS.<\/p>\n<p>1. Activate Secure FTP on your NAS.<br \/>2. Install and enable <a href=\"http:\/\/naswebsite.com\/wiki\/Thecus_N3200PRO_Module:_SSHD\">SSHD module<\/a>.<br \/>3. Connect to device by SSH and execute command:<\/p>\n<pre>\/opt\/bin\/sqlite \/app\/cfg\/conf.db &quot;update conf set v=&#039;2 -p 3000:3010&#039; where k=&#039;ftp_ssl&#039;&quot;<\/pre>\n<p>The new option (&quot;-p 3000:3010&quot;) is specified the range of ports which ftp daemon will be used.<br \/>4. Re-configure your router and forward all incoming connections to ports 3000-3010 to the NAS.<br \/>5. Disable SSHD module.<\/p>\n<p>Voila.<\/p>\n<p>P.S. When the hack is applied you shouldn&#039;t make any changes on FTP configuration page and both radio buttons for &quot;Secure FTP&quot; option will not be checked. It&#039;s OK.<br \/><span class='img'><img alt='' src='http:\/\/fifonik.com\/blog\/wp-content\/uploads\/12282-nas_ftps.png' \/><\/span> <br \/>P.P.S. If you would like to reverse the hack just go to FTP configuration page, check one of &quot;Secure FTP&quot; radio buttons and &quot;press Apply&quot; button.<\/p>\n<p><strong>UPDATE:<\/strong><br \/>To connect using FTPS you can use <a href=\"http:\/\/winscp.net\/\">WinSCP<\/a> client. Enter IP address\/domain name, Port=21, File Protocol=FTP + TLS Explicit encryption. Then check &quot;Advanced options&quot;, on page &quot;Connection&quot; check &quot;Passive mode&quot; (it is checked by default) and then on page &quot;FTP&quot; check &quot;Force IP address for passive mode connection&quot;.<\/p>\n<p>Another way to connect to the NAS using FTPS is Total Commander&#039;s integrated ftp client. Just enter &#039;ftps:\/\/domain&#039; and check SSL\/TLS checkbox.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Official firmware supports FTPS: Network | FTP &gt; Secure FTP (Explicit) == Enable (I use 1.00.05, in other versions it could be in different place). However, if your NAS is located behind the router (a bit typical situation, isn&#039;t it?) you couldn&#039;t use FTPS for sharing files. The problem is simple: by default FTPS will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[130,131,185,90],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-n3200pro","tag-nas","tag-thecus","tag-90"],"_links":{"self":[{"href":"http:\/\/fifonik.com\/blog\/wp-json\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fifonik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fifonik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fifonik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fifonik.com\/blog\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":0,"href":"http:\/\/fifonik.com\/blog\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"http:\/\/fifonik.com\/blog\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fifonik.com\/blog\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fifonik.com\/blog\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}