简体   繁体   English

锁定环境中 RMIscoketFactory 中基于 java 的应用程序出现问题

[英]Issue with java-based app in RMIScoketFactory within locked down environment

Our company uses a java application as one of its core business applications - it works fine on the existing Windows 7 environment.我们公司使用 java 应用程序作为其核心业务应用程序之一——它在现有的 Windows 7 环境中运行良好。

One of (the many) things I'm doing is moving the organization to windows 10 21H2 - with a greater focus on security.我正在做的(许多)事情之一是将组织转移到 windows 10 21H2 - 更加关注安全性。

This core business application fails within a secured desktop.此核心业务应用程序在安全桌面内失败。 By secured, i mean following the CIS Windows 10 lockdown recommendations on an if not/why not basis - so if there is a reason not to follow one, we don't.通过安全,我的意思是遵循 CIS Windows 10 锁定建议,如果不/为什么不基于 - 所以如果有理由不遵循,我们不遵循。

After a great deal of troubleshooting, i believe the core of the issue is the following lines from the application经过大量的故障排除后,我相信问题的核心是应用程序中的以下几行

Found network address: /0:0:0:0:0:0:0:1 (loopback)
Found network address: /127.0.0.1 (loopback)
java.lang.IllegalStateException: No suitable network interface found.
 at <appname>/net.MulitopleNetworkadapaterRMISocketfactory.(init)
Couldn't create socketfactory: No suitable network interface found.

This occurs running with the firewall off and running from an elevated command prompt - so these basics have been covered off.这会在防火墙关闭并从提升的命令提示符运行时发生 - 因此这些基础知识已被覆盖。

I don't know Java at all - and what I'm looking for assistance on is anyone that knows "socketfactory" - how it works.我根本不知道 Java - 我正在寻求帮助的是任何知道“socketfactory”的人 - 它是如何工作的。 Will it be running all commands in a user security context?它会在用户安全上下文中运行所有命令吗? What method does it use to to lookup the local NIC's?它使用什么方法来查找本地网卡? I'm trying to work out where it is being blocked.我正在尝试找出它被阻止的位置。

I'm accepting that it is one of the security lockdowns causing the issue - but I'm having trouble finding it and would like some pointers.我接受这是导致问题的安全锁定之一 - 但我无法找到它并希望得到一些指示。

As far as asking the vendor... well... they are not helpful.至于询问供应商......嗯......他们没有帮助。

I've trawled event logs and process monitor with no success我搜索了事件日志和进程监视器,但没有成功

Sorry for the delay on this - the issue ended up being that IPv6 was disabled.对此延迟表示抱歉 - 问题最终是 IPv6 被禁用。 Re-enabled that - and the application was happy again.重新启用它 - 应用程序再次感到高兴。

For others reference - https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows供其他参考 - https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM