In: Computer Science
IP Mask Gateway
S1 192.168.1.1 255.255.255.192 192.168.1.62
PC2 192.168.2.1 255.255.255.192 192.168.2.62
PC1 192.168.3.1 255.255.255.192 192.168.3.62
Off
*****
NetSh Advfirewall set allprofiles state off
On
*******
NetSh Advfirewall set allprofiles state on
Status
**********
Netsh Advfirewall show allprofiles

Answer 2
***********
netsh advfirewall firewall set rule name="Ping Request" new remoteip=192.168.1.1
Answer 3
**************
netsh advfirewall firewall add rule name="Web Filtering" protocol=TCP dir=out localport=80 action=allow
if you have any doubt then please ask me without any hesitation in
the comment section below , if you like my answer then please
thumbs up for the answer , before giving thumbs down please discuss
the question it may possible that we may understand the question
different way and i can edit and change the answers if you argue,
thanks :)