Tux listen on different IP or Port
Alex Davies
daviesalex at gmail.com
Wed Feb 8 16:25:07 UTC 2006
Dear Max,
Many thanks for your help.
I don't get the same effect - now it just does not bind to *any* IP and does
not produce any logs:
[root at trust1 log]# service tux stop
Stopping tux:
[root at trust1 log]# ps aux | grep tux
root 6617 0.0 0.0 5396 656 pts/0 S+ 16:21 0:00 grep tux
[root at trust1 log]# echo "http://83.223.121.93:80" > /proc/net/tux/0/listen/0
[root at trust1 log]# service tux start
Starting tux: [ OK ]
[root at trust1 log]# lynx http://83.223.121.93:80
Exiting via interrupt: 2 (did not work)
[root at trust1 log]# tail /proc/net/tux/0/listen/0
http://83.223.121.93:80
My netstat shows a very different output too:
[root at trust1 log]# netstat -lt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 *:835 *:*
LISTEN
tcp 0 0 *:sunrpc *:*
LISTEN
tcp 0 0 *:10000 *:*
LISTEN
tcp 0 0 *:ftp *:*
LISTEN
tcp 0 0 *:ipp *:*
LISTEN
tcp 0 0 localhost.localdomain:smtp *:*
LISTEN
tcp 0 0 *:ssh *:*
LISTEN
[root at trust1 log]#
Many thanks for your continued help on this!
Alex
On 08/02/06, Max Helmet <max at expires-2004.workforce.de> wrote:
> Hi Alex,
>
> You probably altered /proc/net/tux/0/listen/0 while TUX was running. I
think
> TUX needs to be stopped when you alter the file.
>
> I just tried the following, and it worked on my end:
>
> $ /etc/init.d/tux stop
> $ echo "http://192.168.0.198:8080" > /proc/net/tux/0/listen/0
> $ /etc/init.d/tux start
> $ netstat -lt
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address Foreign Address State
> tcp 0 0 192.168.0.198:webcache *:* LISTEN
>
> Regards,
> Maximilian
>
> > Dear Max,
> >
> > I want to run Tux on one IP to serve up soley static content (images
> > and so on). I am under the impression that this will give me greater
> > performance than thttpd.
> >
> > I want to run Apache on another IP to server up PHP websites.
> >
> > echo "http://x.x.x.x:80" > /proc/net/tux/0/listen/0
> >
> > Indeed changes that file, but when I restart tux it is still listening
> > on all IP addresses bound to that server!
> >
> > If I change the port it just ignores it and remains bound to port 80.
> >
> > With many thanks,
> >
> > Alex
>
> _______________________________________________
> tux-list mailing list
> tux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/tux-list
>
--
Alex Davies // http://www.davz.net
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender immediately by e-mail and delete this e-mail permanently.
Contact me - MSN: a_davs at hotmail.com SKYPE: alex.davies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/tux-list/attachments/20060208/5aeaa42a/attachment.htm>
More information about the tux-list
mailing list