Rule 1 :
Code:
$ sudo ufw allow proto tcp from 192.168.1.1 to any port 443
$ sudo ufw status
To Action From
-- ------ ----
443/tcp ALLOW 192.168.1.1
Rule 2 :
Code:
$ sudo ufw allow proto tcp from 192.168.1.1 to 192.168.1.30 port 443
$ sudo ufw status
To Action From
-- ------ ----
192.168.1.30 443/tcp ALLOW 192.168.1.1
Both rules allow access from 192.168.1.1 to port 443 of 192.168.1.30 so why use one and not the other ? Perhaps rule 2 is used in the event of the https server having two or more network interfaces ? Could someone kindly explain the difference.
Thanks
uc
Bookmarks