Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Owncloud at home and bandwidth

237 views
Skip to first unread message

Mérof 42

unread,
Jun 19, 2013, 3:20:02 AM6/19/13
to
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?

For people who don't know, Owncloud is a dropbox like who can be installed on your own server.

Thanks you all.

Stan Hoeppner

unread,
Jun 19, 2013, 4:00:02 AM6/19/13
to
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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/51C1641B...@hardwarefreak.com

Benedict Verheyen

unread,
Jun 19, 2013, 4:30:02 AM6/19/13
to
-----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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/kprpmv$a14$1...@ger.gmane.org

Redalert Commander

unread,
Jun 19, 2013, 4:40:02 AM6/19/13
to
2013/6/19 Mérof 42 <mer...@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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/CAMDu+mPTsLx6Wf76MQXNDd+_...@mail.gmail.com

Celejar

unread,
Jun 19, 2013, 11:10:02 PM6/19/13
to
On Wed, 19 Jun 2013 02:56:11 -0500
Stan Hoeppner <st...@hardwarefreak.com> 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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130619230056.58c1...@gmail.com
0 new messages