Multiple ISP connection balancing
Hi everybody!
I'm totally new to both linux and iptables.
I have multiple connections to the internet, and I want to unite them to get better summary bandwidth. I've searched the internet, and found that in recent past that was done with iptables by masquerading and packet balancing schemes like random and round-robin.
The problem is I cannot make neither of modules nth and random work. With every argument different from --help for random and nth I get "Invalid argument" for iptables 1.3.0 and "Unknown error" with a very large number for version 1.3.5. Other modules work just as well as they have to.
I've tried different versions both of POM and iptables, but that did not help. I also tried to compile kernel modules both statically and as modules, loading them all, but that didn't seem to help either.
And can anyone explain me what libraries in /usr/local/lib/iptables/ for?
I'm using kernel 2.6.17.6 from kernel.org with Fedora3 distributive.
Here comes my loaded modules:
nfnetlink 6936 0ipt_ULOG 8224 0ipt_TTL 2432 0ipt_ttl 2048 0ipt_TOS 2304 0ipt_tos 1792 0ipt_TCPMSS 4352 0ipt_SAME 2432 0ipt_REJECT 5376 0ipt_REDIRECT 2304 0ipt_recent 11404 0ipt_owner 2176 0ipt_nth 2464 0ipt_NETMAP 2176 0ipt_MASQUERADE 3456 0ipt_LOG 6784 0ipt_iprange 1920 0ipt_hashlimit 9224 0ipt_ECN 3200 0ipt_ecn 2432 0ipt_DSCP 2432 0ipt_dscp 1792 0ipt_ah 2048 0ipt_addrtype 2048 0iptable_raw 2176 0iptable_nat 7684 0iptable_mangle 3072 0ip_queue 10400 0ip_nat_tftp 1920 0ip_nat_pptp 6148 0ip_nat_irc 2816 0ip_nat_ftp 3584 0ip_nat_amanda 2432 0ip_nat 16692 10ipt_SAME, ipt_REDIRECT, ipt_NETMAP, ipt_MASQUERADE, iptable_nat, ip_nat_tftp, ip_nat_pptp, ip_nat_irc, ip_nat_ftp, ip_nat_amanda ip_conntrack_tftp 4500 1 ip_nat_tftpip_conntrack_pptp 10896 1 ip_nat_pptpip_conntrack_irc 6808 1 ip_nat_ircip_conntrack_ftp 7580 1 ip_nat_ftpip_conntrack_amanda 4744 1 ip_nat_amandaarpt_mangle 2816 0arptable_filter 2304 0arp_tables 11992 1 arptable_filteript_random 2176 0iptable_filter 3072 0ip_tables 13912 4iptable_raw, iptable_nat, iptable_mangle, iptable_filter x_tables 14212 28ipt_ULOG, ipt_TTL, ipt_ttl, ipt_TOS, ipt_tos, ipt_TCPMSS, ipt_SAME, ipt_REJECT, ipt_REDIRECT, ipt_recent, ipt_owner, ipt_nth, ipt_NETMAP, ipt_MASQUERADE, ipt_LOG, ipt_iprange, ipt_hashlimit, ipt_ECN, ipt_ecn, ipt_DSCP, ipt_dscp, ipt_ah, ipt_addrtype, iptable_nat, arpt_mangle, arp_tables, ipt_random, ip_tables
tun 11392 1ppp_deflate 6272 1zlib_deflate 21536 1 ppp_deflateppp_async 11392 1crc_ccitt 2176 1 ppp_asyncppp_generic 24724 6 ppp_deflate, ppp_async
slhc 7680 1 ppp_generic
autofs4 21636 2
rfcomm 37528 0
l2cap 24324 5 rfcomm
bluetooth 48612 4 rfcomm, l2cap
sunrpc 154916 1
vfat 13184 1
fat 52252 1 vfatnls_utf8 2176 3
ntfs 107508 3
video 14980 0
button 6544 0
nvidia 4549460 12uhci_hcd 23052 0ehci_hcd 30472 0i2c_viapro 8852 0i2c_core 21904 10
nvidia, i2c_viapro, b2c2_flexcop, mt352, mt312, bcm3510, stv0299, stv0297, nxt200x, lgdt330x
sk98lin 160224 0
8139too 26240 0
mii 5888 1 8139too
floppy 60524 0
ext3 134408 2
jbd 57876 1 ext3sata_via 8324 7
libata 70028 1 sata_viasd_mod 18320 8scsi_mod 98028 2 libata, sd_mod
I'll be very glad if you can guess the problem; and if patch-o-matic method has become obsolete, I'd like to here how the problem is solved nowadays.
Regards, Myxomop
From: "Myxomop" <[email protected]>
Quoted 3 lines
The problem is I cannot make neither of modules nth and random work.
This is a known problem because the nth and random kernel modules are not updated for newer kernel and so the maintainer has removed it from POM and the replacement for it hasn't been released yet.
This url seems to have an "interim" solution, but I couldn't get it compiled, probably require some minor tweaking in the Makefile.
Quoted 4 lines
http://freshmeat.net/p/jen_kernel/
look for random in the .tar.bz2
Cheers.