Can i get access to the client server first connection message for proxy purpose

I have been working in the mmo project and while im making udp proxy for the server map instance connection
Imgur
when it come to check condition for which port should proxy server client to the first connection message was look like this
Imgur
can i edit this part to custom the message to check for condition on proxy server?