If there are multiple ip's on the box:

DNAT net loc:10.0.0.248 tcp 80 - 93.1.1.1
otherwise
DNAT net loc:10.0.0.248 tcp 80
would suffice.
ACCEPT is not needed as DNAT is an implicit accept :)

You are now DNATting packets with source IP/port 93.1.1.1:82 and destination 
port 80 to 10.0.0.248:80

Regards,
Erik


Michael Bernhard Arp Sørensen schreef:
> Hi there.
> 
> This should be easy, but not for me:
> 
> I want connections on my external IP and port: 93.1.1.1:82
> <http://93.1.1.1:82> to be forwardet to 10.0.0.248:80
> <http://10.0.0.248:80>. Why isn't that obvious? I have this in rules:
> 
> ACCEPT          net                     loc:10.0.0.248
> <http://10.0.0.248>        tcp     80
> DNAT            net:93.1.1.1 <http://93.1.1.1>            loc:10.0.0.248
> <http://10.0.0.248>        tcp     80      82
> 
> Thanks in advance.
> 
> -- 
> 
> Med venlig hilsen/Kind regards
> 
> Michael B. Arp Sørensen
> Programmer / BOFH
> 
> "Ride out and meet them."
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Shorewall-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/shorewall-users



Erik Versaevel

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to