<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def post(self) -> Vpn: """ Creates the vpn with the given data. """

        vpn = Vpn()
        session.add(vpn)
        self.update(vpn)
        session.flush()
        session.commit()
        return vpn, 201, {
            'Location': url_for('vpn', vpn_id=vpn.id)
        }