Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How do you restore ipset blocklist at boot of the CentOS (7)?


    Hello,

    i know i can save ipset rules to a file (ipset save > /etc/sysconfig/ipsets), but i wonder what is the best way to make ipset automaticaly load such rules at boot time? Because at this moment, when i restart my CentOS 7 and do command ipset list, it shows nothing. But when i do "ipset restore -f /etc/sysconfig/ipsets", then the rules are loaded.

    I prefer if there is some built in way, service, not having to edit rc.d file's or such startup scripts. Thank You
    https://zeronet.io - Open, free and uncensorable websites, using Bitcoin cryptography and BitTorrent network

  2. #2
    Linux User
    Join Date
    Jul 2016
    Posts
    443
    Quote Originally Posted by postcd View Post
    Hello,

    i know i can save ipset rules to a file (ipset save > /etc/sysconfig/ipsets), but i wonder what is the best way to make ipset automaticaly load such rules at boot time? Because at this moment, when i restart my CentOS 7 and do command ipset list, it shows nothing. But when i do "ipset restore -f /etc/sysconfig/ipsets", then the rules are loaded.

    I prefer if there is some built in way, service, not having to edit rc.d file's or such startup scripts. Thank You
    and you should know what it is since youve been asking abou iptables for friggin YEARS now. are you a slow learner or what? google not work where you live? you pop up like a rash every now and then and ask for handouts about crap you should already know. and before you start to whine about 'but i am asking about ipset not the iptables! plz to helping and i'll post all my findings soonest", crap, ipset is an extension of iptables. and since you dont understand one your not going to understand the other. you need to go work empty trash cans or mop floors, because thats probably the most complicated things you can understand.

    but its not like you asked about iptables before right?
    http://www.linuxforums.org/forum/net...ht=#post995021
    http://www.linuxforums.org/forum/sec...les-t-nat.html
    http://www.linuxforums.org/forum/sec...les-ipset.html

    oh wait, you did. lots of times. and apparently putting 'how to load iptables rules on startup" into google is too difficult for you, so you again come to a forum to get someone else to do it.

    is this the part where you start to whine like a baby about how no one will help you? please proceed.
    Last edited by habit; 07-14-2018 at 02:27 PM.

  3. #3
    Linux User
    Join Date
    Dec 2017
    Location
    Argentina
    Posts
    271
    -->

$spacer_open
$spacer_close

Posting Permissions

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