Hello, again.
Sorry for creating new topic, but still having trouble with port forwarding. The ISP opened required ports on the modem, but I still cannot open the ports to the internal IP. To run a server I need to open couple of ports, but what ever I do by all the guides, it still is shown as closed when pinging with nmap or trying to launch the server. When I ping the externel IP (WAN) with nmap, it is shown as “filtered”, when pinging the router 192.168.2.209 it is shown as “filtered”, but when I try to ping the server pc at 192.168.7.30 it is shown as “closed”.
# jan/05/1970 17:04:47 by RouterOS 6.26
# software id = IX46-RCDF
#
/interface bridge
add admin-mac=4C:5E:0C:C7:E7:AE auto-mac=no name=bridge-local
/interface ethernet
set [ find default-name=ether1 ] name=ether1-gateway
set [ find default-name=ether6 ] name=ether6-master-local
set [ find default-name=ether7 ] master-port=ether6-master-local name=ether7-slave-local
set [ find default-name=ether8 ] master-port=ether6-master-local name=ether8-slave-local
set [ find default-name=ether9 ] master-port=ether6-master-local name=ether9-slave-local
set [ find default-name=ether10 ] master-port=ether6-master-local name=ether10-slave-local
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce country=lithuania disabled=no distance=indoors frequency=auto l2mtu=1600 \
mode=ap-bridge ssid=SKPB wireless-protocol=802.11
/ip neighbor discovery
set ether1-gateway discover=no
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk mode=dynamic-keys wpa-pre-shared-key=zalgiris wpa2-pre-shared-key=zalgiris
/ip pool
add name=dhcp ranges=192.168.7.10-192.168.7.240
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge-local name=default
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge-local interface=ether2
add bridge=bridge-local interface=ether3
add bridge=bridge-local interface=ether4
add bridge=bridge-local interface=ether5
add bridge=bridge-local interface=ether6-master-local
add bridge=bridge-local interface=sfp1
add bridge=bridge-local interface=wlan1
/interface bridge settings
set use-ip-firewall=yes use-ip-firewall-for-pppoe=yes use-ip-firewall-for-vlan=yes
/ip address
add address=192.168.7.1/24 comment="default configuration" interface=ether2 network=192.168.7.0
add address=192.168.2.209/24 interface=ether1-gateway network=192.168.2.0
/ip dhcp-client
add comment="default configuration" dhcp-options=hostname,clientid interface=ether1-gateway
/ip dhcp-server network
add address=192.168.7.0/24 comment="default configuration" gateway=192.168.7.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=xxx.xx.xxx.xx,xxx.xx.xxx.xx
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add chain=input in-interface=bridge-local
add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=established,related
add action=drop chain=input comment="default configuration" in-interface=ether1-gateway
add chain=forward comment="default configuration" connection-state=established,related
add action=drop chain=forward comment="default configuration" connection-state=invalid
add action=drop chain=forward comment="default configuration" connection-nat-state=!dstnat connection-state=new in-interface=ether1-gateway
/ip firewall nat
add action=masquerade chain=srcnat comment="HAIRPIN NAT" out-interface=bridge-local src-address=192.168.2.209
add action=masquerade chain=srcnat comment="default configuration" out-interface=ether1-gateway
add action=dst-nat chain=dstnat dst-address=!192.168.2.209 dst-port=8766 protocol=tcp to-addresses=192.168.7.30 to-ports=8766
add action=dst-nat chain=dstnat dst-address=192.168.2.209 dst-port=8766 protocol=tcp to-addresses=192.168.7.30 to-ports=8766
/ip route
add distance=1 gateway=192.168.2.254
/lcd
set time-interval=weekly
/lcd interface pages
set 0 interfaces=\
sfp1,ether1-gateway,ether2,ether3,ether4,ether5,ether6-master-local,ether7-slave-local,ether8-slave-local,ether9-slave-local,ether10-slave-local
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=ether6-master-local
add interface=ether7-slave-local
add interface=ether8-slave-local
add interface=ether9-slave-local
add interface=ether10-slave-local
add interface=sfp1
add interface=wlan1
add interface=bridge-local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=ether6-master-local
add interface=ether7-slave-local
add interface=ether8-slave-local
add interface=ether9-slave-local
add interface=ether10-slave-local
add interface=sfp1
add interface=wlan1
add interface=bridge-local
