I forgot this simple true:
Code: Select all
That's because only root can bind to ports < 1024.Thanks .. to me and internet)
[upd]
Ran okay, but can't connect to 6666 via browser.
Connected via telnet and got:
Code: Select all
Trying 192.168.1.3...
Connected to k.
Escape character is '^]'.
GET
HTTP/1.1 400 Bad Request
Content-Type: text/html
Connection: close
Date: Tue, 04 Jan 2011 09:30:09 GMT
Content-Length: 134
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Method Not Implemented</H1>
Invalid method in request<P>
</BODY></HTML>
Connection closed by foreign host.
Code: Select all
17:14:36.897324 IP shell.51672 > k.6666: Flags [F.], seq 1, ack 1, win 92, options [nop,nop,TS val 15048642 ecr 3764662816], length 0
17:14:36.897423 IP k.6666 > shell.51672: Flags [.], ack 2, win 8325, options [nop,nop,TS val 3764667147 ecr 15048642], length 0
changed back to default port and connected normally.
weird, but I'm too tired to check and fix.