Surf network device web server

Hi every body

I decide to make a module to connect network devices directly to it then make a connection between module and smart phones via WiFi and finally surf the network device web server.

I can deal with Ethernet shield and ESP8266 WiFi module separately but i don’t know how to make a connection between them

I can deal with Ethernet shield and ESP8266 WiFi module separately but i don't know how to make a connection between them

You don't. You connect them both to an Arduino, and have it get data from one and send it to the other.

It is not clear what role the Arduino with Ethernet shield will play. Will it be a server? Or, will it be a client?