Quantcast
Channel: Network Infrastructure Servers forum
Viewing all articles
Browse latest Browse all 5877

How to write Firewall rule to prevent inbound connection from outside the system while allow inbound connection for application with in the server

$
0
0

Hi

I have a server where there are 2 process ( .net and java ) communicate using WCF service using TCP binding .Java application host the WCF service at a random port ( any free port) and listen for message from the .net application.

I want to write a firewall rule for the random port that will allow inbound connection only for the "JavaApp"  and block any application out side the server .

Does the following rule full fill this

netsh advfirewall firewall add rule name="JavaAppName" dir=in action=allow program="JAVA_APPLICATIONPATH" enable=yes

thanks and regards

Somaraj


Viewing all articles
Browse latest Browse all 5877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>