LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2015, 05:07 PM   #1
PACMANchasingme
Member
 
Registered: Mar 2015
Distribution: Arch
Posts: 62

Rep: Reputation: Disabled
Which FTP server that can limit bandwith and get decent security?


Hey I already learned how to turn my desktop into samba server for my home network. My router and smb config are limited to only local IP's. So I'm pretty happy with that, they are all sharing files fine.

Now I want to put some files available to the public as well for people to download from me 100mb/month per IP and learn how to protect my network as well?

Can samba do this already? or do I need something else?
 
Old 07-08-2015, 09:15 PM   #2
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 607

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Samba is designed for LAN's and not for external connections. Maybe look here

You can do the above with iptables but you would need to restart the rules every month since it has no effective restart (besides pulling down the rules and putting them back up)
I believe the quota match is in kilobytes so for 100MB..
Something like:
Code:
iptables -A INPUT -t tcp --dport 80 --quota 102400 -j ACCEPT
Assuming the policy is drop, this will accept up to 102400kb (100mb) and then stop accepting till the rule is removed and placed back. If you put the process into a script that runs every month to reset all rules, this could work well.
This post explains quota too

Last edited by Sefyir; 07-08-2015 at 09:19 PM.
 
Old 07-08-2015, 09:54 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,301
Blog Entries: 4

Rep: Reputation: 148Reputation: 148
What distro are you running?

Have you checked out VSFTP?
 
Old 07-09-2015, 04:09 AM   #4
PACMANchasingme
Member
 
Registered: Mar 2015
Distribution: Arch
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Sefyir View Post
Samba is designed for LAN's and not for external connections. Maybe look here

You can do the above with iptables but you would need to restart the rules every month since it has no effective restart (besides pulling down the rules and putting them back up)
I believe the quota match is in kilobytes so for 100MB..
Something like:
Code:
iptables -A INPUT -t tcp --dport 80 --quota 102400 -j ACCEPT
Assuming the policy is drop, this will accept up to 102400kb (100mb) and then stop accepting till the rule is removed and placed back. If you put the process into a script that runs every month to reset all rules, this could work well.
This post explains quota too
Quote:
Originally Posted by JockVSJock View Post
What distro are you running?

Have you checked out VSFTP?
Thanks I'll go with VSFTP and use iptables to set the rules, if needed.

My distro is under my username.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bandwith limit per user razzera Debian 1 01-08-2011 05:51 AM
Limit bandwith on interface Tux-Slack Slackware 1 02-06-2008 03:27 PM
Iptables Bandwith Limit av0 Linux - Networking 4 03-29-2004 07:36 AM
Limit bandwith for routers Xenoide Linux - Networking 2 04-24-2002 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration