2013/6/19 Mérof 42 <mero...@gmail.com>:
> Hi,
>
> I installed Owncloud on a new install of wheezy on a "server" at home.
> I use apache2, php5 and mysql, and I redirect the port 443 on my server.
> It is work fine, but I need to limit the upload bandwidth to Internet.
> I have a 1mb/s upload adsl, if I share a file with other people, it could
> saturate my connection.
> This server is also ipv6 compatible, and I use only ipv6 at home between my
> computer.
>
> Actually I use wondershaper to limit upload on eth0 at 512kb/s, but it is
> limited also for my lan, it is silly.
>
> I'd like to limit upload only for external request, but not for my lan.
> Do you have any idea how can I do that?
>

If you're feeling adventurous you could try to do it manually using tc
and iptables.
There are several examples on the internet on how to do this, but I recommend
you test them before putting them into that server.
At [1] and [2] are examples using only IPv4, but it is possible to use
IPv6 as well.

Shorewall (available in the repositories) might be a bit easier to configure,
it can also do traffic shaping on both IPv4 and IPv6, look at [3] for details.
Underlying it uses iptables and tc.

[1] 
http://www.amiryan.org/2009/02/16/traffic-shaping-under-linux-with-tc-and-iptables/
[2] https://bbs.archlinux.org/viewtopic.php?id=153418 (see post #16
for his complete script)
[3] http://www.shorewall.net/simple_traffic_shaping.html

Regards,
Steven


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAMDu+mPTsLx6Wf76MQXNDd+_D9LEL5_pxKUhiBmdx=eu_n-...@mail.gmail.com

Reply via email to