Firewall for allow ping from specified IP

wei liu 86 Reputation points
2024-10-28T05:04:31.86+00:00

Good day,

Somebody could help this issue?

Set up allow inbound for a ping access from a specified ip, (192.168.xxx.0)

add 192.168.xxx.0 to remote ip. It does not work.

Brgds

Liu Wei

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Mohammad Sartaj Khan 150 Reputation points
    2024-10-29T04:48:24.2166667+00:00

    Hi ,

    Please do the below steps

    If you are using Windows Firewall on all machines.

    Create GPO:

    Computer Configuration → Policies → Windows Settings → Security Settings → Windows Firewall with Advanced Security → Inbound Rules New Rule → Custom

    All Programs Protocol type: ICMPv4 Local IP addresses: Any Remote IP addresses: Put only the one you need. Allow the connection Select Profiles you use. Give the rule a name.

    To make sure that all other IPs can’t ping, you have to make one more rule which blocks all ICMPv4 traffic, and in the first rule change action to allow the connection if secure and check Override block rules.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Yanhong Liu 14,195 Reputation points Microsoft External Staff
    2024-10-29T08:27:11.1933333+00:00

    Hello,

    Thank you for posting in Q&A forum.

    The following operations can be performed to achieve the effect you want.

    Windows Firewall Settings

    Open Firewall Settings:

    Press Win + R, type firewall.cpl, and press Enter.

    Go to Advanced Settings:

    On the left side of the firewall window, click “Advanced Settings”.

    Create inbound rules:

    Select “Inbound Rules” in the left menu.

    Click “New Rule” on the right side.

    Select “Custom” and click “Next”.

    On the “Programs” page, select “All Programs” and click “Next”.

    On the Protocols and Ports page, select ICMPv4 (for ping) and click Next.

    On the Scope page, set the remote IP address:

    In the “Remote IP Addresses” section, select “These IP addresses”.

    Click Add, enter 192.168.xxx.0, and click OK.

    On the Actions page, select Allow Connection and click Next.

    On the Profile page, select the applicable profile (usually Domain, Private and Public) and click Next. “On the Profile page, select the applicable profile (usually Domain, Private, and Public) and click Next.

    Give the rule a name, for example “Allow Ping from Specific IP”, and click Finish.

    I hope the information above is helpful.

    Best Regards,

    Yanhong Liu

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.