Displaying 20 results from an estimated 3000 matches similar to: "tc and iptables trouble"
2007 Apr 13
2
puppet reporting an older version installation
Hello all,
I have puppet rpm on internal repository for updating it to servers that
don''t have it on their normal repos (Centos, Fedora Core 4 or older...)
Then I have this to ensure that puppet is at latest version:
package { "puppet":
ensure => latest,
provider => yum,
}
I added puppet 0.22.3 to my internal repository and all servers updated
to that version,
2007 Aug 30
17
Question about how TC enforces bandwidth limiting
Hello,
I run one of my PCs as my personal router, with iptables+tc to control
traffic and be my firewall.
In TC, I use a combination of htb, qdisc and sfq (as well as prio) to
classify bandwidth. In my current setup, I have 10 classifications of my
bandwidth. (Even I admit this is probably more than I need, but at this
point I''m still learning, so I''ll just leave them be.)
2005 Dec 10
10
Marking packets by mac addr using tc filter u32 match?
Hi
Is there a way of marking packets by mac address instead of ip or ports
using a "tc filter u32 match"?
I read somewhere that I could use the offset -8 and -14 to grab the mac
addresses but if I use anything lower than -8, for example -9, I get an
error.
I''m modifying the wondershaper script to cap the download speed by mac
address.
Any sugestions?
2004 May 05
3
Simple HTB setup with tcng
Hello all,
I am trying to set up a simple htb based system, where packets with
source ip 10.0.0.1 should have their own class.
I plan to use tcng to set it up easier.
Is there something wrong in my tcng file ?
~/tcng$ cat htb
/*
*/
#include "fields.tc"
#include "ports.tc"
dev eth0 {
htb ( ) {
class ( rate 600kbps, ceil 600kbps )
{
2003 Sep 04
3
CBQ Rate
Hi everyone,
This is on a linux box, ingress (eth1) at 100Mb/s and egress (eth0) at
10Mb/s. The purpose is to test CBQ
Here is my script
-------------------------------------------------------------------
# Root qdisc
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 9Mbit \
avpkt 1000 cell 8
# Classes
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 9Mbit \
rate 5Mbit weight
2007 Mar 20
3
Divide bandwidth between 4 groups of ip with the same rate
Hello, I have begun to use the tc scripts since 2 weeks ago, so I am beginner. I am trying to divide my bandwidth in 4 independent ones. Each of these sub-bandwidths is assigned to 4 different groups of ip. Bandwidth sharing is allowed. I put a Linux with two Ethernet card between the router and the LAN. Eth1 is the card connected to the router and eth0 is the one connected to the LAN. My ISP
2007 Mar 15
3
Traffic Shaping over Satellite Internet
I''ve set up Traffic Shaping on a Linux Router.
Using HTB with SFQ, i''m trying to slow down
heavy downloading for 20 subscribers over
a 2048 kbit downlink. I''m classifying internet related
traffic using iptables marking.
bri0 is my local lan bridge, receiving egress traffic destined for subscribers.
tc qdisc add dev bri0 root handle 1: htb default 2
tc class add dev
2004 May 06
3
tcng ingress policing question
Hi all
I started playing with tcng to generate my tc rules, but I have some
difficulty implementing my rules...
The script below generates an error:
# Device eth0
tc qdisc add dev eth0 ingress
beginner.tc:2: don''t know how to build meter for this
The script is below, I changed the real IP numbers for XXs and YYs,
since it doesn''t really matter what they are. eth0 is the
2006 Feb 21
1
Shaping by IP''s
If in one time 3 IP adresses using internet. TC script:
DEV=eth0 # LAN
SERVER_IP=192.168.1.2 # eth0 ip address
tc qdisc add dev $DEV root handle 1: htb default 255
tc class add dev $DEV parent 1: classid 1:1 htb rate 384Kbit quantum
1500
tc class add dev $DEV parent 1:1 classid 1:20 htb rate 128Kbit ceil
384Kbit prio 0 quantum 1500
tc class add dev $DEV parent 1:1 classid 1:21 htb rate 128Kbit
2006 Jan 18
3
Download and upload independency
Hello everyone:
As it is known, when you limit uplink bandwidth it usually gets downlink
bandwidth to a lower value.
I just want to know what is the optimal configuration for eth1 and imq0
according to some variables of tc(HTB), txqueuelen, mtu, etc. to make
these packet flows less independent on an ethernet based network.
Thank you in advance.
-Diego
2005 Apr 22
1
Re: tc filter - based on iptables - MAC - MARK not working -altough marking on ip src, dst address works
Reading along the Net it seems that MAC marking is not
working with egress HTB (because ipables marks
packages based on --mac-source ). So my only choice is
using ingress or u32.
So this is how I did it:
I called bellow script add_shaping
DEV="eth0"
tc qdisc add dev $DEV root handle 1: htb default 20
tc class add dev $DEV parent 1: classid 1:1 htb rate
200kbps ceil 200kbps
tc class
2004 Jul 28
3
Re: Re: HTB 3.13 please help
//Just to not forget eth0 is WAN and eth1 is LAN . The box is NATing my lan.
I configured tcng to shape both download and upload
and i got connection loss again.
Maybe it is my script fault or it is something bad with packets marking .
this is how i mark outgoing packets
iptables -t mangle -A MYSHAPER-OUT -p tcp -s 192.168.1.23 -j MARK --set-mark
$ip
and this part of my script which is intented
2007 Jan 19
3
HTB? (NEWBIE)
Hi to all
I am studying HTB on LARTC how to. I realize a simple configuration on
router:
tc qdisc add dev eth0 root handle 1: htb default 30
tc class add dev eth0 parent 1: classid 1:1 htb rate 3mbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 2mbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 1mbit burst 15k
tc qdisc add dev eth0 parent 1:10 handle 10: sfq
2007 Mar 13
4
Re: Standalone Shaping
On a router, there is no need for and IMQ because there is always an
egress path.
For example:
Internet -> eth1 -> iptables -> routing -> ... -> egress qdisc ->
eth0 -> LAN
LAN -> eth0 -> iptables -> routing -> .... -> egress qdisc -> eth1
-> Internet
Local Process / Proxy -> routing -> iptables -> egress qdisc ->
eth1/eth0 ->
2006 Nov 20
2
Fwd: Traffic Shaping on a Transparent Bridge not working!
I''m trying to shape traffic on a Devil-Linux box.
This note was originally sent to their maillist,
because the LARTC list appears to have been down
for the past few days. My mailbox was just flooded
with a half dozen or so confirmation requests in response
to my repeated attempts to subscribe to this list.
---------- Forwarded message ----------
From: drew einhorn
2012 Oct 26
4
Can't replace a faulty disk of raid1
Hello,
I had a raid1 btrfs (540GB) on vanilla 3.6.3, a disk failed, and removed it at
power off, plugged in a new one, partitioned it (to 110GB, by error), and added
it to btrfs.
I tried to remove the missing device, and it said "Input/output error" after a
while. Next attempts simply gave "Invalid argument".
I repartitioned, rebooted the system, and made the partition grow:
2006 Apr 04
3
Another question (now about u32)
Hello all,
I am trying to match some conections using u32 but I tryed this:
[root@ns1 ~]# tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32
match ip src 0/0 match ip dst 0/0 match ip sport 80 0xffff flowid 1:10
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
[root@ns1 ~]#
I have this class at device eth1:
[root@ns1 ~]# tc class show dev eth1
class
2007 Jul 09
1
Help with traffic control (HTB ESFQ RED)
Hello, there''s a problem I''ve had for several months now, and I''ve never
been able to find an answer to it. I''ll try to explain as quick as possible:
I have a server that controlls my home network, it provides internet
to them also (NAT) and I would like to provide QoS by shaping traffic. I
have a p2p server here (running mldonkey), since only that
2004 May 09
3
prerouting does not effect filtering
I try to shape traffic using HTB and mark packets within iptables using
PREROUTING. But the filterrules seems to ignore the marks set with
PREROUTING
Only POSTROUTING marks are accepted.
First my configuration
I have a router connected to the internet via ADSL over interface ppp0.
eth0 is a tunnel to ppp0 and eth1 serves the LAN.
LAN is 192.168.57.0/24 on 10Mbit
ppp0 is 80.126.16.44 on
2006 Nov 15
7
Shaping incoming VoIP traffic fails
Hello,
I''m trying to get lossless VoIP traffic over my 3000k/500k ADSL line. Shaping
outgoing traffic is no problem: I set total ceil for outgiong device (ppp0)
to 450kbit and put VoIP into highest prio class. Even during full upload the
voice is clean on the other end.
Now I tried to get the same result for incoming data. I attached HTB to eth1
where the incoming voip traffic is