Results 1 to 5 of 5

Thread: ufw: 'Apache', 'Apache Full', 'Apache Secure'

  1. #1
    Join Date
    Mar 2007
    Location
    Wenatchee, WA
    Beans
    Hidden!
    Distro
    Ubuntu

    ufw: 'Apache', 'Apache Full', 'Apache Secure'

    Hello all,

    Taking some first steps with my new Ubuntu 9.04 server. I was fixin' to open up access to http & smb for BackupPC, using ufw.

    Code:
    monte@blackbetty:~$ sudo ufw app list
    Available applications:
      Apache
      Apache Full
      Apache Secure
      OpenSSH
      Postfix
      Postfix Submission
      Samba
    monte@blackbetty:~$
    SSH & Samba I expected. Postfix is only there for local mail, so no external access necessary. The 'Apache', 'Apache Full', and 'Apache Secure' got me wondering, though.

    Thinking that maybe 'Apache Secure' was a ufw profile for secure (SSL) connections, I ran the following command:

    Code:
    monte@blackbetty:~$ sudo ufw app info Apache Secure
    Profile: Apache
    Title: Web Server
    Description: Apache v2 is the next generation of the omnipresent Apache web
    server.
    
    Port:
      80/tcp
    monte@blackbetty:~$
    which seems to indicate that its going to just open up port 80, like a regular web server would use. FWIW, running the 'ufw app info' for the other two profiles returns *exactly* the same information.

    Code:
    man ufw
    led me to /etc/ufw/applications.d/, specifically the file 'apache2.2-common' which contained the following:

    Code:
    [Apache]
    title=Web Server
    description=Apache v2 is the next generation of the omnipresent Apache web server.
    ports=80/tcp
    
    [Apache Secure]
    title=Web Server (HTTPS)
    description=Apache v2 is the next generation of the omnipresent Apache web server.
    ports=443/tcp
    
    [Apache Full]
    title=Web Server (HTTP,HTTPS)
    description=Apache v2 is the next generation of the omnipresent Apache web server.
    ports=80,443/tcp
    I'm guessing from that there actually *is* some difference between the three profiles... which begs the question, 'Why does the profile reported by ufw not reflect the config file?'

    Any ideas?

    TIA,

    Monte

  2. #2
    Join Date
    Mar 2007
    Location
    Wenatchee, WA
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: ufw: 'Apache', 'Apache Full', 'Apache Secure'

    Btt

  3. #3
    Join Date
    Mar 2007
    Location
    Wenatchee, WA
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: ufw: 'Apache', 'Apache Full', 'Apache Secure'

    See here for an informative look @ ufw...

    http://blog.***************/linux/fir...omment-page-1/

  4. #4
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: ufw: 'Apache', 'Apache Full', 'Apache Secure'

    Quote Originally Posted by memilanuk View Post
    See here for an informative look @ ufw...

    http://blog.***************/linux/fir...omment-page-1/
    I was going to explain it, but I see you found my blog, thank you for referring to it.

    For the benefit of others, the ufw profiles Apache , Apache Secure, and Apache Full open speicific ports.

    Apache = port 80
    Apache Secure = port 443
    Apache Full = both port 80 and 443

    IMO they should have named "Apache Secure" a bit better, https, ssl ??

    You may also define custom profiles , see my blog if interested (it is easy, but beyond this post).
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  5. #5

    Re: ufw: 'Apache', 'Apache Full', 'Apache Secure'

    Quote Originally Posted by memilanuk View Post
    Code:
    monte@blackbetty:~$ sudo ufw app Apache Secure
    Profile: Apache
    Title: Web Server
    Description: Apache v2 is the next generation of the omnipresent Apache web
    server.
    
    Port:
      80/tcp
    monte@blackbetty:~$
    FWI, you need to enclose the app name in quotes if it contains spaces.
    Code:
    $ sudo ufw app info "Apache Secure"
    Profile: Apache Secure
    Title: Web Server (HTTPS)
    Description: Apache v2 is the next generation of the omnipresent Apache web
    server.
    
    Port:
      443/tcp
    $

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •