{"id":324674,"date":"2021-06-10T03:00:17","date_gmt":"2021-06-10T03:00:17","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=324674"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=324674","title":{"rendered":"\u0414\u0435\u043b\u0430\u0435\u043c OpenVPN \u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f iOS"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u041f\u0440\u0438\u0432\u0435\u0442 \u0432\u0441\u0435\u043c!<br \/>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0435\u0435 OpenVPN-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b. \u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043e\u0431 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/OpenVPN\" rel=\"nofollow noopener noreferrer\">\u044d\u0442\u043e\u043c<\/a> \u0441\u043b\u044b\u0448\u0438\u0442 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0431\u0437\u043e\u0440\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b, \u043f\u043e\u043c\u0438\u043c\u043e \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0438\u0436\u0435.<\/p>\n<h3>\u0421 \u0447\u0435\u0433\u043e \u043d\u0430\u0447\u0430\u0442\u044c?<\/h3>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 OpenVPNAdapter \u2014 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Objective-C, \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Pods, Carthage, SPM. \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u041e\u0421 \u2014 9.0.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c Network Extensions \u0434\u043b\u044f \u0442\u0430\u0440\u0433\u0435\u0442\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u043a\u0430 Packet tunnel \u043e\u043f\u0446\u0438\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jh\/l2\/t6\/jhl2t6q2yieere8a38ez54pk39q.png\" alt=\"image\"><\/p>\n<h3>Network Extension<\/h3>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0442\u0430\u0440\u0433\u0435\u0442 \u2014 Network Extension. <br \/>  \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441 PacketTunnelProvider \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:<a name=\"habracut\"><\/a><\/p>\n<pre><code class=\"swift\">import NetworkExtension import OpenVPNAdapter  extension NEPacketTunnelFlow: OpenVPNAdapterPacketFlow {}  class PacketTunnelProvider: NEPacketTunnelProvider {      lazy var vpnAdapter: OpenVPNAdapter = {         let adapter = OpenVPNAdapter()         adapter.delegate = self          return adapter     }()      let vpnReachability = OpenVPNReachability()      var startHandler: ((Error?) -&gt; Void)?     var stopHandler: (() -&gt; Void)?      override func startTunnel(options: [String : NSObject]?, completionHandler: @escaping (Error?) -&gt; Void) {         guard             let protocolConfiguration = protocolConfiguration as? NETunnelProviderProtocol,             let providerConfiguration = protocolConfiguration.providerConfiguration         else {             fatalError()         }          guard let ovpnContent = providerConfiguration[&quot;ovpn&quot;] as? String else {             fatalError()         }          let configuration = OpenVPNConfiguration()         configuration.fileContent = ovpnContent.data(using: .utf8)         configuration.settings = [:]          configuration.tunPersist = true          let evaluation: OpenVPNConfigurationEvaluation         do {             evaluation = try vpnAdapter.apply(configuration: configuration)         } catch {             completionHandler(error)             return         }          if !evaluation.autologin {             guard let username: String = protocolConfiguration.username else {                 fatalError()             }              guard let password: String = providerConfiguration[&quot;password&quot;] as? String else {                 fatalError()             }              let credentials = OpenVPNCredentials()             credentials.username = username             credentials.password = password              do {                 try vpnAdapter.provide(credentials: credentials)             } catch {                 completionHandler(error)                 return             }         }          vpnReachability.startTracking { [weak self] status in             guard status == .reachableViaWiFi else { return }             self?.vpnAdapter.reconnect(afterTimeInterval: 5)         }          startHandler = completionHandler         vpnAdapter.connect(using: packetFlow)     }      override func stopTunnel(with reason: NEProviderStopReason, completionHandler: @escaping () -&gt; Void) {         stopHandler = completionHandler          if vpnReachability.isTracking {             vpnReachability.stopTracking()         }          vpnAdapter.disconnect()     }  }  extension PacketTunnelProvider: OpenVPNAdapterDelegate {          func openVPNAdapter(_ openVPNAdapter: OpenVPNAdapter, configureTunnelWithNetworkSettings networkSettings: NEPacketTunnelNetworkSettings?, completionHandler: @escaping (Error?) -&gt; Void) {         networkSettings?.dnsSettings?.matchDomains = [&quot;&quot;]          setTunnelNetworkSettings(networkSettings, completionHandler: completionHandler)     }      func openVPNAdapter(_ openVPNAdapter: OpenVPNAdapter, handleEvent event: OpenVPNAdapterEvent, message: String?) {         switch event {         case .connected:             if reasserting {                 reasserting = false             }              guard let startHandler = startHandler else { return }              startHandler(nil)             self.startHandler = nil          case .disconnected:             guard let stopHandler = stopHandler else { return }              if vpnReachability.isTracking {                 vpnReachability.stopTracking()             }              stopHandler()             self.stopHandler = nil          case .reconnecting:             reasserting = true          default:             break         }     }      func openVPNAdapter(_ openVPNAdapter: OpenVPNAdapter, handleError error: Error) {         guard let fatal = (error as NSError).userInfo[OpenVPNAdapterErrorFatalKey] as? Bool, fatal == true else {             return         }          if vpnReachability.isTracking {             vpnReachability.stopTracking()         }          if let startHandler = startHandler {             startHandler(error)             self.startHandler = nil         } else {             cancelTunnelWithError(error)         }     }      func openVPNAdapter(_ openVPNAdapter: OpenVPNAdapter, handleLogMessage logMessage: String) {     }  } <\/code><\/pre>\n<h3>\u0418 \u0441\u043d\u043e\u0432\u0430 \u043a\u043e\u0434<\/h3>\n<p>  \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e. \u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 NetworkExtension, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0435\u0433\u043e. \u041e\u0431\u0440\u0430\u0449\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u044b <a href=\"https:\/\/developer.apple.com\/documentation\/networkextension\/netunnelprovidermanager\" rel=\"nofollow noopener noreferrer\">NETunnelProviderManager<\/a>, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c VPN-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c, \u0438 <a href=\"https:\/\/developer.apple.com\/documentation\/networkextension\/netunnelproviderprotocol\" rel=\"nofollow noopener noreferrer\">NETunnelProviderProtocol<\/a>, \u0437\u0430\u0434\u0430\u044e\u0449\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043d\u043e\u0432\u043e\u043c\u0443 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044e. \u041f\u043e\u043c\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 OpenVPN, \u0437\u0430\u0434\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<pre><code class=\"swift\">var providerManager: NETunnelProviderManager!      override func viewDidLoad() {         super.viewDidLoad()         loadProviderManager {             self.configureVPN(serverAddress: &quot;127.0.0.1&quot;, username: &quot;&quot;, password: &quot;&quot;)         }      }      func loadProviderManager(completion:@escaping () -&gt; Void) {        NETunnelProviderManager.loadAllFromPreferences { (managers, error) in            if error == nil {                self.providerManager = managers?.first ?? NETunnelProviderManager()                completion()            }        }     }      func configureVPN(serverAddress: String, username: String, password: String) {       providerManager?.loadFromPreferences { error in          if error == nil {             let tunnelProtocol = NETunnelProviderProtocol()             tunnelProtocol.username = username             tunnelProtocol.serverAddress = serverAddress             tunnelProtocol.providerBundleIdentifier = &quot;com.myBundle.myApp&quot;              tunnelProtocol.providerConfiguration = [&quot;ovpn&quot;: configData, &quot;username&quot;: username, &quot;password&quot;: password]             tunnelProtocol.disconnectOnSleep = false             self.providerManager.protocolConfiguration = tunnelProtocol             self.providerManager.localizedDescription = &quot;Light VPN&quot;             self.providerManager.isEnabled = true             self.providerManager.saveToPreferences(completionHandler: { (error) in                   if error == nil  {                      self.providerManager.loadFromPreferences(completionHandler: { (error) in                          do {                            try self.providerManager.connection.startVPNTunnel()                          } catch let error {                              print(error.localizedDescription)                          }                                                                    })                   }             })           }        }     } <\/code><\/pre>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u0434\u0435\u0432\u0430\u0439\u0441\u0430, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0432 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e \u0441\u043e\u0441\u0435\u0434\u0441\u0442\u0432\u0443 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ob\/b8\/uk\/obb8ukulmopteg7j4dctalnyo5a.jpeg\" alt=\"image\"><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f VPN-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.<\/p>\n<pre><code class=\"swift\">do {             try providerManager?.connection.stopVPNTunnel()             completion()         } catch let error {             print(error.localizedDescription)         } <\/code><\/pre>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 <a href=\"https:\/\/developer.apple.com\/documentation\/networkextension\/nevpnmanager\/1406202-removefrompreferences\" rel=\"nofollow noopener noreferrer\">removeFromPreferences(completionHandler:)<\/a>, \u043d\u043e \u044d\u0442\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0440\u0430\u0434\u0438\u043a\u0430\u043b\u044c\u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u0434\u043b\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0431\u0435\u0441\u043f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u043e\u0433\u043e \u0441\u043d\u043e\u0441\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0438:)<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0412\u0430\u0448\u0435\u0433\u043e VPN \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432.<\/p>\n<pre><code class=\"swift\">if providerManager.connection.status == .connected {       defaults.set(true, forKey: &quot;serverIsOn&quot;) } <\/code><\/pre>\n<p>  \u0412\u0441\u0435\u0433\u043e \u044d\u0442\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 6.<\/p>\n<pre><code class=\"swift\">@available(iOS 8.0, *) public enum NEVPNStatus : Int {      \/** @const NEVPNStatusInvalid The VPN is not configured. *\/     case invalid = 0      \/** @const NEVPNStatusDisconnected The VPN is disconnected. *\/     case disconnected = 1      \/** @const NEVPNStatusConnecting The VPN is connecting. *\/     case connecting = 2      \/** @const NEVPNStatusConnected The VPN is connected. *\/     case connected = 3      \/** @const NEVPNStatusReasserting The VPN is reconnecting following loss of underlying network connectivity. *\/     case reasserting = 4      \/** @const NEVPNStatusDisconnecting The VPN is disconnecting. *\/     case disconnecting = 5 } <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u043c. \u0421\u0430\u043c\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 OpenVPN-\u0430 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435 \u0436\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435, \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438:<br \/>  <a href=\"https:\/\/github.com\/ss-abramchuk\/OpenVPNAdapter\" rel=\"nofollow noopener noreferrer\">OpenVPNAdapter<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/435802\/\">Habr<\/a><br \/>  <a href=\"https:\/\/www.ovpn.com\/en\/configurations\" rel=\"nofollow noopener noreferrer\">\u041a\u043e\u043d\u0444\u0438\u0433\u0438 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430<\/a><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/562060\/\"> https:\/\/habr.com\/ru\/post\/562060\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u041f\u0440\u0438\u0432\u0435\u0442 \u0432\u0441\u0435\u043c!<br \/>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0435\u0435 OpenVPN-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b. \u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043e\u0431 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/OpenVPN\" rel=\"nofollow noopener noreferrer\">\u044d\u0442\u043e\u043c<\/a> \u0441\u043b\u044b\u0448\u0438\u0442 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0431\u0437\u043e\u0440\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b, \u043f\u043e\u043c\u0438\u043c\u043e \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0438\u0436\u0435.<\/p>\n<h3>\u0421 \u0447\u0435\u0433\u043e \u043d\u0430\u0447\u0430\u0442\u044c?<\/h3>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 OpenVPNAdapter \u2014 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Objective-C, \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Pods, Carthage, SPM. \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u041e\u0421 \u2014 9.0.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c Network Extensions \u0434\u043b\u044f \u0442\u0430\u0440\u0433\u0435\u0442\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u043a\u0430 Packet tunnel \u043e\u043f\u0446\u0438\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jh\/l2\/t6\/jhl2t6q2yieere8a38ez54pk39q.png\" alt=\"image\"><\/p>\n<h3>Network Extension<\/h3>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0442\u0430\u0440\u0433\u0435\u0442 \u2014 Network Extension. <br \/>  \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441 PacketTunnelProvider \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-324674","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/324674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=324674"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/324674\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}