Problems with load balancing
I have 2 providers, each on a separate interface, and a LAN on the third interface. After I do the load balancing, only one line is used and the traffic gets through very hard. Also, a simple command, like iptables -t nat -L, takes very long to show the output. Does anyone know what could be wrong?
I list my outputs here:
taurus:~# ip route show all
192.168.2.0/26 dev eth0 proto kernel scope link src 192.168.2.22
86.55.39.128/25 dev eth1 proto kernel scope link src 86.55.39.223
10.0.0.0/24 dev eth2 proto kernel scope link src 10.0.0.1
default
nexthop via 192.168.2.1 dev eth0 weight 1
nexthop via 86.55.39.129 dev eth1 weight 1taurus:~# ip route show table RTC 192.168.2.0/26 dev eth0 scope link src 192.168.2.22 86.55.39.128/25 dev eth1 scope link 10.0.0.0/25 dev eth2 scope link 127.0.0.0/8 dev lo scope link default via 192.168.2.1 dev eth0
taurus:~# ip route show table EVO 192.168.2.0/26 dev eth0 scope link 86.55.39.128/25 dev eth1 scope link src 86.55.39.223 10.0.0.0/25 dev eth2 scope link 127.0.0.0/8 dev lo scope link default via 86.55.39.129 dev eth1
taurus:~# iptables -t nat -L Chain PREROUTING (policy ACCEPT) target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- 10.0.0.0/24 !10.0.0.0/24 to:10.0.0.1
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Hi!
I would guess it's a problem with your DNS relsolution. Try "route" and "route -n" and
check if there's a difference. "route -n" disables the DNS resolution.
André
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Hi!
Quoted 3 lines
I have tried. The route -n executes immediatly, while route is slow. What do
I have to do to solve this?
Try to change your DNS-Server. Edit the file /etc/resolv.conf, remove all "nameserver" lines and add one new nameserver. Try something like nameserver 192.58.128.30
Ask your provider for a DNS-Address and take this one. After saving the file, "route" should execute fast immediatly. Read "man resolv.conf"!
André
--- http://www.matuschek.org/ ---
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc