In this way your clients sends the request to internet which are passed to server which changed them according so that they can be sent over internet, now reply from internet is returned, at this point our server again do changes accordingly and then foward that to local client.