I'm trying to forward the external port 4040 to the port 80 on my server.
The server is a Ubuntu Server 14.04 running as virtual machine in XEN, its network config is...
auto eth0 iface eth0 inet static address 172.16.0.226 netmask 255.255.0.0 gateway 172.16.0.1 dns-nameservers 126.96.36.199 188.8.131.52
Apache is listening in port 80 for any ipaddress.
In my MikroTik RB2011UiAS-RM Router I made these changes through Webfig v6.27:
In IP > Firewall > Filter Rules I've created a new rule with these settings...
GENERAL GROUP Enable: true Chain: FORWARD-apps Protocol: 6 (tcp) Dst. Port: 4040 ACTION GROUP Action: accept Log: true Log Prefix: My firewall rule
In IP > Firewall > NAT I've created a new rule with these settings...
GENERAL GROUP Enabled: true Chain: dstnat Dst. Address: 62.x.x.x (my public ip address here) Protocol: 6 (tcp) Dst. Port: 4040 ACTION GROUP Action: dst-nat Log: true Log Prefix: My nat rule To Address: 172.16.0.226 To ports: 80
Then, If I try to go to the next URL from my phone outside the office network
I don't see nothing in the browser and I get a time out message and an abort HTTP Status and I get the next message in the log of my MikroTik RB2011UiAS-RM Router...
Time May/dd/YYYY HH:mm:ss Buffer memory Topics firewall info Message My nat rule dstnat: in:bridge-efm out:(none), src-mac d4:x:x:x:x:x, proto TCP (SYN), 82.x.x.x:13246->62.x.x.x:4040, len 60
In Apache log don't appear externals requests, but when I request to the private IP 172.16.0.226 the Apache log record the requests.
Someone can help me please?
Thank so much.