NetworkParseTests.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. using System;
  2. using System.Collections.ObjectModel;
  3. using System.Net;
  4. using Jellyfin.Networking.Configuration;
  5. using Jellyfin.Networking.Manager;
  6. using MediaBrowser.Common.Configuration;
  7. using MediaBrowser.Common.Net;
  8. using Microsoft.Extensions.Logging.Abstractions;
  9. using Moq;
  10. using Xunit;
  11. namespace Jellyfin.Networking.Tests
  12. {
  13. public class NetworkParseTests
  14. {
  15. internal static IConfigurationManager GetMockConfig(NetworkConfiguration conf)
  16. {
  17. var configManager = new Mock<IConfigurationManager>
  18. {
  19. CallBase = true
  20. };
  21. configManager.Setup(x => x.GetConfiguration(It.IsAny<string>())).Returns(conf);
  22. return (IConfigurationManager)configManager.Object;
  23. }
  24. /// <summary>
  25. /// Checks the ability to ignore virtual interfaces.
  26. /// </summary>
  27. /// <param name="interfaces">Mock network setup, in the format (IP address, interface index, interface name) | .... </param>
  28. /// <param name="lan">LAN addresses.</param>
  29. /// <param name="value">Bind addresses that are excluded.</param>
  30. [Theory]
  31. // All valid
  32. [InlineData("192.168.1.208/24,-16,eth16|200.200.200.200/24,11,eth11", "192.168.1.0/24;200.200.200.0/24", "[192.168.1.208/24,200.200.200.200/24]")]
  33. // eth16 only
  34. [InlineData("192.168.1.208/24,-16,eth16|200.200.200.200/24,11,eth11", "192.168.1.0/24", "[192.168.1.208/24]")]
  35. // All interfaces excluded. (including loopbacks)
  36. [InlineData("192.168.1.208/24,-16,vEthernet1|192.168.2.208/24,-16,vEthernet212|200.200.200.200/24,11,eth11", "192.168.1.0/24", "[127.0.0.1/8,::1/128]")]
  37. // vEthernet1 and vEthernet212 should be excluded.
  38. [InlineData("192.168.1.200/24,-20,vEthernet1|192.168.2.208/24,-16,vEthernet212|200.200.200.200/24,11,eth11", "192.168.1.0/24;200.200.200.200/24", "[200.200.200.200/24,127.0.0.1/8,::1/128]")]
  39. // Overlapping interface,
  40. [InlineData("192.168.1.110/24,-20,br0|192.168.1.10/24,-16,br0|200.200.200.200/24,11,eth11", "192.168.1.0/24", "[192.168.1.110/24,192.168.1.10/24]")]
  41. public void IgnoreVirtualInterfaces(string interfaces, string lan, string value)
  42. {
  43. var conf = new NetworkConfiguration()
  44. {
  45. EnableIPV6 = true,
  46. EnableIPV4 = true,
  47. LocalNetworkSubnets = lan?.Split(';') ?? throw new ArgumentNullException(nameof(lan))
  48. };
  49. NetworkManager.MockNetworkSettings = interfaces;
  50. using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
  51. NetworkManager.MockNetworkSettings = string.Empty;
  52. Assert.Equal(nm.GetInternalBindAddresses().AsString(), value);
  53. }
  54. /// <summary>
  55. /// Test collection parsing.
  56. /// </summary>
  57. /// <param name="settings">Collection to parse.</param>
  58. /// <param name="result1">Included addresses from the collection.</param>
  59. /// <param name="result2">Included IP4 addresses from the collection.</param>
  60. /// <param name="result3">Excluded addresses from the collection.</param>
  61. /// <param name="result4">Excluded IP4 addresses from the collection.</param>
  62. /// <param name="result5">Network addresses of the collection.</param>
  63. [Theory]
  64. [InlineData(
  65. "127.0.0.1#",
  66. "[]",
  67. "[]",
  68. "[]",
  69. "[]",
  70. "[]")]
  71. [InlineData(
  72. "!127.0.0.1",
  73. "[]",
  74. "[]",
  75. "[127.0.0.1/32]",
  76. "[127.0.0.1/32]",
  77. "[]")]
  78. [InlineData(
  79. "",
  80. "[]",
  81. "[]",
  82. "[]",
  83. "[]",
  84. "[]")]
  85. [InlineData(
  86. "192.158.1.2/16, localhost, fd23:184f:2029:0:3139:7386:67d7:d517, !10.10.10.10",
  87. "[192.158.1.2/16,[127.0.0.1/32,::1/128],fd23:184f:2029:0:3139:7386:67d7:d517/128]",
  88. "[192.158.1.2/16,127.0.0.1/32]",
  89. "[10.10.10.10/32]",
  90. "[10.10.10.10/32]",
  91. "[192.158.0.0/16,127.0.0.1/32,::1/128,fd23:184f:2029:0:3139:7386:67d7:d517/128]")]
  92. [InlineData(
  93. "192.158.1.2/255.255.0.0,192.169.1.2/8",
  94. "[192.158.1.2/16,192.169.1.2/8]",
  95. "[192.158.1.2/16,192.169.1.2/8]",
  96. "[]",
  97. "[]",
  98. "[192.158.0.0/16,192.0.0.0/8]")]
  99. public void TestCollections(string settings, string result1, string result2, string result3, string result4, string result5)
  100. {
  101. if (settings == null)
  102. {
  103. throw new ArgumentNullException(nameof(settings));
  104. }
  105. var conf = new NetworkConfiguration()
  106. {
  107. EnableIPV6 = true,
  108. EnableIPV4 = true,
  109. };
  110. using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
  111. // Test included.
  112. Collection<IPObject> nc = nm.CreateIPCollection(settings.Split(','), false);
  113. Assert.Equal(nc.AsString(), result1);
  114. // Test excluded.
  115. nc = nm.CreateIPCollection(settings.Split(','), true);
  116. Assert.Equal(nc.AsString(), result3);
  117. conf.EnableIPV6 = false;
  118. nm.UpdateSettings(conf);
  119. // Test IP4 included.
  120. nc = nm.CreateIPCollection(settings.Split(','), false);
  121. Assert.Equal(nc.AsString(), result2);
  122. // Test IP4 excluded.
  123. nc = nm.CreateIPCollection(settings.Split(','), true);
  124. Assert.Equal(nc.AsString(), result4);
  125. conf.EnableIPV6 = true;
  126. nm.UpdateSettings(conf);
  127. // Test network addresses of collection.
  128. nc = nm.CreateIPCollection(settings.Split(','), false);
  129. nc = nc.AsNetworks();
  130. Assert.Equal(nc.AsString(), result5);
  131. }
  132. /// <summary>
  133. /// Union two collections.
  134. /// </summary>
  135. /// <param name="settings">Source.</param>
  136. /// <param name="compare">Destination.</param>
  137. /// <param name="result">Result.</param>
  138. [Theory]
  139. [InlineData("127.0.0.1", "fd23:184f:2029:0:3139:7386:67d7:d517/64,fd23:184f:2029:0:c0f0:8a8a:7605:fffa/128,fe80::3139:7386:67d7:d517%16/64,192.168.1.208/24,::1/128,127.0.0.1/8", "[127.0.0.1/32]")]
  140. [InlineData("127.0.0.1", "127.0.0.1/8", "[127.0.0.1/32]")]
  141. public void UnionCheck(string settings, string compare, string result)
  142. {
  143. if (settings == null)
  144. {
  145. throw new ArgumentNullException(nameof(settings));
  146. }
  147. if (compare == null)
  148. {
  149. throw new ArgumentNullException(nameof(compare));
  150. }
  151. if (result == null)
  152. {
  153. throw new ArgumentNullException(nameof(result));
  154. }
  155. var conf = new NetworkConfiguration()
  156. {
  157. EnableIPV6 = true,
  158. EnableIPV4 = true,
  159. };
  160. using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
  161. Collection<IPObject> nc1 = nm.CreateIPCollection(settings.Split(','), false);
  162. Collection<IPObject> nc2 = nm.CreateIPCollection(compare.Split(','), false);
  163. Assert.Equal(nc1.ThatAreContainedInNetworks(nc2).AsString(), result);
  164. }
  165. [Theory]
  166. [InlineData("192.168.5.85/24", "192.168.5.1")]
  167. [InlineData("192.168.5.85/24", "192.168.5.254")]
  168. [InlineData("10.128.240.50/30", "10.128.240.48")]
  169. [InlineData("10.128.240.50/30", "10.128.240.49")]
  170. [InlineData("10.128.240.50/30", "10.128.240.50")]
  171. [InlineData("10.128.240.50/30", "10.128.240.51")]
  172. [InlineData("127.0.0.1/8", "127.0.0.1")]
  173. public void IpV4SubnetMaskMatchesValidIpAddress(string netMask, string ipAddress)
  174. {
  175. var ipAddressObj = IPNetAddress.Parse(netMask);
  176. Assert.True(ipAddressObj.Contains(IPAddress.Parse(ipAddress)));
  177. }
  178. [Theory]
  179. [InlineData("192.168.5.85/24", "192.168.4.254")]
  180. [InlineData("192.168.5.85/24", "191.168.5.254")]
  181. [InlineData("10.128.240.50/30", "10.128.240.47")]
  182. [InlineData("10.128.240.50/30", "10.128.240.52")]
  183. [InlineData("10.128.240.50/30", "10.128.239.50")]
  184. [InlineData("10.128.240.50/30", "10.127.240.51")]
  185. public void IpV4SubnetMaskDoesNotMatchInvalidIpAddress(string netMask, string ipAddress)
  186. {
  187. var ipAddressObj = IPNetAddress.Parse(netMask);
  188. Assert.False(ipAddressObj.Contains(IPAddress.Parse(ipAddress)));
  189. }
  190. [Theory]
  191. [InlineData("2001:db8:abcd:0012::0/64", "2001:0DB8:ABCD:0012:0000:0000:0000:0000")]
  192. [InlineData("2001:db8:abcd:0012::0/64", "2001:0DB8:ABCD:0012:FFFF:FFFF:FFFF:FFFF")]
  193. [InlineData("2001:db8:abcd:0012::0/64", "2001:0DB8:ABCD:0012:0001:0000:0000:0000")]
  194. [InlineData("2001:db8:abcd:0012::0/64", "2001:0DB8:ABCD:0012:FFFF:FFFF:FFFF:FFF0")]
  195. [InlineData("2001:db8:abcd:0012::0/128", "2001:0DB8:ABCD:0012:0000:0000:0000:0000")]
  196. public void IpV6SubnetMaskMatchesValidIpAddress(string netMask, string ipAddress)
  197. {
  198. var ipAddressObj = IPNetAddress.Parse(netMask);
  199. Assert.True(ipAddressObj.Contains(IPAddress.Parse(ipAddress)));
  200. }
  201. [Theory]
  202. [InlineData("2001:db8:abcd:0012::0/64", "2001:0DB8:ABCD:0011:FFFF:FFFF:FFFF:FFFF")]
  203. [InlineData("2001:db8:abcd:0012::0/64", "2001:0DB8:ABCD:0013:0000:0000:0000:0000")]
  204. [InlineData("2001:db8:abcd:0012::0/64", "2001:0DB8:ABCD:0013:0001:0000:0000:0000")]
  205. [InlineData("2001:db8:abcd:0012::0/64", "2001:0DB8:ABCD:0011:FFFF:FFFF:FFFF:FFF0")]
  206. [InlineData("2001:db8:abcd:0012::0/128", "2001:0DB8:ABCD:0012:0000:0000:0000:0001")]
  207. public void IpV6SubnetMaskDoesNotMatchInvalidIpAddress(string netMask, string ipAddress)
  208. {
  209. var ipAddressObj = IPNetAddress.Parse(netMask);
  210. Assert.False(ipAddressObj.Contains(IPAddress.Parse(ipAddress)));
  211. }
  212. [Theory]
  213. [InlineData("10.0.0.0/255.0.0.0", "10.10.10.1/32")]
  214. [InlineData("10.0.0.0/8", "10.10.10.1/32")]
  215. [InlineData("10.0.0.0/255.0.0.0", "10.10.10.1")]
  216. [InlineData("10.10.0.0/255.255.0.0", "10.10.10.1/32")]
  217. [InlineData("10.10.0.0/16", "10.10.10.1/32")]
  218. [InlineData("10.10.0.0/255.255.0.0", "10.10.10.1")]
  219. [InlineData("10.10.10.0/255.255.255.0", "10.10.10.1/32")]
  220. [InlineData("10.10.10.0/24", "10.10.10.1/32")]
  221. [InlineData("10.10.10.0/255.255.255.0", "10.10.10.1")]
  222. public void TestSubnetContains(string network, string ip)
  223. {
  224. Assert.True(IPNetAddress.TryParse(network, out var networkObj));
  225. Assert.True(IPNetAddress.TryParse(ip, out var ipObj));
  226. Assert.True(networkObj.Contains(ipObj));
  227. }
  228. [Theory]
  229. [InlineData("192.168.1.2/24,10.10.10.1/24,172.168.1.2/24", "172.168.1.2/24", "172.168.1.2/24")]
  230. [InlineData("192.168.1.2/24,10.10.10.1/24,172.168.1.2/24", "172.168.1.2/24, 10.10.10.1", "172.168.1.2/24,10.10.10.1/24")]
  231. [InlineData("192.168.1.2/24,10.10.10.1/24,172.168.1.2/24", "192.168.1.2/255.255.255.0, 10.10.10.1", "192.168.1.2/24,10.10.10.1/24")]
  232. [InlineData("192.168.1.2/24,10.10.10.1/24,172.168.1.2/24", "192.168.1.2/24, 100.10.10.1", "192.168.1.2/24")]
  233. [InlineData("192.168.1.2/24,10.10.10.1/24,172.168.1.2/24", "194.168.1.2/24, 100.10.10.1", "")]
  234. public void TestCollectionEquality(string source, string dest, string result)
  235. {
  236. if (source == null)
  237. {
  238. throw new ArgumentNullException(nameof(source));
  239. }
  240. if (dest == null)
  241. {
  242. throw new ArgumentNullException(nameof(dest));
  243. }
  244. if (result == null)
  245. {
  246. throw new ArgumentNullException(nameof(result));
  247. }
  248. var conf = new NetworkConfiguration()
  249. {
  250. EnableIPV6 = true,
  251. EnableIPV4 = true
  252. };
  253. using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
  254. // Test included, IP6.
  255. Collection<IPObject> ncSource = nm.CreateIPCollection(source.Split(','));
  256. Collection<IPObject> ncDest = nm.CreateIPCollection(dest.Split(','));
  257. Collection<IPObject> ncResult = ncSource.ThatAreContainedInNetworks(ncDest);
  258. Collection<IPObject> resultCollection = nm.CreateIPCollection(result.Split(','));
  259. Assert.True(ncResult.Compare(resultCollection));
  260. }
  261. [Theory]
  262. [InlineData("10.1.1.1/32", "10.1.1.1")]
  263. [InlineData("192.168.1.254/32", "192.168.1.254/255.255.255.255")]
  264. public void TestEquals(string source, string dest)
  265. {
  266. Assert.True(IPNetAddress.Parse(source).Equals(IPNetAddress.Parse(dest)));
  267. Assert.True(IPNetAddress.Parse(dest).Equals(IPNetAddress.Parse(source)));
  268. }
  269. [Theory]
  270. // Testing bind interfaces.
  271. // On my system eth16 is internal, eth11 external (Windows defines the indexes).
  272. //
  273. // This test is to replicate how DNLA requests work throughout the system.
  274. // User on internal network, we're bound internal and external - so result is internal.
  275. [InlineData("192.168.1.1", "eth16,eth11", false, "eth16")]
  276. // User on external network, we're bound internal and external - so result is external.
  277. [InlineData("8.8.8.8", "eth16,eth11", false, "eth11")]
  278. // User on internal network, we're bound internal only - so result is internal.
  279. [InlineData("10.10.10.10", "eth16", false, "eth16")]
  280. // User on internal network, no binding specified - so result is the 1st internal.
  281. [InlineData("192.168.1.1", "", false, "eth16")]
  282. // User on external network, internal binding only - so result is the 1st internal.
  283. [InlineData("jellyfin.org", "eth16", false, "eth16")]
  284. // User on external network, no binding - so result is the 1st external.
  285. [InlineData("jellyfin.org", "", false, "eth11")]
  286. // Dns failure - should skip the test.
  287. // https://en.wikipedia.org/wiki/.test
  288. [InlineData("invalid.domain.test", "", false, "eth11")]
  289. // User assumed to be internal, no binding - so result is the 1st internal.
  290. [InlineData("", "", false, "eth16")]
  291. public void TestBindInterfaces(string source, string bindAddresses, bool ipv6enabled, string result)
  292. {
  293. if (source == null)
  294. {
  295. throw new ArgumentNullException(nameof(source));
  296. }
  297. if (bindAddresses == null)
  298. {
  299. throw new ArgumentNullException(nameof(bindAddresses));
  300. }
  301. if (result == null)
  302. {
  303. throw new ArgumentNullException(nameof(result));
  304. }
  305. var conf = new NetworkConfiguration()
  306. {
  307. LocalNetworkAddresses = bindAddresses.Split(','),
  308. EnableIPV6 = ipv6enabled,
  309. EnableIPV4 = true
  310. };
  311. NetworkManager.MockNetworkSettings = "192.168.1.208/24,-16,eth16|200.200.200.200/24,11,eth11";
  312. using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
  313. NetworkManager.MockNetworkSettings = string.Empty;
  314. _ = nm.TryParseInterface(result, out Collection<IPObject>? resultObj);
  315. // Check to see if dns resolution is working. If not, skip test.
  316. _ = IPHost.TryParse(source, out var host);
  317. if (resultObj != null && host?.HasAddress == true)
  318. {
  319. result = ((IPNetAddress)resultObj[0]).ToString(true);
  320. var intf = nm.GetBindInterface(source, out _);
  321. Assert.Equal(intf, result);
  322. }
  323. }
  324. [Theory]
  325. // Testing bind interfaces. These are set for my system so won't work elsewhere.
  326. // On my system eth16 is internal, eth11 external (Windows defines the indexes).
  327. //
  328. // This test is to replicate how subnet bound ServerPublisherUri work throughout the system.
  329. // User on internal network, we're bound internal and external - so result is internal override.
  330. [InlineData("192.168.1.1", "192.168.1.0/24", "eth16,eth11", false, "192.168.1.0/24=internal.jellyfin", "internal.jellyfin")]
  331. // User on external network, we're bound internal and external - so result is override.
  332. [InlineData("8.8.8.8", "192.168.1.0/24", "eth16,eth11", false, "0.0.0.0=http://helloworld.com", "http://helloworld.com")]
  333. // User on internal network, we're bound internal only, but the address isn't in the LAN - so return the override.
  334. [InlineData("10.10.10.10", "192.168.1.0/24", "eth16", false, "0.0.0.0=http://internalButNotDefinedAsLan.com", "http://internalButNotDefinedAsLan.com")]
  335. // User on internal network, no binding specified - so result is the 1st internal.
  336. [InlineData("192.168.1.1", "192.168.1.0/24", "", false, "0.0.0.0=http://helloworld.com", "eth16")]
  337. // User on external network, internal binding only - so assumption is a proxy forward, return external override.
  338. [InlineData("jellyfin.org", "192.168.1.0/24", "eth16", false, "0.0.0.0=http://helloworld.com", "http://helloworld.com")]
  339. // User on external network, no binding - so result is the 1st external which is overriden.
  340. [InlineData("jellyfin.org", "192.168.1.0/24", "", false, "0.0.0.0 = http://helloworld.com", "http://helloworld.com")]
  341. // User assumed to be internal, no binding - so result is the 1st internal.
  342. [InlineData("", "192.168.1.0/24", "", false, "0.0.0.0=http://helloworld.com", "eth16")]
  343. // User is internal, no binding - so result is the 1st internal, which is then overridden.
  344. [InlineData("192.168.1.1", "192.168.1.0/24", "", false, "eth16=http://helloworld.com", "http://helloworld.com")]
  345. public void TestBindInterfaceOverrides(string source, string lan, string bindAddresses, bool ipv6enabled, string publishedServers, string result)
  346. {
  347. if (lan == null)
  348. {
  349. throw new ArgumentNullException(nameof(lan));
  350. }
  351. if (bindAddresses == null)
  352. {
  353. throw new ArgumentNullException(nameof(bindAddresses));
  354. }
  355. var conf = new NetworkConfiguration()
  356. {
  357. LocalNetworkSubnets = lan.Split(','),
  358. LocalNetworkAddresses = bindAddresses.Split(','),
  359. EnableIPV6 = ipv6enabled,
  360. EnableIPV4 = true,
  361. PublishedServerUriBySubnet = new string[] { publishedServers }
  362. };
  363. NetworkManager.MockNetworkSettings = "192.168.1.208/24,-16,eth16|200.200.200.200/24,11,eth11";
  364. using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
  365. NetworkManager.MockNetworkSettings = string.Empty;
  366. if (nm.TryParseInterface(result, out Collection<IPObject>? resultObj) && resultObj != null)
  367. {
  368. // Parse out IPAddresses so we can do a string comparison. (Ignore subnet masks).
  369. result = ((IPNetAddress)resultObj[0]).ToString(true);
  370. }
  371. var intf = nm.GetBindInterface(source, out int? _);
  372. Assert.Equal(intf, result);
  373. }
  374. [Theory]
  375. [InlineData("185.10.10.10,200.200.200.200", "79.2.3.4", true)]
  376. [InlineData("185.10.10.10", "185.10.10.10", false)]
  377. [InlineData("", "100.100.100.100", false)]
  378. public void HasRemoteAccess_GivenWhitelist_AllowsOnlyIpsInWhitelist(string addresses, string remoteIp, bool denied)
  379. {
  380. // Comma separated list of IP addresses or IP/netmask entries for networks that will be allowed to connect remotely.
  381. // If left blank, all remote addresses will be allowed.
  382. var conf = new NetworkConfiguration()
  383. {
  384. EnableIPV4 = true,
  385. RemoteIPFilter = addresses.Split(','),
  386. IsRemoteIPFilterBlacklist = false
  387. };
  388. using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
  389. Assert.NotEqual(nm.HasRemoteAccess(IPAddress.Parse(remoteIp)), denied);
  390. }
  391. [Theory]
  392. [InlineData("185.10.10.10", "79.2.3.4", false)]
  393. [InlineData("185.10.10.10", "185.10.10.10", true)]
  394. [InlineData("", "100.100.100.100", false)]
  395. public void HasRemoteAccess_GivenBlacklist_BlacklistTheIps(string addresses, string remoteIp, bool denied)
  396. {
  397. // Comma separated list of IP addresses or IP/netmask entries for networks that will be allowed to connect remotely.
  398. // If left blank, all remote addresses will be allowed.
  399. var conf = new NetworkConfiguration()
  400. {
  401. EnableIPV4 = true,
  402. RemoteIPFilter = addresses.Split(','),
  403. IsRemoteIPFilterBlacklist = true
  404. };
  405. using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
  406. Assert.NotEqual(nm.HasRemoteAccess(IPAddress.Parse(remoteIp)), denied);
  407. }
  408. }
  409. }