Page 1 of 1

Open ports & enable UPnP

Posted: Mon Mar 28, 2011 5:34 pm
by fdavidcn
Good evening, I would explain to me how I do to open the correct ports to a PC or
failing that, properly activate UPnP. Right now I have these IP addresses:


((AP)) - RB433:
ADSL Gateway 1: 192.168.1.1 (UPnP Off)
ADSL 2 Gateway: 192.168.2.1 (UPnP Enabled)

eth0: 192.168.1.15
eth1: 192.168.2.6

wlan1: 192.168.4.1
wlan2: 192.168.5.1

BRIDGE-WDS (eth1 + wlan3): 192.168.3.1

((CLIENT)) - RB411U:
BRIDGE-WDS (eth1 + wlan1): 192.168.3.2
Computers on the network: 192.168.3.3 - 192.168.3.254

In AP, I have turned on NAT:
CHAIN src-nat ACTION masquerade.

I wonder as I have to configure the NAT and UPnP, for a client 192.168.3.0/24 take
ports open ports or enable UPnP.

Thanks.

Re: Open ports & enable UPnP

Posted: Wed Mar 30, 2011 1:35 am
by fdavidcn
someone can help me please???

Re: Open ports & enable UPnP

Posted: Wed Mar 30, 2011 1:40 am
by fewi
http://wiki.mikrotik.com/wiki/Manual:IP ... rt_mapping

That explains how to forward a port. I would recommend adding 'in-interface=WAN'.

Re: Open ports & enable UPnP

Posted: Wed Mar 30, 2011 3:46 am
by fdavidcn
Thanks for your answer fewi. I was read this, and don't work at my lan. Please, see my simple graphic of my lan:

Image

Thanks.

Re: Open ports & enable UPnP

Posted: Wed Mar 30, 2011 3:48 am
by fewi
But what traffic are you trying to get from where to where? What are you trying to port forward?

Re: Open ports & enable UPnP

Posted: Wed Mar 30, 2011 3:53 am
by fdavidcn
But what traffic are you trying to get from where to where? What are you trying to port forward?
I want to forward PS3 ports (3074,5223, ...) for address 192.168.3.3 from 192.168.2.1 (ADSL 2).

The address 192.168.2.6 (eth2) have DMZ activated.

Thanks.

Re: Open ports & enable UPnP

Posted: Wed Mar 30, 2011 3:59 am
by fewi
Port forward on the ADSL router and insert a route on it pointing 192.168.3.0/24 via 192.168.2.6.
You may need to make some mangle rules that mark inbound connections and on the reverse path apply routing marks to force traffic back out that gateway if your default route on the RB433 isn't via 192.168.2.6.

Re: Open ports & enable UPnP

Posted: Wed Mar 30, 2011 11:16 am
by fdavidcn
Port forward on the ADSL router and insert a route on it pointing 192.168.3.0/24 via 192.168.2.6.
You may need to make some mangle rules that mark inbound connections and on the reverse path apply routing marks to force traffic back out that gateway if your default route on the RB433 isn't via 192.168.2.6.
Hi Fewi. Thanks for the answers. Here you have my firewall / route configuration on RB433:
Image
Image

Thanks fewi

Re: Open ports & enable UPnP

Posted: Fri Jun 06, 2014 2:45 pm
by plisken
Where are the images, ik have the same issue.

Re: Open ports & enable UPnP

Posted: Fri Jun 20, 2014 1:19 am
by ferkop1
Better solution is setup the adsl router to bridge mode, setup ppoe client on mikrotik and forwarding in fireval via dst-nat to speciefied ip address

Re: Open ports & enable UPnP

Posted: Fri Jun 20, 2014 1:39 am
by rextended
Simply set the public IP address on Routerboard and enable UPnP (and/or enable UPnP also on ISP router), you do not need to pen single port, is all automatic with console.

The console must be plug directly on routerboard without using another wireless router between....