bashPenguin
Gawd
- Joined
- Jan 10, 2007
- Messages
- 607
Hi everyone.
So I have this problem that randomly appears on the test machines I use. I wrote some scripts that would install a Windows monitorying component, and then open up a port in the RRAS firewall to allow users to interact with the component. Randomly, after I open the firewall port (via netsh), my remote desktop session will terminate, and afterwards, the machine will not accept any inbound connections (RDP, web server requests, SNMP queries), and I have to physically go the machine and reboot it, which will clear up the problem.
This is the line in the script that adds the port to the firewall to open up:
I think that is right, and like I said, this only randomly happens, but it still happens, which is highly undesirable since some people using these machines put them offsite, maybe in another state.
Anyone had this problem before? I still can't reproduce it accurately, so it's really hard to pin down.
So I have this problem that randomly appears on the test machines I use. I wrote some scripts that would install a Windows monitorying component, and then open up a port in the RRAS firewall to allow users to interact with the component. Randomly, after I open the firewall port (via netsh), my remote desktop session will terminate, and afterwards, the machine will not accept any inbound connections (RDP, web server requests, SNMP queries), and I have to physically go the machine and reboot it, which will clear up the problem.
This is the line in the script that adds the port to the firewall to open up:
Code:
netsh.exe routing ip nat add portmapping name="Local Area Connection" proto=UDP publicip=0.0.0.0 publicport=161 privateip=127.0.0.1 privateport=161
I think that is right, and like I said, this only randomly happens, but it still happens, which is highly undesirable since some people using these machines put them offsite, maybe in another state.
Anyone had this problem before? I still can't reproduce it accurately, so it's really hard to pin down.