[LARTC] imq config
Dear all, I know this is not imq mailing list. But many of the users over here have done exactly what i want. Requirement:- I want to tight bound eth1 for 100 kbps but after i want to create many classes of 64 kbps or 50 kbps and others. But the total sum of classes is more than 100 kbps so my eth1 is not restrciting total bandwidth at 100kbps. According to search on google imq is the solution. So any body over here have done this type of configuration. if any plz give me some little examples. I have already patched and compiled the imq and kernel. Now need to configure imq. Any help ??? Regards, -- Joel N.Solanki Network Administrator Phone No: 0265-550001/2/3/4/5 Ext: 211/212 Digtial 2 Virtual Internet Service Provider. http://www.packetraptor.com/ http://www.d2visp.com/ Gujarat (India) ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Can I do this?
Hello, LARTC! I've been having troubles with load balance with ip + fwmark. I was wondering if these points are mandatory for this scheme to work: 1. Is there any problem if the linux gateway has a default gateway? Do I have to remove it? 2. In the scenario with 4 NICs, one routing table each, and another routing table doing load balance, Do the tables that imply routes that are being used by the load balance routing table have to be removed? p.e. : echo 255 local > /etc/iproute2/rt_tables echo 254 main >> /etc/iproute2/rt_tables echo 253 default >> /etc/iproute2/rt_tables echo 0unspec >> /etc/iproute2/rt_tables echo 200 balanceo2 >> /etc/iproute2/rt_tables echo 201 cable >> /etc/iproute2/rt_tables echo 202 cable2 >> /etc/iproute2/rt_tables ip route add default proto static via $GW dev eth0 src $IP1 table cable ip route add default proto static via $GW2 dev eth1 src $IP2 table cable2 ip route add table balanceo2 default proto static \ nexthop via $GW dev eth0 weight 1 \ nexthop via $GW2 dev eth1 weight 1 \ 3. A final aclaration, the use of every link at the same time has been achieved using routing tables cable and cable2 and packet marking. Thanks. ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] LAPTOP - connected to the internet via ethernet and *wavelan* - problems with the source address
Hello, I have a laptop with two network interfaces: eth0 (LAN) and eth1 (WAVELAN). Now I am looking for a way to route ssh and icpm packages via the wavelan interface and the rest over the LAN interface. My problem is now that every applications binds eth0 interface as default (which results in source addr 192.168.0.2). What I did is using SNAT to change source-address to 192.168.1.2 for packages leaving from eth1. when telling the application to bind the interface explicit it is working without the SNAT: ping -I eth1 !! I want to know if there is an other (maybe better) way to obtain the !! !! same.!! My current setup is: My Interfaces: eth0: 192.168.0.2/24 gw: 192.168.0.1 eth1: 192.168.1.2/24 gw: 192.168.1.1 My setup so far: iptables -t mangle -F iptables -t nat -F ip route add 192.168.1.0/24 dev eth1 src 192.168.1.2 table wavelan ip route add default via 192.168.1.1 table wavelan ip rule add fwmark 1 table wavelan iptables -t mangle -A OUTPUT -p icmp -j MARK --set-mark 1 iptables -t mangle -A OUTPUT -p tcp --destination-port 22 -j MARK --set-mark 1 # FIXME tg iptables -t nat -A POSTROUTING -o eth1 -s 192.168.0.2/32 -j MASQUERADE ip route add default scope local nexthop via 192.168.0.1 nexthop via 192.168.1.1 Honestly, Thomas ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Re: LAPTOP - connected to the internet via ethernet and *wavelan* - problems with the source address
Hello again, * Thomas Glanzmann <[EMAIL PROTECTED]> [040908 20:21]: > ip route add default scope local nexthop via 192.168.0.1 nexthop via 192.168.1.1 ~~~ -> This is of course bullshit just kick out the two words. Honestly, Thomas ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] tcng and scheduling ssh
On 07/09/04 Michael P. Soulier did say: > #include "fields.tc" > #include "ports.tc" > > dev "eth0" { > egress { > // Voice traffic > class (<$voice>) > if udp_dport >= 2 && udp_dport <= 23000; > // SSH connections > class (<$interactive>) > if tcp_dport == PORT_SSH; > // Everything else > class (<$other>) > if 1; > > prio { > $voice = class { fifo; } > $interactive = class { fifo; } > $other = class { fifo; } > } > } > } Scratch that. This configuration seems to work fine on egress. PEBKAC. Mike -- Michael P. Soulier <[EMAIL PROTECTED]>, 613-592-2122 x2522 6000/6010/60* Development, Mitel Networks Corporation "...the word HACK is used as a verb to indicate a massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to Unix ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] HTM Problem Solved
I found it all out.. thanks to James Jones' example. Thank you mate, appreciated, though i still did like to know a bit more about your "bug" problem. HTB and MARKs works perfectly, URL was: http://www.geocities.com/jame_sj - Rune Johannesen ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/