Hi everyone ![]()
after I had a long fight with the hairpin NAT rule, I just updated to version 6.7rc1. On my first try after that the hairpin NAT still didn’t work.
Then I noticed that every of dst-nat rules has the “in-interface” set to “ether1”, whats my WAN interface. As in the wiki described, I removed “ether1” from the dst-nat rules and then the hairpin NAT seemed to work. But later I had to realize that ALL port-80-requests from inside the LAN are going to my internal webserver. Surfing the web is now not possible any more. ![]()
I found only one thread related to this problem, but the solution doesn’t fix it for me: http://forum.mikrotik.com/t/port-forward-on-port-80-http/15175/1
I’m on a cable modem, the MT gets a public IP via DHCP on ether1; ether2 and wlan0 are bridged to “LAN-WLAN-Bridge”.
NAT:
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; HTTP
chain=dstnat action=dst-nat to-addresses=192.168.10.4 to-ports=80
protocol=tcp dst-port=80
1 ;;; IMAP
chain=dstnat action=dst-nat to-addresses=192.168.10.4 to-ports=143
protocol=tcp dst-port=143
2 chain=dstnat action=dst-nat to-addresses=192.168.10.4 to-ports=993
protocol=tcp dst-port=993
3 ;;; SMTP
chain=dstnat action=dst-nat to-addresses=192.168.10.4 to-ports=25
protocol=tcp dst-port=25
4 chain=dstnat action=dst-nat to-addresses=192.168.10.4 to-ports=587
protocol=tcp dst-port=587
5 chain=dstnat action=dst-nat to-addresses=192.168.10.4 to-ports=465
protocol=tcp dst-port=465
6 ;;; OpenVPN
chain=dstnat action=dst-nat to-addresses=192.168.10.8 to-ports=1194
protocol=udp dst-port=1194
7 ;;; Hairpin NAT
chain=srcnat action=masquerade src-address=192.168.10.0/24
dst-address=192.168.10.0/24 out-interface=LAN-WLAN-Bridge
8 ;;; Standard Masquerade Regel
chain=srcnat action=masquerade out-interface=ether1
Firewall:
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; Accept Ping
chain=input action=accept protocol=icmp
1 ;;; Accept Established
chain=input action=accept connection-state=established in-interface=ether1
2 ;;; Accpet Related
chain=input action=accept connection-state=related in-interface=ether1
3 ;;; OpenVPN
chain=input action=accept protocol=tcp in-interface=ether1 dst-port=1195
4 ;;; Drop Brute Forcers
chain=input action=drop protocol=tcp src-address-list=winbox_blacklist dst-port=8291,22
5 chain=input action=add-src-to-address-list connection-state=new protocol=tcp
src-address-list=winbox_stage3 address-list=winbox_blacklist address-list-timeout=1w3d
dst-port=8291,22
6 chain=input action=add-src-to-address-list connection-state=new protocol=tcp
src-address-list=winbox_stage2 address-list=winbox_stage3 address-list-timeout=2m dst-port=8291,22
7 chain=input action=add-src-to-address-list connection-state=new protocol=tcp
src-address-list=winbox_stage1 address-list=winbox_stage2 address-list-timeout=2m dst-port=8291,22
8 chain=input action=add-src-to-address-list connection-state=new protocol=tcp
address-list=winbox_stage1 address-list-timeout=2m dst-port=8291,22
9 ;;; WinBox Remote Access
chain=input action=accept protocol=tcp dst-port=8291
10 ;;; SSH Remote Access
chain=input action=accept protocol=tcp dst-port=22
11 ;;; Drop Invalid
chain=input action=drop connection-state=invalid protocol=tcp
12 ;;; Drop den Rest
chain=input action=drop in-interface=ether1
I hope somebody can help me with that.. ![]()
If you need more information, let me know..