Hi Guys,
Basically i have 3 public IP which assigned to Ether1 which 1 will be used as gateway to internet, 1 for webmail and another for file hosting (cloud) as below :.
xxx.xxx.xxx.66 ==> webmail
xxx.xxx.xxx.67 ==> gateway
xxx.xxx.xxx.68 ==> file hosting (cloud)
The problem i am facing right now is that i cannot connect to the webmail from internal network while its working fine when trying from outside of my network. BUT i am able to connect to the file hosting (cloud) both from internal network or outside of my network. I have tried the HAIRPIN NAT but it does not working at all.
This is NAT rules
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; ENABLE INTERNET ACCESS FOR OTHER ETHERS
chain=srcnat action=masquerade out-interface=Ether1 - Gateway - NETWORK 104 log-prefix=""
1 ;;; REDIRECT TO WEBMAIL
chain=dstnat action=dst-nat to-addresses=192.168.103.5 protocol=tcp dst-address=xxx.xxx.xxx.66 dst-address-type="" in-interface=Ether1 - Gateway - NETWORK 104
dst-port=80,443 log=no log-prefix=""
2 ;;; REDIRECT TO WEBMAIL
chain=dstnat action=dst-nat to-addresses=192.168.103.5 protocol=tcp dst-address=xxx.xxx.xxx.66 in-interface=Ether1 - Gateway - NETWORK 104
dst-port=22,25,110,143,465,587,995 log=no log-prefix=""
3 ;;; REDIRECT TO FILE HOSTING
chain=dstnat action=dst-nat to-addresses=192.168.103.4 protocol=tcp dst-address=xxx.xxx.xxx.68 dst-address-type=local in-interface=Ether1 - Gateway - NETWORK 104
log=no log-prefix=""
4 XI ;;; HAIRPIN NAT FOR WEBMAIL
chain=srcnat action=masquerade protocol=tcp src-address=192.168.103.0/24 dst-address=192.168.103.5 dst-address-type=local out-interface=Ether2 - NETWORK 103
dst-port=80,443 log=no log-prefix=""
5 XI ;;; HAIRPIN NAT FOR FILE HOSTING
chain=srcnat action=masquerade protocol=tcp src-address=192.168.103.0/24 dst-address=192.168.103.4 dst-address-type=local out-interface=Ether2 - NETWORK 103
dst-port=80,443 log=no log-prefix=""
8 ;;; WEB PROXY
chain=dstnat action=redirect to-ports=8181 protocol=tcp dst-port=80 log=no log-prefix=""