[LARTC] HTB tc

2004-07-22 Thread Antonin Karasek
Hi, I'm trying to make run a simple shaping *through HTB*. I have compiled a new kernel 2.4.21. First command from http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm said: # tc qdisc add dev eth0 root handle 1: htb default 12 RTNETLINK answers: Invalid argument I tryed both standard tc from

Re: [LARTC] Problems routing mail to particular interface

2004-07-22 Thread George Alexandru Dragoi
Is the 192.168.1.2 an ip on the router? If yes, you'll have to mark in OUTPUT, not PREROUTING, also, after you set up the rules and routes, did you an ip route flush cache ? I hope these works On Wed, 21 Jul 2004 20:02:32 -0700, Jens [EMAIL PROTECTED] wrote: I have a particular problem that has

RE: [LARTC] TC Hashing Filters

2004-07-22 Thread Adam Towarnyckyj
Dear list, After much code crunching and beating my head against the wall (literally), I discovered the faulty code. Thanks mostly to gypsy who played a huge role in helping me discover the problem. My tc filter line had an error in it which completely baffles me because it worked up until

Re: [LARTC] Problems routing mail to particular interface

2004-07-22 Thread George Alexandru Dragoi
A good think would be to give a full description to your network setup, interfaces and so on, maybe there should be stuff like -s 192... -d ! 192../24 On Thu, 22 Jul 2004 12:17:27 -0700, Jens [EMAIL PROTECTED] wrote: 192.168.1.2 is the mail server which goes to 192.168.1.1 which is the firewall

Re: [LARTC] HTB tc

2004-07-22 Thread George Alexandru Dragoi
OT: Dudes, why i have to reedit To field and delete CC field, gmail see this as spam Now, make sure you compiled the kernel with htb, latest stable kernel is 2.4.26 or 2.6.7 On Thu, 22 Jul 2004 19:58:40 +0200, Antonin Karasek [EMAIL PROTECTED] wrote: Hi, I'm trying to make run a simple

Re: [LARTC] Problems routing mail to particular interface

2004-07-22 Thread George Alexandru Dragoi
Hehe, maybe it is this: iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE On Thu, 22 Jul 2004 16:16:21 -0700, Jens [EMAIL PROTECTED] wrote: On Thursday 22 July 2004 14:17, George Alexandru Dragoi wrote: A good think would be to give a full description to your network setup, interfaces and

Re: [LARTC] HTB tc

2004-07-22 Thread mjoachimiak
Check if you have HTB support in your kernel. it must be in kernel/net/sched - Original Message - From: Antonin Karasek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 22, 2004 6:58 PM Subject: [LARTC] HTB tc Hi, I'm trying to make run a simple shaping *through HTB*. I

Re: [LARTC] TC Hashing Filters

2004-07-22 Thread mjoachimiak
1.I have commands to make filters like your old but have no this: ht 2:$table1: ht 3:$table2: what is it? 2. What was your problem? I'm new to this list and dont have your previous email. Old command: tc filter add dev $dev protocol ip parent 12: u32 ht 2:$table1: ht 3:$table2: match ip dst

[LARTC] marking and shaping outbound passive ftp traffic

2004-07-22 Thread nix4me
Will the following rules work to mark and shape OUTBOUND ftp speed (passive ftp ports 5-6) on my linux server? I want to be able to run these commands on the actual computer that is running the ftp server. iptables -t mangle -N MYSHAPER-OUT iptables -t mangle -I POSTROUTING -o eth0 -j

Re: [LARTC] Problems routing mail to particular interface

2004-07-22 Thread George Alexandru Dragoi
A good think would be to give a full description to your network setup, interfaces and so on, maybe there should be stuff like -s 192... -d ! 192../24 On Thu, 22 Jul 2004 12:17:27 -0700, Jens [EMAIL PROTECTED] wrote: 192.168.1.2 is the mail server which goes to 192.168.1.1 which is the firewall

Re: [LARTC] Problems routing mail to particular interface

2004-07-22 Thread George Alexandru Dragoi
I think there must be an SNAT/MASQUERADE for packets going out your router from DMZ Try also following thigs: install ROUTE extension from POM iptables -t mangle -A POSTROUTING -s 192.168.1.2 -p tcp --dport 25 -d ! 192.168.0.0/16 -j ROUTE --oif eth1 iptables -t nat -A POSTROUTING -o eth1 -j