Re: Owncloud at home and bandwidth

2013-06-19 Thread Celejar
On Wed, 19 Jun 2013 02:56:11 -0500
Stan Hoeppner  wrote:

> On 6/19/2013 2:16 AM, Mérof 42 wrote:
> 
> > 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?
> 
> Traffic shaping of this type is typically done at the edge router.  You
> simply plug in the LAN IP and set the in/out rate limits either
> wholesale or by service type.  The router obviously must support this.
> Unfortunately not many consumer routers do.  So you either move up to a
> more expensive commercial unit, or build another Linux box and install
> the appropriate software, such as wondershaper.  Your current problem is

Or use a router that runs OpenWrt.

Celejar


-- 
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/20130619230056.58c18ccb2d77d67e8fda8...@gmail.com



Re: Owncloud at home and bandwidth

2013-06-19 Thread Redalert Commander
2013/6/19 Mérof 42 :
> 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



Re: Owncloud at home and bandwidth

2013-06-19 Thread Benedict Verheyen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 19/06/2013 9:56, Stan Hoeppner wrote:
> On 6/19/2013 2:16 AM, Mérof 42 wrote:
> 
>> 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?
> 
> Traffic shaping of this type is typically done at the edge router.  You 
> simply plug in the LAN IP and set the in/out rate limits
> either wholesale or by service type.  The router obviously must support this. 
> Unfortunately not many consumer routers do.  So you
> either move up to a more expensive commercial unit, or build another Linux 
> box and install the appropriate software, such as
> wondershaper.  Your current problem is that you're trying to do too much 
> within a single host.  It can probably be done, but a whole
> lot of hacking will be required.
> 

It's possible to assign multiple ip addresses to a nic, so that might be
a way to work around the problem of wondershaper?

- -- 
Benedict Verheyen   Debian, Python and Django user
GnuPG Public Key 0x712CBB8D
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHBaiUACgkQ6YPsX3Esu43QsQCgseJLK76zxNtKlriIlqihiluR
7ssAoJ3d61/AAXLADsUVA8UmiqIijP10
=YR8D
-END PGP SIGNATURE-


-- 
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/kprpmv$a14$1...@ger.gmane.org



Re: Owncloud at home and bandwidth

2013-06-19 Thread Stan Hoeppner
On 6/19/2013 2:16 AM, Mérof 42 wrote:

> 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?

Traffic shaping of this type is typically done at the edge router.  You
simply plug in the LAN IP and set the in/out rate limits either
wholesale or by service type.  The router obviously must support this.
Unfortunately not many consumer routers do.  So you either move up to a
more expensive commercial unit, or build another Linux box and install
the appropriate software, such as wondershaper.  Your current problem is
that you're trying to do too much within a single host.  It can probably
be done, but a whole lot of hacking will be required.

-- 
Stan


-- 
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/51c1641b.9060...@hardwarefreak.com