connect several computers to a switch but only one has internet access

Sep 12, 2018
1
0
10
I have several PCs, a switch and a single internet port in the wall. I want to connect all PCs to the switch so they see each other but I want only one PC to have access to internet the reason being: if more than one PC tries to access the internet, the socket will block!
Is this possible assuming there is only one network card per PC?
OS is Linux.

Thanks