Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using ftpsync to have a local version of the debian packages for all of our debian clients.

Internally, the traffic from the mirror is at our normal LAN speeds (100 MB/s); however, when a client is off-site, the speed is in the range of 80-200KB/s.

Is there a setting to limit the traffic to external clients? What ports sould be open on the firewall?

share|improve this question
1  
Just out of interest, do you really want to provide a mirror? Are you geographically isolated? If not, you might find a cahceing proxy more beneficial -> packages.debian.org/wheezy/apt-cacher-ng and unix-ag.uni-kl.de/~bloch/acng –  sgtbeano Nov 12 '13 at 15:14
2  
Well...if you're hosting this mirror locally and your external clients are grabbing it, you're limited to your Internet connection speeds... –  Nathan C Nov 12 '13 at 15:50
    
@NathanC Host is 100mbit upload and client is 15mbit download. –  AWippler Nov 12 '13 at 16:01
    
@sgtbeano I do not want caching, I wanted a full mirror. There is no sense having 100 connections to a debian main mirror when I can limit it to 1 connection once a day. Especially since I have the resources available. –  AWippler Nov 12 '13 at 16:05
    
@AWippler Even still, how many clients are pulling from this external mirror? 100mbit can be exhausted quite quickly and you'd run into this limitation. Distance and latency also plays a role. –  Nathan C Nov 12 '13 at 18:42
show 5 more comments

1 Answer

you can run...

"netstat | grep -i ftpsync"

...on the server and then allow the ports that it uses to the firewall. if that doesnt turn up enough info you can google about netstat to better tune you search for active ports.

but if you are using the same protocol offsite as onsite that inst your issue unless the offsite firewall restricts requests initiated by clients inside the network which isnt a super normal thing for most routers unless otherwise configured to do so (most off the shelf routers/"modems" will automatically open ports that clients request traffic on).

for limiting bandwidth to external clients i cant help you. there might be mention in the ftpsync documentation, if you can find any. a quick google turned up a 404 and something on the Debian website about making a mirror with it.

to test that it isnt just the network being sad you can try copying a file between the networks with a different protocol, like scp, and check the speed on that. then possibly check speed domain vs. ip (if you have a domain setup).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.