Re: Tux listen on different IP or Port

"Max Helmet" <[email protected]> Fri, 10 Feb 2006 09:30:53 +0100
Newsgroups gmane.network.tux
Message-ID <[email protected]>
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 o=
n
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 faste=
st
webserver around.

Regards,
Max

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

> -----Urspr=FCngliche Nachricht-----
> Von: [email protected] [mailto:[email protected]]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 <[email protected]> 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 T=
UX
> >
> > Please notice the capitals in "grep TUX"
> >
> > Max
> >
> > _______________________________________________
> > tux-list mailing list
> > [email protected]
> > 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: [email protected] SKYPE: alex.davies
>
> _______________________________________________
> tux-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/tux-list
>