this extracts the interface implementation code from the vpn package as preparation for implementing the interface for v5 api of menshen