Hi, I need a rule that redirect a specified host (like 10.1.0.100 in the example) in my LAN to a webserver also in the LAN when the host try to go to a specified pool of public ip (y.y.y.y), but I don’t want to use the RB as DNS server, so I tried the following way but it doesn’t work.
I tried with this solution but it doesn’t work, there are no forwarding (the 192.168.0.100 is the webserver and the .64 is the host that have to be forwarded there).
This is my mangle, if I edit the first RULE and delete the dst-address-list=local all is ok, but the load balacing doesn’t work anymore.
0 ;;; Accept local to local
chain=prerouting action=accept src-address-list=local dst-address-list=local
1 chain=prerouting action=accept src-address-list=local dst-address=x.x.x.x/21 //(pool of the 2 public IPs)
2 ;;; FROM HERE PCC
chain=input action=mark-connection new-connection-mark=ether1_conn passthrough=yes in-interface=ether1 - WAN 1 connection-mark=no-mark
3 chain=input action=mark-connection new-connection-mark=ether2_conn passthrough=yes in-interface=ether2 - WAN 2 connection-mark=no-mark