I managed to solve this problem. I unnecessarily changed the default GW from 10.24.1.7 it should be like this.
I also had to uncheck "allow dns server list to be overridden by DHCP/PPP on WAN" because DNS was not working.
I also had to uncheck "allow dns server list to be overridden by DHCP/PPP on WAN" because DNS was not working.