Actually I got a web server inside of my network, I got a 1760 router with 2 ADSL connection. The web is reachable from internet through the router's public ip address that we rent from the ISP (We got a public domain name too with this IP). What I want to do in my router is that any packet destinated for the public ip address (WAN interface) of my router be switched automatically to the web server ip address (private ip address) without crossing the WAN connection to make the petition to the public dns, I don't know if this can be done using PBR or any other method.
this can be made on different modes and at a different level:
your FQDN www.domainname.xx can be solved to private ip address of the server: traffic stays on the inside interface no NAT is triggered.
complex NAT and/or PBR:
users solve the www.domainname.xx in the public address of WAN interface or the public address of server as used in the outside world.
>> that any packets arriving from my routers' internal network destinated to the routers wan interface be sent back to the web server in the internal network,
it is complex, because we need to avoid that user ip address is natted too!
I don't want to say that it cannot be done, but it is complex.
a PBR rule applied on the inside interface could redirect the traffic to the internal server but it cannot change the destination address to the effective private ip address of the server.
I see a section on route-maps support for outside to inside
but there are restrictions a dedicated public IP address has to be associated to the internal server, PAT is not supported.
I see first solution at DNS level as the better one, but I understand it could be handy to do what you would like to achieve.
Hope to help