Tux listen on different IP or Port

Max Helmet max at expires-2004.workforce.de
Fri Feb 10 08:30:53 UTC 2006


Hi Alex,

I'm not sure what causes your problem, however you could work around this
with iptables:

$ iptables -t nat -A PREROUTING -i eth0 -p tcp -d ! 83.223.121.93 --dport
80 -j REDIRECT --to-port 8080

This should redirect all incoming requests on port 80 to Apache running on
8080, except for the IP address 83.223.121.93 where they would get served by
TUX. Quick and dirty, I know, but at least you get started with the fastest
webserver around.

Regards,
Max

Reference:
http://www.netfilter.org/documentation/HOWTO//NAT-HOWTO-6.html#ss6.2

> -----Ursprüngliche Nachricht-----
> Von: tux-list-bounces at redhat.com [mailto:tux-list-bounces at redhat.com]Im
> Auftrag von Alex Davies
> Gesendet: Mittwoch, 8. Februar 2006 18:23
> An: TUX discussion list
> Betreff: Re: Tux listen on different IP or Port
>
>
> Dear Tristan,
>
> Tux runs just fine before the change on BOTH ips that are bound, but
> when I make the change to get it to sit on just the one it stops
> working on either... very odd!
>
> With best wishes,
>
> Alex
>
> On 08/02/06, Max Helmet <max at expires-2004.workforce.de> wrote:
> > Hi Alex,
> >
> > Looks as if TUX doesn't start on your machine. Are you sure
> your kernel has
> > TUX support built in?
> > $ ls /proc/sys/net/tux
> > 404_page                ftp_subdocroot          max_free_requests
> > ...
> > ftp_login_message       max_connect
> > $ lsmod
> > Module                  Size  Used by
> > tux                   216752  2
> > $ ps aux | grep TUX
> > root     18510  0.0  0.3  2140  780 pts/0    S    17:05   0:00
> [TUX date]
> > root     18512  0.0  0.3  2164  780 ?        S    17:05   0:00
> [TUX manager]
> > #-1      18513  0.0  0.3  2164  780 ?        S    17:05   0:00
> [TUX worker
> > 0]
> > ...
> > #-1      18577  0.0  0.3  2164  780 ?        S    17:05   0:00
> [TUX worker
> > 0]
> > root     18511  0.0  0.0     0    0 ?        SW   17:05   0:00
> [TUX logger]
> > root     18623  0.0  0.1  1464  468 pts/0    S    17:22   0:00 grep TUX
> >
> > Please notice the capitals in "grep TUX"
> >
> > Max
> >
> > _______________________________________________
> > 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
>
> _______________________________________________
> tux-list mailing list
> tux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/tux-list
>




More information about the tux-list mailing list