rcplay / snake-os

Automatically exported from code.google.com/p/snake-os
1 stars 0 forks source link

Feature request: user configurable ssh and ftp ports #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Just like the option we already have now in the Web Admin and Web Server
configuration, where the user can choose the ports to be used.

Many ISPs block incoming requests on known service ports on non commercial
subscribers. Having a flexible configuration would allow users to publish
the services through alternative ports.

Also, it would be interesting from a security perspective, effectively
avoiding basic network port scans.

Original issue reported on code.google.com by Wagner.L...@gmail.com on 2 Jun 2010 at 3:04

GoogleCodeExporter commented 8 years ago
Sorry, clearly it isn't a "Defect". Couldn't relabel it after sending the issue.

Original comment by Wagner.L...@gmail.com on 2 Jun 2010 at 3:07

GoogleCodeExporter commented 8 years ago
I just wanted to support Wagner's request, give a HUGE thank you to the 
developers for the wonderful piece of software they've put together and also 
ask if there is no way around this limitation?

I don't know, maybe a command line action to change FTP default port. 

Original comment by leotow...@gmail.com on 15 Jul 2010 at 10:37

GoogleCodeExporter commented 8 years ago
As a workaround you could use the chrooted Debian from the Wiki page.

apt-get install anything you want basically and change what ever ports you need.

I only have ssh running on port 22 on snake and all the rest is running on 
chrooted side like ssh on port 23 so I can log straight into chroot 

Original comment by wellum...@gmail.com on 17 Sep 2010 at 7:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Comment 4 by allstsgo, Today (11 hours ago) No need to chrooted debian to 
change ftp port.
To change the ftp listen port from 21 to another (2100 for example), do this:
SSH to snake (with putty)
cd /etc
vi vsftpd.conf
use arrows to move to the end line
press "o" and a new line will be added
listen_port=2100
press Esc
write :w and enter to save file
write :q to exit vi to command line

Now restart the ftp service and ftp will work on port 2100

The problem*: Each time you reboot the nas, this config will be lost :(
*Edit: Problem solved. To keep port config, before reboot the nas, go to system 
> Config and Save Config

Original comment by allst...@gmail.com on 4 Dec 2010 at 9:56