Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 17:59:26

Author Topic: Iptables Best Rules for Kloxo-MR  (Read 13067 times)

0 Members and 2 Guests are viewing this topic.

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Iptables Best Rules for Kloxo-MR
« on: 2013-08-08, 06:59:43 »
I will use my VPS to shared hosting and i want to secure it against DDOS Attacks and everything that will be necessary.

For what i can see Kloxo-MR don't use Iptables or other Firewall.

I want to enable a Firewall like Iptables or other.

What will be the best rules to apply to Iptables Firewall and how can i do that?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Iptables Best Rules for Kloxo-MR
« Reply #1 on: 2013-08-08, 07:54:16 »
All my servers not use IPTables/CSF because I think if using nginx-proxy we already have protect by nginx. Kloxo-MR panel (also Kloxo) have lxguard to protect ssh and ftp port.

But, using IPtables/CSF not bad idea.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Iptables Best Rules for Kloxo-MR
« Reply #2 on: 2013-08-08, 08:01:36 »
I never heard about using a server without Firewall enabled...

Do you what is the best rules to apply to it?

Do you know any good tutorial?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Iptables Best Rules for Kloxo-MR
« Reply #3 on: 2013-08-08, 08:41:12 »
Because not using firewall, I am not intense to explorer this services.

Better install webmin in your server becuase webmin cooperate with Kloxo-MR. All my servers always webmin ready.

We can call Webmin as 'GUI for SSH'.

Firewall module in Webmin more easy to setting rather than manual settting.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Iptables Best Rules for Kloxo-MR
« Reply #4 on: 2013-08-08, 16:29:19 »
Any good tutorial to setup webadmin?

How much memory webadmin will consume?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Iptables Best Rules for Kloxo-MR
« Reply #5 on: 2013-08-08, 16:33:06 »
No webadmin but webmin. Go to www.webmin to know about it.

Webmin itself (like Kloxo-MR) only use 25-40 MB.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Iptables Best Rules for Kloxo-MR
« Reply #6 on: 2013-08-08, 19:00:36 »
I would suggest CSF and I can help you - the install process is easy and it watches everything.

And if you later have more servers you can configure it to cluster and block i.p.'s across your cluster.

It notifies you of ssh access, sudo su access.

I have directories that should never change (web) it watches them - if potential hack does occur I know in real time.

It beats LxGuard every time.  I have LxGuard set to 5 - CSF to 10.  CSF always blocks the i.p. before LxGuard.  I think it deals with when and how frequent it reads the logs.

Memory is minimal - processes are minimal. (although it is running so it does take a small footprint)

If you need help let me know.  There are some rules for csf.pignore Kloxo specific so you don't get a million emails about "suspicious process".

I learnt most from hours of research and trial and error.  But I know that CSF blocks about 10 i.p.'s a day (temporary blocks) for port scanning. (10 hits on ports not available)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline starbolt

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Iptables Best Rules for Kloxo-MR
« Reply #7 on: 2013-08-08, 19:16:14 »
Kloxo has a ready-to-go firewall script that you can find at http://wiki.lxcenter.org/How+to+secure+ ... h+IPTABLES

It works pretty well on Kloxo, but on Kloxo-MR you will have to add a couple rules in it. If you are aware on which softwares you are using, just add the ports they are listening to the script and you should be all set.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Iptables Best Rules for Kloxo-MR
« Reply #8 on: 2013-08-08, 19:43:00 »
Quote from: "chrisf"
I would suggest CSF and I can help you - the install process is easy and it watches everything.

And if you later have more servers you can configure it to cluster and block i.p.'s across your cluster.

It notifies you of ssh access, sudo su access.

I have directories that should never change (web) it watches them - if potential hack does occur I know in real time.

It beats LxGuard every time.  I have LxGuard set to 5 - CSF to 10.  CSF always blocks the i.p. before LxGuard.  I think it deals with when and how frequent it reads the logs.

Memory is minimal - processes are minimal. (although it is running so it does take a small footprint)

If you need help let me know.  There are some rules for csf.pignore Kloxo specific so you don't get a million emails about "suspicious process".

I learnt most from hours of research and trial and error.  But I know that CSF blocks about 10 i.p.'s a day (temporary blocks) for port scanning. (10 hits on ports not available)

I am interested in this one ;)

Do you have any tutorial?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Iptables Best Rules for Kloxo-MR
« Reply #9 on: 2013-08-08, 19:45:01 »
Quote from: "starbolt"
Kloxo has a ready-to-go firewall script that you can find at http://wiki.lxcenter.org/How+to+secure+ ... h+IPTABLES

It works pretty well on Kloxo, but on Kloxo-MR you will have to add a couple rules in it. If you are aware on which softwares you are using, just add the ports they are listening to the script and you should be all set.

Thank you for this tip ;)

I will try CSF firewall first.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Iptables Best Rules for Kloxo-MR
« Reply #10 on: 2013-08-08, 20:40:33 »
I will write instructions for you.  I will have them posted by tomorrow :)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Iptables Best Rules for Kloxo-MR
« Reply #11 on: 2013-08-08, 21:11:25 »
Just write a tutorial in this forum and then leave the link to it here :)

Many thanks for your help ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Iptables Best Rules for Kloxo-MR
« Reply #12 on: 2013-08-09, 21:30:25 »
Instructions for CSF install with KloxoMR written here:

forum.mratwork.com/viewtopic.php?f=15&t=19200

If you have questions please do it under that post.

Enjoy :)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Iptables Best Rules for Kloxo-MR
« Reply #13 on: 2013-08-09, 21:42:11 »
Many thanks for this very detailed Tutorial  8-)

If you came to Portugal i will pay you a drink  :D
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Iptables Best Rules for Kloxo-MR
« Reply #14 on: 2013-08-09, 21:44:14 »
http://forum.mratwork.com/viewtopic.php?f=15&t=19200

Clickable link :)

No problem!  Glad I can help.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.035 seconds with 18 queries.

web stats analysis