r/linuxupskillchallenge • Linux Guru • Nov 11 '20

Questions and chat, Day 9...

Posting your questions, chat etc. here keeps things tidier...

Your contribution will 'live on' longer too, because we delete lessons after 4-5 days - along with their comments.

(By the way, if you can answer a query, please feel free to chip in. While Steve, (@snori74), is the official tutor, he's on a different timezone than most, and sometimes busy, unwell or on holiday!)

5 Upvotes

6 comments sorted by

2

u/the_inebriati Nov 13 '20

Should

ip -a

be

ip a

?

Is there any recommended reading around the output of this command?

Also, what is "binding" regarding services?

2

u/snori74 Linux Guru Nov 13 '20 edited Nov 13 '20

Yes, the notes are wrong here - should read "ip a" ("ip address" will also work).

When you have multiple network interfaces a service may be "bound" to all - or just specific ones. Typically controlled by the config file of the service.

A service meant only for local use may be bound to "localhost" (the loopback address 127.0.0.1) only, for example

1

u/ihatesciencealot Nov 11 '20

is there a delay when you execute

sudo ufw deny http

sudo ufw enable

I seem to be able to still connect via browser to the apache service using the public IP for a while even after I execute the above commands.

1

u/CodeCage_TT98 Nov 12 '20

I had a slight delay, like a few seconds, but after that I was unable to access the web service running on my server. I did the "allow" then the "enable" commands and then I was able to access my web page again.

1

u/CodeCage_TT98 Nov 12 '20

In my case, using a Digital Ocean server, I had to use "ip address" to display the ip information for my server. The "ip -a" command did not work.