Unable to allow specific ip addresses in ufw

sitilge

I am not able to get my ufw rules working. As far as I understand, the default behavior is to deny all incoming connections thus the command

ufw allow from 192.168.4.3 to any port http

should enable incoming http connections for the specific ip. However, the requests are blocked by the firewall. I've also tried to explicitly deny and then allow but it isn't working either.

The output of ufw status verbose is

To                         Action      From
--                         ------      ----
631/tcp                    ALLOW IN    Anywhere                  
22                         ALLOW IN    Anywhere                  
80                         ALLOW IN    192.168.4.3                     
631/tcp (v6)               ALLOW IN    Anywhere (v6)             
22 (v6)                    ALLOW IN    Anywhere (v6)

The output of netstat -tulnp | grep :80 is

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 336/nginx: master p

Which part of the config / concept am I missing?

Simon

Check the log /var/log/ufw.log. The default logging level (low) should record any blocked requests. Make sure the source IP (SRC field) matches the IP address you are expecting.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to allow traffic from a specific IP for a specific port in UFW?

From Dev

Allow all inbound traffic from specific IP addresses

From Dev

SSH and ufw from multiple ip addresses

From Dev

ip6tables rules to allow port 80 and port 443 traffic to only a few specific IP addresses

From Dev

How to configure UFW to allow IP Forwarding?

From Dev

How to configure UFW to allow IP Forwarding?

From Dev

ufw application profile to allow for specific source ports

From Dev

UFW firewall difference between allow ip and allow port?

From Dev

Syntax for ufw app profiles, specifically to define interfaces and IP addresses

From Dev

UFW: Allow traffic only from a domain with dynamic IP address

From Dev

ufw allow port from ip address range and deny others

From Dev

Why cannot allow/deny specific software in ufw Linux?

From Dev

UFW deletes all port specific ALLOW rules for IPV4

From Dev

block ip addresses that request a specific url

From Dev

Lock down squid proxy to specific IP addresses

From Dev

Web API 2 CORS Won't Allow IP Addresses as Origins

From Dev

Only allow certain ip addresses to register a user in Laravel 5.2

From Dev

Allow outgoing connections only to specific domain/IP

From Dev

Allow MongoDB remote access for specific IP

From Dev

Allow outgoing connections only to specific domain/IP

From Dev

Allow only a specific ip address to an open port

From Dev

How do I configure two IP addresses on a specific vlan

From Dev

How to set hostnames to specific range of IP addresses on DHCP Server?

From Dev

How to set hostnames to specific range of IP addresses on DHCP Server?

From Dev

How do I configure two IP addresses on a specific vlan

From Dev

run specific IP addresses or host names through OpenVPN connection

From Dev

Ban IP by country in UFW

From Dev

Ban IP by country in UFW

From Dev

Docker and UFW with real IP

Related Related

  1. 1

    How to allow traffic from a specific IP for a specific port in UFW?

  2. 2

    Allow all inbound traffic from specific IP addresses

  3. 3

    SSH and ufw from multiple ip addresses

  4. 4

    ip6tables rules to allow port 80 and port 443 traffic to only a few specific IP addresses

  5. 5

    How to configure UFW to allow IP Forwarding?

  6. 6

    How to configure UFW to allow IP Forwarding?

  7. 7

    ufw application profile to allow for specific source ports

  8. 8

    UFW firewall difference between allow ip and allow port?

  9. 9

    Syntax for ufw app profiles, specifically to define interfaces and IP addresses

  10. 10

    UFW: Allow traffic only from a domain with dynamic IP address

  11. 11

    ufw allow port from ip address range and deny others

  12. 12

    Why cannot allow/deny specific software in ufw Linux?

  13. 13

    UFW deletes all port specific ALLOW rules for IPV4

  14. 14

    block ip addresses that request a specific url

  15. 15

    Lock down squid proxy to specific IP addresses

  16. 16

    Web API 2 CORS Won't Allow IP Addresses as Origins

  17. 17

    Only allow certain ip addresses to register a user in Laravel 5.2

  18. 18

    Allow outgoing connections only to specific domain/IP

  19. 19

    Allow MongoDB remote access for specific IP

  20. 20

    Allow outgoing connections only to specific domain/IP

  21. 21

    Allow only a specific ip address to an open port

  22. 22

    How do I configure two IP addresses on a specific vlan

  23. 23

    How to set hostnames to specific range of IP addresses on DHCP Server?

  24. 24

    How to set hostnames to specific range of IP addresses on DHCP Server?

  25. 25

    How do I configure two IP addresses on a specific vlan

  26. 26

    run specific IP addresses or host names through OpenVPN connection

  27. 27

    Ban IP by country in UFW

  28. 28

    Ban IP by country in UFW

  29. 29

    Docker and UFW with real IP

HotTag

Archive