Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Equipment Support » Hardware By Brand » Linksys » HOW TO: vsftpd, linux and linksys router
Search Topic:
Uniqs:
2767
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
additional port forwarding for befw11s4 v2 »
« Kudos to the EFSP42 print server!  
AuthorAll Replies


Brano
I hate Vogons
Premium,MVM
join:2002-06-25
Burlington, ON
·TekSavvy Solutions..

 HOW TO: vsftpd, linux and linksys router

Recently I've got vsftpd running from behind my BEFSX41 both in PORT and PASV modes so I thought that I share my set-up since FTP servers are quite a hot topic here ;)

My config:
BEFSX41 1.43.4 (any BEFSx should be OK)
vsftpd 1.1.1 (1.1.0 and up supports PASV from behind NAT, get it here: vsftpd.beasts.org )
RedHat 7.3 (any linux should be fine)

Router set-up:
Forward port 21 TCP on UPnP Forwarding page
Forward ports 65000~65534 TCP on Port Range Forwarding Page (any range, it's up to you)

vsftpd.conf set-up:
pasv_enable=YES
pasv_min_port=65000 (same range as on router)
pasv_max_port=65534
pasv_address=100.100.100.100 (here comes your WAN IP)
...all other variables are set to default values

And since I have dynamic WAN IP from my ISP here's a little script running from cron to update vsftpd.conf with current IP (I use free dynamic DNS service www.dynu.com )
code:
#!/bin/sh
#vsftpd.conf IP update by Brano See Profile
vsftpd_conf=/etc/vsftpd.conf
vsftpd_log=/var/log/vsftpd.log
#change to your domain name in next line
my_ip=`host your_host.dynu.com | cut -f4 -d" "`
vsftpd_ip=`grep pasv_address $vsftpd_conf | cut -f2 -d=`

if [ "$my_ip" != "$vsftpd_ip" ] ; then
( echo ",s/$vsftpd_ip/$my_ip/g" && echo w ) | ed - $vsftpd_conf
echo `date` "$vsftpd_conf updated with $my_ip IP address" >> $vsftpd_log
fi

...hope this helps to somebody :)

My special thanks to Bill_MI See Profile


Bill_MI
Bill In Michigan
Premium,MVM
join:2001-01-03
Royal Oak, MI
·Comcast

  Great info! You're right, FTP servers are a constant hot topic here. So... you'll find your post added to the FAQ: »Linksys FAQ »How do I setup an FTP server behind my Linksys? . Many thanks!


gblades

join:2001-06-20
Bracknell UK

reply to Brano
I wrote a document about setting up FTP on the SMC Barricade and it is online at »www.gbnetwork.co.uk/smcftpd/

A couple of sections are specific to the SMC but most apply to any router. It covers setting up FTP Serv-U under windows and Pure-ftpd under Linux.
Forums » Equipment Support » Hardware By Brand » Linksysadditional port forwarding for befw11s4 v2 »
« Kudos to the EFSP42 print server!  


Monday, 23-Nov 09:21:51 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [233] Weekend Open Thread
· [117] Verizon Again Hints At Metered Billing
· [98] There's Still No Evidence That Metered Billing Is Necessary
· [97] Will AOL's Implosion Ever End?
· [85] Spain Declares Broadband A Legal Right
· [75] Deploying FTTH Without Digging Things Up
· [74] Verizon To Be Tested By Unofficial Droid Tethering
· [74] Femtocells Are A No Show
· [67] Verizon To AT&T: The Truth Hurts
· [60] Chicago Tribune Visits 'Comcast University'
Most people now reading
· Extra charge to use Master Card instead of Visa? [General Questions]
· Teksavvy 7-8mbps Service? [TekSavvy]
· Smoker's Applecare warranties may not be worth anything [All Things Macintosh]
· Windows 7 boot manager editing questions [Microsoft Help]
· Best Bluray player [General Questions]
· linux box alternative to NetEqualizer ? ? Does it exist? [Wireless Service Providers]
· TekSavvy Price Increase? [TekSavvy]
· Slow speeds in the evenings [TekSavvy]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]
· WoW's Fall from grace [World of Warcraft]