Hello, im trying to create a programm to add IPs to a "allow access list" for my services.
I already got the command to add an ip to my firewall rule, but the problem is, that the existent IPs are being deleted and only the new one seted remain on the list.
The command is: netsh advfirewall firewall set rule name="test" dir=in new localip=15.12.26.125
I already got a "solution" but im worried that this "solution" could disconnect connected clients from my service, so, im trying to do on the right way. ( -f scripfile ) .
Can someone help me?
I already got the command to add an ip to my firewall rule, but the problem is, that the existent IPs are being deleted and only the new one seted remain on the list.
The command is: netsh advfirewall firewall set rule name="test" dir=in new localip=15.12.26.125
I already got a "solution" but im worried that this "solution" could disconnect connected clients from my service, so, im trying to do on the right way. ( -f scripfile ) .
Can someone help me?