Want to subscribe to topics you're interested in?
Become a Member

OVH OVH Firewall

Discussion in 'Dedicated server hosting' started by Jimmy, Apr 24, 2017.

  1. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    4:53 PM
    1.17.x
    MariaDB 10.3.x
    Wanted to start a thread about setting up / settings for using OVH Firewall.

    It would be great a develop a default setup for people using the OVH Firewall and CMM. Anyone who has suggestions, please post them.


    Setup
    Firewall Network | OVH Docs
    • You can set up to 20 rules per IP.
    • The firewall network is not taken into account in the OVH network, so the rules implemented do not affect the connections inside the OVH network.
     
  2. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    4:53 PM
    1.17.x
    MariaDB 10.3.x
  3. eva2000

    eva2000 Administrator Staff Member

    50,461
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    6:53 AM
    Nginx 1.25.x
    MariaDB 10.x
  4. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    4:53 PM
    1.17.x
    MariaDB 10.3.x
    I'm not that great with firewalls, but I'll test out and see what happens. Post the results here. Hopefully we can come up with a default setup for OVH.
     
  5. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    4:53 PM
    1.17.x
    MariaDB 10.3.x
    @eva2000 just curious why other ports were missing from the Vultr list? https://community.centminmod.com/th...plicate-csf-firewall-inbound-rule-sets.11433/

    One problem with OVH Firewall is that I can't figure out how to add a range? Destination port text field only takes 5 characters so I can't enter a range.

    Looks like port range isn't available. OVH anti-ddos PRO firewall rules
     
    Last edited: Apr 27, 2017
  6. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    4:53 PM
    1.17.x
    MariaDB 10.3.x
    Found this online: OVH IP Configure firewall Add Rule for Anti DDOS

    [​IMG]

    Read here a comment about the above rules: How to configure OVH FIREWALL, DDoS protection?
    I'm not even sure about the above rules. :(
     
    Last edited: Apr 27, 2017
  7. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    4:53 PM
    1.17.x
    MariaDB 10.3.x
  8. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    4:53 PM
    1.17.x
    MariaDB 10.3.x
    Wow, permanent mitigation really slows things down (nginx update) not sure about an actual running site - don't have one online to test yet.

    I did read somewhere that it takes some time for the automatic mitigation to kick in and the attack has to be a certain level before the firewall recognizes as an attack. One of the reasons why permanent mitigation was advised, so the site doesn't have any downtime. Though, it was noted that you'd take a millisecond(s) hit with perm mitigation.

    Using the rules outlined here: https://community.centminmod.com/posts/48899/ seems to work. Not having any issues connecting. Since OVH Firewall doesn't do port ranges I was thinking that maybe a general approach would work best, stopping major attacks before the server. Allow CSF to handle the rest.

    If anyone has an OVH Firewall setup they want to share, please post it. I'd love to know how other people are setting up the firewall.
     
    Last edited: Apr 27, 2017
  9. eva2000

    eva2000 Administrator Staff Member

    50,461
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    6:53 AM
    Nginx 1.25.x
    MariaDB 10.x
    Interesting indeed.. let us know how it goes long term wise

    Vultr and OVH are inbound firewalls only not outbound, the other CSF Firewall default ports are for smtp/pop3/imap in and outbound where you only need outbound for Centmin Mod default. But i added inbound just in case folks setup pop3/imap servers themselves.
     
  10. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    4:53 PM
    1.17.x
    MariaDB 10.3.x
    If you come across any other information or have suggestions on what rules to setup, let me know. Judging by the other OVH thread (20+ pages) it might be good to have some recommendations to give people who're using OVH w/ CMM and opt to use their firewall.

    I think at this point I'm just going to delete the rules and go with the default settings allowing OVH to be the first line and CSF to block ports etc. I did respond to in the comments @ OVH IP Configure firewall Add Rule for Anti DDOS but it's from 2015 and not sure if the guy is going to respond backing up his rule choices.
     
  11. rdan

    rdan Well-Known Member

    5,419
    1,386
    113
    May 25, 2014
    Ratings:
    +2,167
    Local Time:
    4:53 AM
    Mainline
    10.2
    ON CSF and OVH Firewall, list of Ports I only allow:
    Code:
    TCP_IN =  "22,53,80,443"
    TCP_OUT = "22,53,80,443"
    
    TCP6_IN =  "22,53,80,443"
    TCP6_OUT = "22,53,80,443"
    
    UDP_IN =  "67,68,53"
    UDP_OUT = "67,68,53,123"
    
    UDP6_IN =  "53"
    UDP6_OUT = "53,123"
    
     
  12. eva2000

    eva2000 Administrator Staff Member

    50,461
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    6:53 AM
    Nginx 1.25.x
    MariaDB 10.x
    I guess you don't use Pure-ftpd virtual ftp user and only root SSH for uploads? As that restricted port list would not allow Pure-ftpd FTP over TLS secure passive FTP mode to work.
     
  13. rdan

    rdan Well-Known Member

    5,419
    1,386
    113
    May 25, 2014
    Ratings:
    +2,167
    Local Time:
    4:53 AM
    Mainline
    10.2
    Yes :)
     
  14. rdan

    rdan Well-Known Member

    5,419
    1,386
    113
    May 25, 2014
    Ratings:
    +2,167
    Local Time:
    4:53 AM
    Mainline
    10.2
    Sad thing though is they Ignore/Whitelist all OVH IP even from other location :/

    1 (1).png
     
  15. eva2000

    eva2000 Administrator Staff Member

    50,461
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    6:53 AM
    Nginx 1.25.x
    MariaDB 10.x
    They as in OVH Firewall or CSF Firewall?
     
  16. rdan

    rdan Well-Known Member

    5,419
    1,386
    113
    May 25, 2014
    Ratings:
    +2,167
    Local Time:
    4:53 AM
    Mainline
    10.2
    OVH firewall.