Search results

  1. W

    iptables question, how fatal it is if it can not find IP Set?

    I noticed that most people didn't talk about rules order which matters. This article talks about iptables firewall and discusses rules order and everything about rules from adding, deleting, or updating. Also, regarding the problem you face, you must not block the main ports like SSH or the...
  2. W

    Replacing multiple lines using Sed

    Thanks, I'll check another way.
  3. W

    Replacing multiple lines using Sed

    I have PHP files contains a lot of lines like the above. What I need to achieve is to replace whole 4 PHP lines with another 4 lines using Sed.
  4. W

    Replacing multiple lines using Sed

    Hi, I'm following this tutorial: https://likegeeks.com/sed-linux/ and there is a section about replacing lines. Now, it works great, but my question is how to replace multiple lines like this: if (strlen($llcc) == 5) { $lang = substr(strtolower($llcc),0,2); $country =...
Top