Community discussions

MikroTik App
 
AGriffiths73
just joined
Topic Author
Posts: 8
Joined: Sun Sep 20, 2015 1:48 am

Cannot get port forwarding to work

Sun Sep 20, 2015 1:55 am

Hi,

I have a brand new router, running 6.32.1 and have tried all the instructions I can find to configure port forwarding for my CCTV on port 9000 so have a NAT rule for dstnat for my external IP, port 9000 to 192.168.1.140:9000 and everything is fine for local connection to 192.168.1.140 so I know the system is working, but cannot get my iPad or phone to connect to the CCTV using the external IP.

It worked fine on the Asus router this one replaces with much more straight forward settings.
The firewall settings are as they were when the box was first configured.

I'm really stuck and don't want to have to go back to the Asus.

TIA
 
User avatar
evince
Member
Member
Posts: 355
Joined: Thu Jul 05, 2012 12:11 pm
Location: Harzé - Belgique
Contact:

Re: Cannot get port forwarding to work

Mon Sep 21, 2015 12:22 pm

Hello,

Please post here your Firewall and NAt rules.
 
patrick7
Member
Member
Posts: 352
Joined: Sat Jul 20, 2013 2:40 pm

Re: Cannot get port forwarding to work

Mon Sep 21, 2015 12:25 pm

Did you add a Filter rule to accept the traffic? Are you trying to access your public IP from your LAN? Then you need to configure Hairpin NAT.

Also make sure, your device has a default gateway.
 
AGriffiths73
just joined
Topic Author
Posts: 8
Joined: Sun Sep 20, 2015 1:48 am

Re: Cannot get port forwarding to work

Mon Sep 21, 2015 5:06 pm

0 D ;;; special dummy rule to show fasttrack counters
chain=forward

1 ;;; default configuration
chain=forward action=accept connection-state=established,related log=no
log-prefix=""

2 ;;; default configuration
chain=input action=accept protocol=icmp log=no log-prefix=""

3 ;;; default configuration
chain=input action=accept connection-state=established,related log=no
log-prefix=""

4 ;;; default configuration
chain=input action=drop in-interface=ether1-gateway log=no
log-prefix=""

5 X chain=forward action=accept protocol=tcp dst-address=192.168.1.140
dst-port=80 log=no log-prefix=""


Flags: X - disabled, I - invalid, D - dynamic
0 chain=dstnat action=dst-nat to-addresses=192.168.1.140 to-ports=9000
protocol=tcp dst-address=80.229.xxx.xxx in-interface=bridge-local
dst-port=9000 log=no log-prefix=""

1 ;;; default configuration
chain=srcnat action=masquerade out-interface=pppoe-out1 log=no
log-prefix=""

2 chain=dstnat action=dst-nat to-addresses=192.168.1.140 to-ports=80
protocol=tcp dst-address=80.229.xxx.xxx in-interface=all-ppp dst-port=80
log=no log-prefix=""
[admin@HFR] /ip firewall nat>

The CCTV DVR has 192.168.1.254 as the default GW, unchanged from when it worked fine with the Asus router.
 
AGriffiths73
just joined
Topic Author
Posts: 8
Joined: Sun Sep 20, 2015 1:48 am

Re: Cannot get port forwarding to work

Wed Sep 23, 2015 11:39 am

Hi,

I set and reset the FW filter and NAT rules, as well as put in a hairpin NAT as per the instructions found on this site. I can see traffic traverse the NAT connection, but it's 'bitty', in as much as it looks like lots of attempts to connect, but not flowing traffic.

The client I use was tested yesterday on a 4G connection 100 miles from the CCTV and router, and nothing. However, if I use the client software that ships with the DVR, it uses the QR code on the unit to attach, and, using 3G, so completely seperate connection, it works.

Yours, confused of Warwickshire.
 
User avatar
evince
Member
Member
Posts: 355
Joined: Thu Jul 05, 2012 12:11 pm
Location: Harzé - Belgique
Contact:

Re: Cannot get port forwarding to work

Thu Sep 24, 2015 1:38 pm

Hello,

Flags: X - disabled, I - invalid, D - dynamic
0 chain=dstnat action=dst-nat to-addresses=192.168.1.140 to-ports=9000
protocol=tcp dst-address=80.229.xxx.xxx in-interface=bridge-local
dst-port=9000 log=no log-prefix=""

Do not specify in interface and test again from outside.
 
AGriffiths73
just joined
Topic Author
Posts: 8
Joined: Sun Sep 20, 2015 1:48 am

Re: Cannot get port forwarding to work

Thu Sep 24, 2015 2:09 pm

Thanks, that's how it's setup, so from outside I can now access it.

Just a few other niggles to work out now :(
 
User avatar
evince
Member
Member
Posts: 355
Joined: Thu Jul 05, 2012 12:11 pm
Location: Harzé - Belgique
Contact:

Re: Cannot get port forwarding to work

Mon Sep 28, 2015 10:43 am

Hello,

Lety me know what kind of proble you have now and i'll try to help you :)à