hi,
The complete log and the procedure is described in the
attached file.
Thanks and Regards
Kalyan
--- Denis Vlasenko <[EMAIL PROTECTED]> wrote:
> On Thursday 10 May 2007 07:39, kalyanatejaswi
> balabhadrapatruni wrote:
> > hi all,
> > I am using busybox-1.2.1 and when i run httpd in
> > satndalone mode all works well. But when i try to
> > start httpd through inetd, i can not connect to
> the
> > web server.
> > I added this entry in inetd.conf
> >
> > http stream tcp nowait root
> /usr/sbin/httpd
> > httpd -h /usr/web
> >
> > netstat shows the service is started but nothing
> > happens afterwards
>
> Please show exact netstat output.
>
> > Any pointers is appreciated
>
> Start by describing what happens when you try to
> connect
> to the machine using http.
>
> tcpdump of this attempt will be interesting to see
> too.
> (should be trivial to obtain it from the same
> machine
> where you connect from).
> --
> vda
>
Office firewalls, cyber cafes, college labs, don't allow you to download
CHAT? Click here: http://in.messenger.yahoo.com/webmessengerpromo.phpHost:10.1.1.57
Target:10.1.1.200
On the target:
#inetd
# cat /etc/inetd.conf
telnet stream tcp nowait root /usr/sbin/telnetd telnetd
ftp stream tcp nowait root /usr/sbin/ftpd ftpd
http stream tcp nowait root /usr/sbin/httpd httpd -h
/usr/web
# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
On the host:
# lynx http://10.1.1.200
Looking up 10.1.1.200
10.1.1.200
Making HTTP connection to 10.1.1.200
Sending HTTP request.
HTTP request sent; waiting for response.
Retrying as HTTP0 request.
Looking up 10.1.1.200
10.1.1.200
Making HTTP connection to 10.1.1.200
Sending HTTP request.
HTTP request sent; waiting for response.
lynx: Can't access startfile http://10.1.1.200/
#tcpdump -i eth1 |grep 10.1.1.200
tcpdump: listening on eth1
11:44:09.833170 10.1.1.57.34036 > 10.1.1.200.http: S 1999810333:1999810333(0)
win 5840 <mss 1460,sackOK,timestamp 519221721 0,nop,wscale 0> (DF)
11:44:09.833861 10.1.1.200.http > 10.1.1.57.34036: S 1570857284:1570857284(0)
ack 1999810334 win 5792 <mss 1460,sackOK,timestamp 3421 519221721,nop,wscale 1>
(DF)
11:44:09.833886 10.1.1.57.34036 > 10.1.1.200.http: . ack 1 win 5840
<nop,nop,timestamp 519221721 3421> (DF)
11:44:09.834732 10.1.1.57.34036 > 10.1.1.200.http: P 1:1197(1196) ack 1 win
5840 <nop,nop,timestamp 519221721 3421> (DF)
11:44:09.836480 10.1.1.200.http > 10.1.1.57.34036: . ack 1197 win 4344
<nop,nop,timestamp 3421 519221721> (DF)
11:44:09.864308 10.1.1.200.http > 10.1.1.57.34036: P 1:167(166) ack 1197 win
4344 <nop,nop,timestamp 3428 519221721> (DF)
11:44:09.864320 10.1.1.57.34036 > 10.1.1.200.http: . ack 167 win 5840
<nop,nop,timestamp 519221724 3428> (DF)
11:44:09.864991 10.1.1.200.http > 10.1.1.57.34036: P 167:188(21) ack 1197 win
4344 <nop,nop,timestamp 3428 519221724> (DF)
11:44:09.865013 10.1.1.57.34036 > 10.1.1.200.http: . ack 188 win 5840
<nop,nop,timestamp 519221724 3428> (DF)
11:44:09.865691 10.1.1.200.http > 10.1.1.57.34036: F 188:188(0) ack 1197 win
4344 <nop,nop,timestamp 3429 519221724> (DF)
11:44:09.866021 10.1.1.57.34036 > 10.1.1.200.http: F 1197:1197(0) ack 189 win
5840 <nop,nop,timestamp 519221724 3429> (DF)
11:44:09.866568 10.1.1.200.http > 10.1.1.57.34036: . ack 1198 win 4344
<nop,nop,timestamp 3429 519221724> (DF)
11:47:33.126310 10.1.1.57.34037 > 10.1.1.200.http: S 2223281778:2223281778(0)
win 5840 <mss 1460,sackOK,timestamp 519242050 0,nop,wscale 0> (DF)
11:47:33.127004 10.1.1.200.http > 10.1.1.57.34037: S 1780666212:1780666212(0)
ack 2223281779 win 5792 <mss 1460,sackOK,timestamp 54241 519242050,nop,wscale
1> (DF)
11:47:33.127026 10.1.1.57.34037 > 10.1.1.200.http: . ack 1 win 5840
<nop,nop,timestamp 519242050 54241> (DF)
11:47:33.127545 10.1.1.57.34037 > 10.1.1.200.http: P 1:1197(1196) ack 1 win
5840 <nop,nop,timestamp 519242050 54241> (DF)
11:47:33.129265 10.1.1.200.http > 10.1.1.57.34037: . ack 1197 win 4344
<nop,nop,timestamp 54242 519242050> (DF)
11:47:33.160465 10.1.1.200.http > 10.1.1.57.34037: P 1:6(5) ack 1197 win 4344
<nop,nop,timestamp 54250 519242050> (DF)
11:47:33.160475 10.1.1.57.34037 > 10.1.1.200.http: . ack 6 win 5840
<nop,nop,timestamp 519242054 54250> (DF)
11:47:33.160986 10.1.1.200.http > 10.1.1.57.34037: P 6:8(2) ack 1197 win 4344
<nop,nop,timestamp 54250 519242054> (DF)
11:47:33.160994 10.1.1.57.34037 > 10.1.1.200.http: . ack 8 win 5840
<nop,nop,timestamp 519242054 54250> (DF)
11:47:33.161599 10.1.1.200.http > 10.1.1.57.34037: P 8:12(4) ack 1197 win 4344
<nop,nop,timestamp 54250 519242054> (DF)
11:47:33.161607 10.1.1.57.34037 > 10.1.1.200.http: . ack 12 win 5840
<nop,nop,timestamp 519242054 54250> (DF)
11:47:33.162381 10.1.1.200.http > 10.1.1.57.34037: P 12:14(2) ack 1197 win 4344
<nop,nop,timestamp 54250 519242054> (DF)
11:47:33.162389 10.1.1.57.34037 > 10.1.1.200.http: . ack 14 win 5840
<nop,nop,timestamp 519242054 54250> (DF)
11:47:33.162901 10.1.1.200.http > 10.1.1.57.34037: P 14:36(22) ack 1197 win
4344 <nop,nop,timestamp 54250 519242054> (DF)
11:47:33.162909 10.1.1.57.34037 > 10.1.1.200.http: . ack 36 win 5840
<nop,nop,timestamp 519242054 54250> (DF)
11:47:33.163352 10.1.1.200.http > 10.1.1.57.34037: P 36:37(1) ack 1197 win 4344
<nop,nop,timestamp 54250 519242054> (DF)
11:47:33.163472 10.1.1.57.34037 > 10.1.1.200.http: . ack 37 win 5840
<nop,nop,timestamp 519242054 54250> (DF)
11:47:33.164903 10.1.1.200.http > 10.1.1.57.34037: R 37:37(0) ack 1197 win 4344
<nop,nop,timestamp 54251 519242054> (DF)
11:47:33.165688 10.1.1.57.34038 > 10.1.1.200.http: S 2223785265:2223785265(0)
win 5840 <mss 1460,sackOK,timestamp 519242054 0,nop,wscale 0> (DF)
11:47:33.166300 10.1.1.200.http > 10.1.1.57.34038: S 1768581698:1768581698(0)
ack 2223785266 win 5792 <mss 1460,sackOK,timestamp 54251 519242054,nop,wscale
1> (DF)
11:47:33.166313 10.1.1.57.34038 > 10.1.1.200.http: . ack 1 win 5840
<nop,nop,timestamp 519242054 54251> (DF)
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox