Community discussions

MikroTik App
 
MrBIO
just joined
Topic Author
Posts: 2
Joined: Sat Apr 30, 2022 4:17 pm

Port Forwarding

Sat May 14, 2022 3:05 pm

Doesn't work for some reason. Router: hAP ac lite. RouterOS: 6.49.6.
NAT Rules:
 0    chain=srcnat action=masquerade out-interface=WAN

 1    ;;; CSGO Server 
      chain=dstnat action=dst-nat to-addresses=192.168.1.254 to-ports=27015 
      protocol=tcp in-interface=WAN dst-port=27015 

 2    ;;; CSGO Server
      chain=dstnat action=dst-nat to-addresses=192.168.1.254 to-ports=27015 
      protocol=udp in-interface=WAN dst-port=27015
Thanks for help!

(Yes those ports are enabled in windows firewall)
Last edited by MrBIO on Sat May 14, 2022 11:49 pm, edited 1 time in total.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Port Forwarding

Sat May 14, 2022 9:51 pm

Nothing wrong with your rules so I guess thats it then.
Clearly the rest of your config is inconsequential and you have found a bug which you should report to Mikrotik.

Or maybe you can actually share your config so we can see what is actually going on! :-)
/export hide-sensitive file=anynameyouwish
 
MrBIO
just joined
Topic Author
Posts: 2
Joined: Sat Apr 30, 2022 4:17 pm

Re: Port Forwarding

Sat May 14, 2022 10:14 pm

Nothing wrong with your rules so I guess thats it then.
Clearly the rest of your config is inconsequential and you have found a bug which you should report to Mikrotik.

Or maybe you can actually share your config so we can see what is actually going on! :-)
/export hide-sensitive file=anynameyouwish
Yeah sorry. Here:

/interface bridge
add admin-mac=48:8F:5A:75:5C:C2 auto-mac=no comment=defconf name=local
/interface ethernet
set [ find default-name=ether1 ] name=WAN
/interface list
add name=listBridge
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=\
    Profile supplicant-identity=""
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
    country="Censored" disabled=no distance=indoors mode=ap-bridge \
    security-profile=Profile ssid=ManaMana2 wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
    20/40/80mhz-XXXX country="Censored" disabled=no distance=indoors \
    mode=ap-bridge security-profile=Profile ssid=ManaMana5
/ip pool
add name=dhcp ranges=192.168.1.240-192.168.1.254
add name=dhcp_pool1 ranges=192.168.1.240-192.168.1.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=local name=dhcp
/interface bridge port
add bridge=local comment=defconf interface=ether2
add bridge=local comment=defconf interface=ether3
add bridge=local comment=defconf interface=ether4
add bridge=local comment=defconf interface=ether5
add bridge=local interface=wlan1
add bridge=local interface=wlan2
/ip neighbor discovery-settings
set discover-interface-list=listBridge
/interface detect-internet
set detect-interface-list=all
/interface list member
add interface=local list=listBridge
/interface wireless cap
set bridge=local discovery-interfaces=local interfaces=wlan1,wlan2
/ip address
add address=192.168.1.1/24 interface=local network=192.168.1.0
/ip arp
add address=192.168.1.250 comment=SetTopBox interface=local mac-address=\
    1C:3A:DE:A4:06:07
/ip cloud
set update-time=no
/ip dhcp-client
add disabled=no interface=WAN
/ip dhcp-server network
add address=192.168.1.0/24 gateway=192.168.1.1 netmask=24
/ip firewall filter
add action=fasttrack-connection chain=forward connection-state=\
    established,related
add action=accept chain=input connection-state=established,related
add action=drop chain=forward connection-state=invalid
add action=drop chain=forward connection-nat-state=!dstnat connection-state=\
    new in-interface=WAN
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN
add action=dst-nat chain=dstnat comment="CSGO Server " dst-port=27015 \
    in-interface=WAN protocol=tcp to-addresses=192.168.1.254 to-ports=27015
add action=dst-nat chain=dstnat comment="CSGO Server" dst-port=27015 \
    in-interface=WAN protocol=udp to-addresses=192.168.1.254 to-ports=27015
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set api disabled=yes
/system clock
set time-zone-name=Censured
/tool bandwidth-server
set enabled=no
/tool mac-server
set allowed-interface-list=listBridge
/tool mac-server mac-winbox
set allowed-interface-list=listBridge
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Port Forwarding

Sat May 14, 2022 10:48 pm

Public IP address, do you know what it is and do you have one?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Port Forwarding

Sat May 14, 2022 10:48 pm

If this is facing the internet the firewall ruleset it weak.
I still dont see anything stopping port forwarding though.
I am hoping another set of eyes will spot the issue!

Who is online

Users browsing this forum: Ahrefs [Bot], Fogga, Google [Bot], JDF, RHWwijk and 86 guests