Sebastian Raring wrote:
> Hi!
> 
> I want to use a program (some sort of webserver), that only listen on
> localhost:2048, on the LAN.
> So I installed Shorewall (Debian Etch) and set a rule:
> DNAT:info loc           $FW:127.0.0.1:2048      tcp     80
> 
> But I cannot reach my program.
> 
> In order to debug this problem, I used nc:
> nc -l -p 2048 -s 127.0.0.1
> 
> 
> But only this combination is ok:
> DNAT:info loc        $FW:192.168.2.106:2048    tcp    80
> nc -l -p 2048
> 
> 
> It seems impossible to set an portforwarding to localhost.

Try:

        REDIRECT   loc      2048     tcp      80

-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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to