Fri Sep 02, 2022 8:37 pm
It's okay. This is the programming. It also happens that the PCs have Internet, however the little ball in the world appears that they do not have Internet. I have also tried with an ISP (4G) and the same thing happens.
# sep/02/2022 19:26:18 by RouterOS 6.49.6
# software id = 6KD5-HCWR
#
# model = RB3011UiAS
# serial number = XXXXXXXXX
/interface bridge
add name=BRIDGE-LAN
/interface ethernet
set [ find default-name=ether1 ] comment=ether1 name=WAN
/interface pppoe-client
add add-default-route=yes disabled=no interface=WAN name=pppoe-out1 user=\
adslppp@telefonicanetpa
/interface vlan
add interface=WAN name=VLAN6 vlan-id=6
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges="192.168.50.2-192.168.50.54,192.168.50.56-192.168.5\
0.99,192.168.50.101-192.168.50.129,192.168.50.151-192.168.50.191,192.168.5\
0.193-192.168.50.254"
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=BRIDGE-LAN name=dhcp1
/interface bridge port
add bridge=BRIDGE-LAN interface=ether2
add bridge=BRIDGE-LAN interface=ether3
add bridge=BRIDGE-LAN interface=ether4
add bridge=BRIDGE-LAN interface=ether5
add bridge=BRIDGE-LAN interface=ether6
add bridge=BRIDGE-LAN interface=ether7
add bridge=BRIDGE-LAN interface=ether8
add bridge=BRIDGE-LAN interface=ether9
add bridge=BRIDGE-LAN interface=ether10
/interface ethernet switch rule
add new-vlan-priority=1 ports=switch1-cpu switch=switch1
/interface l2tp-server server
set authentication=mschap2 default-profile=default enabled=yes use-ipsec=\
required
/ip address
add address=192.168.50.150/24 interface=BRIDGE-LAN network=192.168.50.0
/ip arp
add address=192.168.50.139 interface=BRIDGE-LAN mac-address=3C:D9:2B:57:72:46
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add disabled=no interface=WAN
/ip dhcp-server lease
add address=192.168.50.21 client-id=1:c0:74:ad:34:fe:ab comment=Admin2 \
mac-address=C0:74:AD:34:FE:AB server=dhcp1
add address=192.168.50.12 client-id=1:c0:74:ad:34:fe:3f comment=Admin1 \
mac-address=C0:74:AD:34:FE:3F server=dhcp1
/ip dhcp-server network
add address=192.168.50.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.50.150
/ip firewall filter
add action=fasttrack-connection chain=forward connection-state=\
established,related
add action=accept chain=forward connection-state=established,related
add action=accept chain=input comment="Permitir L2TP" protocol=udp src-port=\
1701,500,4500
add action=accept chain=input protocol=ipsec-esp
add action=drop chain=forward connection-state=invalid
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out1
add action=masquerade chain=srcnat out-interface=BRIDGE-LAN
add action=dst-nat chain=dstnat comment="SERVIDOR WEB" dst-port=80 protocol=\
tcp to-addresses=192.168.50.192 to-ports=80
add action=dst-nat chain=dstnat dst-port=22 protocol=tcp to-addresses=\
192.168.50.192 to-ports=22
add action=dst-nat chain=dstnat comment=RTP dst-port=10000-12000 protocol=udp \
to-addresses=192.168.50.55 to-ports=10000-12000
add action=dst-nat chain=dstnat dst-port=5070 protocol=tcp to-addresses=\
192.168.50.55 to-ports=5070
add action=accept chain=srcnat comment="VPN L2TP" protocol=udp src-port=\
1701,500,4500
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www port=8888
set ssh disabled=yes
set api disabled=yes
set winbox port=9999
set api-ssl disabled=yes
/ppp secret
add local-address=192.168.50.150 name=XXXXXXXX
192.168.50.1 service=l2tp
/system clock
set time-zone-name=Europe/Madrid
/system identity
set name=RouterOS