new to mikrotik. i can't figure out what i'm missing
i have a RB750Gr3 trying to forward port 10000, 80 and 443 to a lan ip. this is my export. i dunno what i'm doing wrong. all services from local ip are accesible, none from wan
Code: Select all
# may/03/2023 19:34:22 by RouterOS 6.49.7
# software id = JDLJ-1RYF
#
# model = RB750Gr3
# serial number = xxxxxDEYHY
/interface bridge
add admin-mac=18:FD:74:7F:BD:D9 auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether2 ] name=Orange
set [ find default-name=ether1 ] name=digi_eth
/interface pppoe-client
add add-default-route=yes disabled=no interface=digi_eth name=DIGI user=\
xxxxx
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=10.10.0.10-10.10.0.254
add name=vpn ranges=10.10.1.2-10.10.1.255
/ip dhcp-server
add add-arp=yes address-pool=dhcp always-broadcast=yes disabled=no interface=\
bridge name=defconf
/ppp profile
set *FFFFFFFE local-address=192.168.89.1 remote-address=vpn
/interface bridge port
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface l2tp-server server
set enabled=yes use-ipsec=yes
/interface list member
add comment=defconf interface=bridge list=LAN
add interface=DIGI list=WAN
/interface pptp-server server
set enabled=yes
/interface sstp-server server
set default-profile=default-encryption enabled=yes
/ip address
add address=10.10.0.1/24 comment=defconf interface=bridge network=10.10.0.0
/ip cloud
set ddns-enabled=yes ddns-update-interval=1m
/ip dhcp-client
add disabled=no interface=Orange
/ip dhcp-server lease
add address=10.10.0.16 client-id=\
ff:5b:f8:df:8c:0:1:0:1:2b:e5:24:3b:bc:30:5b:f8:df:8c mac-address=\
BC:30:5B:F8:DF:8C server=defconf
/ip dhcp-server network
add address=10.10.0.0/24 comment=defconf dns-server=\
1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4 gateway=10.10.0.1
/ip dns
set allow-remote-requests=yes servers=1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4
/ip dns static
add address=10.10.0.1 comment=defconf name=router.lan
/ip firewall address-list
add address=tavi.xxxx.xxx list=hostnames
add address=xxxxdeyhy.sn.mynetname.net list=hostnames
/ip firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=accept chain=input comment="allow IPsec NAT" dst-port=4500 \
protocol=udp
add action=accept chain=input comment="allow IKE" dst-port=500 protocol=udp
add action=accept chain=input comment="allow l2tp" dst-port=1701 protocol=udp
add action=accept chain=input comment="allow pptp" dst-port=1723 protocol=tcp
add action=accept chain=input comment="allow sstp" dst-port=443 protocol=tcp
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark \
in-interface=DIGI new-connection-mark=DIGI_input passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark \
in-interface=Orange new-connection-mark=Orange_input passthrough=yes
add action=mark-routing chain=output connection-mark=DIGI_input \
new-routing-mark=DIGI_output passthrough=yes
add action=mark-routing chain=output connection-mark=Orange_input \
new-routing-mark=ORANGE_output passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=DIGI
add action=masquerade chain=srcnat out-interface=Orange
add action=dst-nat chain=dstnat comment=webmin dst-address-list=hostnames \
dst-port=10000 protocol=tcp to-addresses=10.10.0.16 to-ports=10000
add action=dst-nat chain=dstnat comment=apache dst-address-list=hostnames \
dst-port=80 protocol=tcp to-addresses=10.10.0.16 to-ports=80
add action=dst-nat chain=dstnat comment=https dst-address-list=hostnames \
dst-port=443 protocol=tcp to-addresses=10.10.0.16 to-ports=443
add action=masquerade chain=srcnat comment="masq. vpn traffic" src-address=\
192.168.89.0/24
/ip route
add check-gateway=ping disabled=yes distance=1 gateway=DIGI routing-mark=\
DIGI_output
add check-gateway=ping disabled=yes distance=1 gateway=Orange routing-mark=\
ORANGE_output
add check-gateway=ping disabled=yes distance=1 gateway=90.xxx.xxx.1,DIGI
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
/ppp secret
add name=vpn
/system clock
set time-zone-name=Europe/Bucharest
/system routerboard settings
set auto-upgrade=yes force-backup-booter=yes
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN