Hi.
I don't understand about your answer "Setup LVS-tun with httpd on the
squid box and does LVS work to it?". I've configured only the dev tunl0
in the squid box. My ifconfig -a in the squid box is
--------------
Squid box
oldprox3:/usr/local/squid/etc# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:05:0F:D3:38
inet addr:172.16.2.19 Bcast:172.16.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:65819 errors:0 dropped:0 overruns:0 frame:0
TX packets:64249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3422263 (3.2 MiB) TX bytes:8138124 (7.7 MiB)
Interrupt:9 Base address:0x3400 Memory:c892c000-c892cc40
eth1 Link encap:Ethernet HWaddr 00:A0:C9:B5:A4:A0
inet addr:195.53.31.20 Bcast:195.53.31.23
Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:65718 errors:0 dropped:0 overruns:0 frame:0
TX packets:64223 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:5918444 (5.6 MiB) TX bytes:7979769 (7.6 MiB)
Interrupt:9 Base address:0x3800 Memory:c892e000-c892ec40
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:180 errors:0 dropped:0 overruns:0 frame:0
TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20142 (19.6 KiB) TX bytes:20142 (19.6 KiB)
tunl0 Link encap:IPIP Tunnel HWaddr
inet addr:142.10.1.93 Mask:255.255.255.255
UP RUNNING NOARP MTU:1480 Metric:1
RX packets:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4920 (4.8 KiB) TX bytes:0 (0.0 b)
tunl0:0 Link encap:IPIP Tunnel HWaddr
inet addr:142.10.1.94 Mask:255.255.255.255
UP RUNNING NOARP MTU:1480 Metric:1
------------------------------
The address source is 142.10.0.245. The target (IP virtual) is
142.10.0.93 (where squid it's). I'm sorry, so this organization use
public address for internal use and I've got two squid lines (the first
log and the second nat y cache). I put here the tcpdump results of one
lvs-node and of one server with squid cache.
-----------------------------------
Node0 box.
tcpdump: listening on eth0:0
08:18:38.698712 142.10.0.245.33312 > 142.10.1.93.8080: S
2922199777:2922199777(0) win 5840 <mss 1460,sackOK,timestamp 6737970
0,nop,wscale 0> (DF)
08:18:41.690506 142.10.0.245.33312 > 142.10.1.93.8080: S
2922199777:2922199777(0) win 5840 <mss 1460,sackOK,timestamp 6738270
0,nop,wscale 0> (DF)
08:18:47.690542 142.10.0.245.33312 > 142.10.1.93.8080: S
2922199777:2922199777(0) win 5840 <mss 1460,sackOK,timestamp 6738870
0,nop,wscale 0> (DF)
-----------------------------------------------------------------------
Squid box
oldprox3:/usr/local/squid/etc# tcpdump -n port 8080 -i tunl0
tcpdump: listening on tunl0
08:20:44.134919 142.10.0.245.33312 > 142.10.1.93.8080: S
2922199777:2922199777(0) win 5840 <mss 1460,sackOK,timestamp 6737970
0,nop,wscale 0> (DF)
08:20:47.126799 142.10.0.245.33312 > 142.10.1.93.8080: S
2922199777:2922199777(0) win 5840 <mss 1460,sackOK,timestamp 6738270
0,nop,wscale 0> (DF)
08:20:53.127056 142.10.0.245.33312 > 142.10.1.93.8080: S
2922199777:2922199777(0) win 5840 <mss 1460,sackOK,timestamp 6738870
0,nop,wscale 0> (DF)
08:21:05.127541 142.10.0.245.33312 > 142.10.1.93.8080: S
2922199777:2922199777(0) win 5840 <mss 1460,sackOK,timestamp 6740070
0,nop,wscale 0> (DF)
I've put in squid.conf http_conf 142.10.1.93:8080
thank you in advance.
-----------------------------------------------------------
> I've mount a lvs-tunneling. The end of lvs-tunneling it's a
> squid. I see
> traffic about tunl0, so squid don't work. I think that squid
> don't ear.
> My squid.conf use 8080 port in http_port.The access.log don't write
> anything.
What is the traffic you see? Setup LVS-tun with httpd on the squid
machine
and does LVS work to it? Please post tcpdumps of what you see. Also
check
the archives on LVS tunnel and see if some of the troubleshooting
techniques
help. There were some VERY detailed "howtos".
P
|