Stéphane Gully wrote:
> Hello,
> 
> I'm new to this list so please forgive me if my question has been
> already asked. I searched in the archives and the FAQ (especially here
> http://www.shorewall.net/Shorewall_and_Aliased_Interfaces.html#DNAT ),
> but I found nothing.
> 
> My problem is simple:
> - I have a single public ip on my server (for example: 87.145.23.55)
> - I have an apache daemon run by a non-root user which is listening on
> 40240 port
> I would like to forward all the traffic from the port 80 to the 40240 port.
> 
> I tried this rule but nothing is forwarded :
> DNAT       net     net:87.145.23.55  tcp  40240  80  87.145.23.55
> 
> Do you think I can do that and how ? (I'm not a network expert...)

You just need this rule:

REDIRECT        net     40240   tcp     80      -       87.145.23.55

-Tom
-- 
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to