Guardrails for wooden structures