Windows 10: How to configure firewall to allow inbound traffic from only certain IP addresses?

Discus and support How to configure firewall to allow inbound traffic from only certain IP addresses? in Windows 10 Network and Sharing to solve the problem; Hey, I am using a windows server to serve my website. I am also using a reverse proxy to protect against DDoS attacks. I need to allow traffic from... Discussion in 'Windows 10 Network and Sharing' started by Kazuto_Kirigaya, Nov 15, 2020.

  1. How to configure firewall to allow inbound traffic from only certain IP addresses?


    Hey, I am using a windows server to serve my website. I am also using a reverse proxy to protect against DDoS attacks. I need to allow traffic from only the reverse proxies IP addresses. I have a sample of what I want to do that uses Linux iptables.


    iptables -I INPUT -p tcp -m multiport --dports http,https -s 51.254.57.212 -j ACCEPT

    iptables -I INPUT -p tcp -m multiport --dports http,https -s 51.254.57.49 -j ACCEPT

    ... more rules similar to above...

    iptables -A INPUT -p tcp -m multiport --dports http,https -j DROP


    I have tried using

    netsh advfirewall set allprofiles firewallpolicy blockinbound, allowoutbound

    netsh advfirewall firewall add rule name="Core Networking HTTP-IN" dir=in action=allow protocol=TCP remoteip=51.254.57.212 remoteport=80

    But the first command fails. I am not sure if this is the right way to do it. If someone knows any other way to achieve similar results, that would work as well. Any help will be appreciated.

    :)
     
    Kazuto_Kirigaya, Nov 15, 2020
    #1
Thema:

How to configure firewall to allow inbound traffic from only certain IP addresses?

Loading...
  1. How to configure firewall to allow inbound traffic from only certain IP addresses? - Similar Threads - configure firewall allow

  2. Hello, I've created firewall rules to block several remote ip addresses for inbound...

    in Windows 10 Gaming
    Hello, I've created firewall rules to block several remote ip addresses for inbound...: Hello, I've created firewall rules to block several remote ip addresses for inbound connections. Windows defender firewall 11 seems to be ignoring my custom firewall rules, and I ma still receiving junk & porn gmails from these ip addresses. I've created a new custom rule and...
  3. Hello, I've created firewall rules to block several remote ip addresses for inbound...

    in Windows 10 Software and Apps
    Hello, I've created firewall rules to block several remote ip addresses for inbound...: Hello, I've created firewall rules to block several remote ip addresses for inbound connections. Windows defender firewall 11 seems to be ignoring my custom firewall rules, and I ma still receiving junk & porn gmails from these ip addresses. I've created a new custom rule and...
  4. Windows Defender only allows inbound app traffic even with outbound app traffic specified.

    in Windows 10 Gaming
    Windows Defender only allows inbound app traffic even with outbound app traffic specified.: Hi Everyone thanks for looking in,I would welcome any help in finding a resolution to this :I have the latest Microsoft Windows Professional again now installed oddly the Windows Defender even when its set to all out bound traffic does not seem to allow app outbound traffic...
  5. Windows Defender only allows inbound app traffic even with outbound app traffic specified.

    in Windows 10 Software and Apps
    Windows Defender only allows inbound app traffic even with outbound app traffic specified.: Hi Everyone thanks for looking in,I would welcome any help in finding a resolution to this :I have the latest Microsoft Windows Professional again now installed oddly the Windows Defender even when its set to all out bound traffic does not seem to allow app outbound traffic...
  6. Windows Defender only allows inbound app traffic even with outbound app traffic specified.

    in AntiVirus, Firewalls and System Security
    Windows Defender only allows inbound app traffic even with outbound app traffic specified.: Hi Everyone thanks for looking in,I would welcome any help in finding a resolution to this :I have the latest Microsoft Windows Professional again now installed oddly the Windows Defender even when its set to all out bound traffic does not seem to allow app outbound traffic...
  7. Firewall rule(s) to allow all traffic through the firewall?

    in Windows 10 Network and Sharing
    Firewall rule(s) to allow all traffic through the firewall?: I'm tired of seeing the message that my firewall is disabled all the time. Is there a simply rule or rules that I can apply to the firewall that will allow all traffic to flow both ways? I have a hardware firewall that keeps the network safe, so the Windows firewall isn't...
  8. IP Configuration address

    in Windows 10 Network and Sharing
    IP Configuration address: How would I find the correct IP Configuration address for my Windows 10 laptop https://answers.microsoft.com/en-us/windows/forum/all/ip-configuration-address/87e0e87f-4f02-4b5e-acfd-941a041957ef
  9. IP address cannot be configured no internet

    in AntiVirus, Firewalls and System Security
    IP address cannot be configured no internet: This happened to my desktop computer a few months ago and didn't know what happened. My .Coworker suggested that maybe I needed a new I internet card for it since I wasn't able to access my wireless internet. Today on my laptop it came up and I had something come up and say...
  10. Windows 10 firewall allow only traffic when connected to VPN (OpenVPN)

    in Windows 10 Network and Sharing
    Windows 10 firewall allow only traffic when connected to VPN (OpenVPN): How do I configure the Windows firewall to only allow internet traffic when my computer is connected to my VPN? I am using OpenVPN and I wish to apply this as a global rule or global set of rules, not only for a selected application/applications. It would though be necessary...