I use Serial to Ethernet Connector by Electronic Team for this. I’m on Windows but the site says there’s a Linux version available too.