Results 1 to 8 of 8

Thread: UFW question

  1. #1
    Join Date
    Nov 2008
    Beans
    32

    Question UFW question

    Hi,

    On system :

    # ufw status
    Status: active

    To Action From
    -- ------ ----
    22 DENY Anywhere
    Apache DENY Anywhere
    80 ALLOW 10.206.20.0/24

    As one can see, te deny from everywhere to Apache messes with rule 3, the allow to port 80.

    How can I either:

    1) delete rule 2 and rule 3
    2) add a rule for app Apache that allows from 10.206.20.0/24

    Many thanks in advance.
    z


    PS. No, I don't want to use another firewall. iptables is fine.

  2. #2
    Join Date
    Nov 2008
    Beans
    32

    Re: UFW question

    Found out how to delete rule 3:

    # ufw delete allow from 10.206.20.0/24 to any port 80
    Rule deleted

    Still cannot work out the app rule:
    # ufw delete deny app apache
    ERROR: Need 'to' or 'from' clause
    # ufw delete deny app Apache
    ERROR: Need 'to' or 'from' clause
    # ufw delete deny app Apache to any port
    ERROR: Wrong number of arguments

  3. #3
    Join Date
    Nov 2009
    Beans
    12
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: UFW question

    install GUFW for a grahical interface as it is easier to remove and add rules for UFW imo

  4. #4
    Join Date
    Nov 2008
    Beans
    32

    Post Re: UFW question

    Quote Originally Posted by Fast_Wyvern View Post
    install GUFW for a grahical interface as it is easier to remove and add rules for UFW imo
    I did anticipate you reply...

    Sorry, when I wrote: PS. No, I don't want to use another firewall. iptables is fine. I also meant to cover GUIs as well.

    Let me add.
    i) X is not installed.
    ii) These is a headless server.

  5. #5
    Join Date
    Nov 2009
    Beans
    12
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: UFW question

    Sorry my assistance was not what you wanted

  6. #6
    Join Date
    Nov 2008
    Beans
    32

    Re: UFW question

    Out of hope, I added the gufw to the server and Xdisplayed it back to another PC. GUFW cannot remove the rule. One can select the rule and try and delete it but the message "error performing operation" is given.

    As a workaround, I ran:
    ufw allow Apache

    and this dropped the deny rule so at least it is allowed. However, I think I shall steer away from ufw and use iptables directly. At least I shall have full control over what it does and I can confidently add and delete rules.

  7. #7
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: UFW question

    Since ufw is (reportedly) a front end for iptables, I presume you should still be able to edit the iptables rules directly. Good Luck!
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

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

    Re: UFW question

    Hmmm... from looking at the tutorial here, it looks like your syntax is a tad off...

    Code:
    # sudo ufw allow Apache
    Rule added
    
    # ufw status
    Status: active
    
    To Action From
    – —— —-
    22 LIMIT Anywhere
    Apache ALLOW Anywhere
    
    # sudo ufw delete allow Apache
    Rule deleted
    
    # ufw status
    Status: active
    
    To Action From
    – —— —-
    22 LIMIT Anywhere

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
  •