Java Spring启动应用程序无法通过VPN连接到服务器

Java Spring启动应用程序无法通过VPN连接到服务器,java,spring-boot,centos7,vpn,openconnect,Java,Spring Boot,Centos7,Vpn,Openconnect,我有一个通过vpn连接到服务器的spring boot应用程序。它在windows上运行良好,但在linux服务器上部署时会抛出 org.springframework.ws.client.WebServiceIOException: I/O error: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out at org.springframework.ws.client.core

我有一个通过vpn连接到服务器的spring boot应用程序。它在windows上运行良好,但在linux服务器上部署时会抛出

org.springframework.ws.client.WebServiceIOException: I/O error: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:561) ~[spring-ws-core-3.0.6.RELEASE.jar:na]

linux操作系统是Centos。windows上使用的vpn客户端是AnyConnect,而Linux客户端是OpenConnect。关于如何解决这个问题,有什么想法吗?

配置操作系统防火墙以允许连接。@Andreas我关闭了firewalld服务,但它仍然无法连接。可能是SELinux干扰了。@Andreas SELinux在系统上被禁用