/ip firewall nat add action=masquerade chain=srcnat out-interface=ether1 add action=masquerade chain=srcnat dst-address=10.1.1.196 dst-port=80 \ protocol=tcp src-address=10.1.1.0/24 add action=dst-nat chain=dstnat dst-address=192.168.1.211 dst-port=80 \ protocol=tcp to-addresses=10.1.1.196 to-ports=80 add action=dst-nat chain=dstnat dst-address=192.168.1.211 dst-port=81 \ protocol=tcp to-addresses=10.1.1.197 to-ports=80 /interface bridge add arp=proxy-arp l2mtu=1598 name=bridge1 /interface bridge port add bridge=bridge1 interface=ether2 add bridge=bridge1 interface=ether3 add bridge=bridge1 interface=ether4 add bridge=bridge1 interface=ether5 add bridge=bridge1 interface=wlan1 /interface bridge settings set use-ip-firewall=yes use-ip-firewall-for-vlan=ye
Where are you browsing from, the client computer in your drawing?so tell me how to add static DNS entry that redirects me from port 81 to port 80?
I want to put address http://<my_domain>:81 in my web browser and get connection to server2 on port 80 (10.1.1.196:80)
Okey, I'm trying to understand your scenario.yes, client computer connected to the switch
Can you please answer if you browse to the same domain with different port numbers, or if you have two different domains?I want to put address http://<my_domain>:81 in my web browser and get connection to server2 on port 80 (10.1.1.196:80)
Another time I want to put address http://<my_domain>:80 and get connection to server1 on port 80 (10.1.1.197:80)
Do you think that this little detail was quite irrelevant and barely worth mentioning in the first place? This little piece of information changes everything, right now I do not have any solution for you.One domain, differend port numbers
Awesome, I was just about to update my post about how I can only get the wireless interface to hairpin nat if ethernet ports are switched in a bridge.
- What's new in 6.7rc1 (2013-Nov-08 15:54):
*) fixed hairpin nat on bridge with use-ip-firewall=yes;
yes, doesn't help.On v6 setup, have you tried disabling Fast Path under /ip settings?