You need proxy redirection http://shorewall.net/Shorewall_Squid_Usage.html
However the use cases there do not cover what you want exactly. http://www.linux.com/howtos/TransparentProxy-6.shtml Transparent proxy to a remote box (first example), does what you want. Basically, a) DNAT (to push the request to your external box) + b) Connection tracking (to remember the connection)+ c) SNAT (to make your external box reply to the correct address). Hope that helps, Prasanna. On 9/25/06, Kiss Gábor <[EMAIL PROTECTED]> wrote: > What you write is a port forward, but I want to do opposite thing > If the user write the shorewall.net url to the browser, I want to > redirect to my homepage. So the traffic line: 192.168.1.2 -> 1.2.3.4:81 > (this is a public ip on the internet) > > Ville Virtanen írta: > > 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
