A university research laboratory's server is targeted by unauthorized external connection attempts. Explain how a network administrator can use a packet-filtering firewall to protect the laboratory's private network from this threat.