Run all commands on the computer with restricted acccess.
in yum.conf
set the proxy as follows
proxy=socks5h://localhost:1080
from a terminal type
ssh -D 1080 YOUR_USER@YOUR_SERVER_WITH_FULL_WEB_ACCESS
press enter and type your password.
now, in a separate terminal (not the ssh one) type
yum update