[SOLVED] why my dhcp client can't ping the internet

It’s my first post, and also my first contact with mikrotik, so I’m probably assuming something I shouldn’t please point it to me if you see anything wrong

My setup is fairly easy, it’s a home setup, I’m just starting with mikrotik from DD-WRT

A DSL connection to which I connect with PPPoE, A DHCP server and a bunch of clients (some wifi some wired)

The problem

from the routerboard (its a RB1100AH) I can ping google alright

From any clients within the network I cannot browse or ping the internet (well it resolves the names but does not ping) as you can see

$ ping google.com

PING google.com (77.125.228.3) 56(84( bytes of data

dhcp server works because I get an IP adress alright and a route

route -n
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
0.0.0.0         192.168.1.10    0.0.0.0         UG    0      0        0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

Here are the information so you can help me figure out what’s wrong with my mikrotik configuration

> ip address print detail
Flags: X - disabled, I - invalid, D - dynamic 
 0   ;;; Connexion au reseau maison
     address=192.168.1.10/24 network=192.168.1.0 interface=ether2 
     actual-interface=ether3 

 1 D address=69.4.211.45/32 network=199.243.251.1 interface=pppoe-mediom 
     actual-interface=pppoe-mediom



> ip dhcp-server print detail
Flags: X - disabled, I - invalid 
 0   name="dhcp1" interface=ether3 lease-time=3d address-pool=dhcp_pool3 
     bootp-support=static authoritative=after-2sec-delay 
     always-broadcast=yes



 ip route print detail
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 0 ADS  dst-address=0.0.0.0/0 gateway=199.243.251.1 
        gateway-status=199.243.251.1 reachable via  pppoe-mediom distance=1 
        scope=30 target-scope=10 

 1 ADC  dst-address=192.168.1.0/24 pref-src=192.168.1.10 gateway=ether3 
        gateway-status=ether3 reachable distance=0 scope=10 

 2   S  dst-address=192.168.1.10/32 gateway=199.243.213.3 
        gateway-status=199.243.213.3 unreachable check-gateway=ping 
        distance=1 scope=30 target-scope=10 

 3 ADC  dst-address=199.243.251.1/32 pref-src=69.4.211.45 gateway=pppoe-mediom 
        gateway-status=pppoe-mediom reachable distance=0 scope=10



> ip dhcp-server network print detail
 0 address=192.168.1.0/24 gateway=192.168.1.10 netmask=24 dns-server=8.8.4.4 
   wins-server="" ntp-server="" dhcp-option=""

AH AH AH found my problem right after posting it

Found the problem NAT was configured but not activated

> ip firewall nat print detail 
Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=srcnat action=masquerade out-interface=ether13

once I checked the (with the ! ) it works like a charm

ip firewall nat print detail 
Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=srcnat action=masquerade out-interface=!ether13

Not sure what it means though

Hello!
Of course, when you have specified an operator ! in the rule masqurade worked correctly.
But you should declare your WAN interface in this rule as an out-interface.