Community discussions

MikroTik App
 
sc234239740
just joined
Topic Author
Posts: 2
Joined: Wed Apr 06, 2022 8:14 pm

The RB with PPPoE has internet, devices over wifi != internet.

Thu Apr 21, 2022 8:28 pm

hello,

I am new to this, currently looking for the MTCNA training, but in meantime, I bought a Hap ac3 and trying to play with it.

Everything works fine but one thing fails. When I am using the HAP ac3 with pppoe client with my ISP, the router has internet, but not devices from wifi connection.
First thing, I thought is nat/masquerade , but it didn't work. I've searched all the forum, a lot of solution but none works as expected.

here's my config. if someone see something wrong, let me know, best,
# apr/21/2022 10:01:11 by RouterOS 7.2.1
#
# model = RBD53iG-5HacD2HnD
/interface bridge
add admin-mac=DC:2C:6E:14:CD:20 auto-mac=no comment=defconf name=bridge
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX country=mexico disabled=no distance=indoors frequency=auto \
    installation=indoor mode=ap-bridge ssid=SO*************UD wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX country=mexico disabled=no distance=indoors frequency=\
    auto installation=indoor mode=ap-bridge ssid=SO*************UD wireless-protocol=802.11
/interface pppoe-client
add add-default-route=yes interface=ether1 keepalive-timeout=disabled name=pppoe-out1 use-peer-dns=yes user=JEAN_*****************UR
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=192.168.77.10-192.168.77.254
/ip dhcp-server
add address-pool=dhcp interface=bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf ingress-filtering=no interface=ether2
add bridge=bridge comment=defconf ingress-filtering=no interface=ether3
add bridge=bridge comment=defconf ingress-filtering=no interface=ether4
add bridge=bridge comment=defconf ingress-filtering=no interface=ether5
add bridge=bridge comment=defconf ingress-filtering=no interface=wlan1
add bridge=bridge comment=defconf ingress-filtering=no interface=wlan2
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=192.168.77.1/24 comment=defconf interface=bridge network=192.168.77.0
/ip dhcp-client
add comment=defconf interface=ether1
/ip dhcp-server network
add address=192.168.77.0/24 comment=defconf dns-server=192.168.77.1 gateway=192.168.77.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=1.1.1.1,8.8.8.8
/ip dns static
add address=192.168.77.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
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 hw-offload=yes
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 nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/ip firewall service-port
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
/system clock
set time-zone-name=America/Cancun
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN


thanks for any advices,
 
sc234239740
just joined
Topic Author
Posts: 2
Joined: Wed Apr 06, 2022 8:14 pm

Re: The RB with PPPoE has internet, devices over wifi != internet.  [SOLVED]

Tue Apr 26, 2022 6:39 pm

for those who are facing this issue, please add NAT rules, masquerade for the pppoe interface also.
 chain=srcnat action=masquerade out-interface=pppoe-out1 log=no log-prefix="" ipsec-policy=out,none 
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: The RB with PPPoE has internet, devices over wifi != internet.

Tue Apr 26, 2022 6:51 pm

No, what is missing is this:
/interface list member
add comment=rex interface=pppoe-out1 list=WAN

Who is online

Users browsing this forum: forthal, grayfoxbsd and 94 guests