'Raspberry Pi convert WiFi to modem signal

I have a Raspberry Pi 3 B+ and a Belkin WiFi router. I want to take my existing WiFi signal, and convert it into a modem signal for the router.

Original Wifi -))                                 ((-Raspberry Pi 3 B+----Modem port on ROUTER-))    New WiFi

How do I do this? I tried Dnsmasq as a WiFi dongle, but I don't think the router likes this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source