I think you have got the right idea.
You will need to use PVC Conduit, just make sure both ends are sealed off after the cable is put through it, or you will have a freeway for creapy crawlys and rodents.
On one end use a switch to connect the cable and the other to a router. Just as a note...