Hi,

This is how it should work:

/etc/shorewall/rules
DNAT net loc:1.2.3.4 tcp 81 80

This line in rules DNATs www (port 80) traffic from internet to internal
machine 1.2.3.4 (port 81). After protocol (tcp) there is two parameters
destination port and source port. I'm using shorewall and ubuntu server.

-Ville-


> hi,
>
> I want to redirect all data from port 80 to my server. In iptables it
> works, but how can I do in shorewall:
>
> iptables -t nat -I PREROUTING -s 192.168.1.2 -p tcp --port 80 -j DNAT
> --to 1.2.3.4:81
>
> I tried lot of DNAT code from the faq, but noones work.
>
> thanks.
>
> -------------------------------------------------------------------------
> 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
>



-------------------------------------------------------------------------
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