Discover Centmin Mod today
Register Now

Beta Branch update inc/postfix.inc if DISABLE_IPVSIX='y' set

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 15, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:00 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. pamamolf

    pamamolf Well-Known Member

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    12:00 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    When i set DISABLE_IPVSIX='y' on a dedicated server Centos 7 at the custom config run the centmin.sh after logout and login again to ssh i got this error:

    And the issue is when i revert that edit to DISABLE_IPVSIX='n' and re run the centmin.sh and logout and login i am getting again the same error :(

    I had to manually edit the:

    and disable the two related lines to:

    and then run:

    and then the error after logout and login is gone !
     
    Last edited: Nov 19, 2017 at 2:42 AM
  3. pamamolf

    pamamolf Well-Known Member

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    12:00 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    The issue seems to get fixed when i change at the

    the:
    to

    and then re run centmin.sh

    But on another server with the all parameter i don't get that error ....
     
  4. pamamolf

    pamamolf Well-Known Member

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    12:00 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    None of my servers get that ipv4 value after setting DISABLE_IPVSIX='y' and then running latest centminmod :(

    Maybe a typo bug or something?

    Also do i have to disable from /etc/hosts the related ipv6 line?

     
    Last edited: Nov 19, 2017 at 3:29 AM
  5. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    sounds like IPv6 was already disabled or not setup properly on server to begin with ?

    though DISABLE_IPVSIX='y' only touches postfix config at initial install time so if it's post install setup, it wouldn't touch postfix config so you need to do it yourself as outlined above
     
  6. pamamolf

    pamamolf Well-Known Member

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    12:00 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Don't know :(

    On some servers i have enabled:

    and at the rest:
    I think that the postfix default is all (at least the manual says that) but after installing Centminmod i can see the localhost option as default......

    Don't know which one is better to use to be honest.....

    But setting at the custom config:
    i was expecting when i run centmin.sh to get at:
    the:
    that i get and that works.....

    and also to get at postfix:

    that i never get.....

    Also i was expecting when i set at custom config:
    to get that values reverted like:
    that i don't get.....

    and the postfix edit also from ipv4 back to all....
     
  7. pamamolf

    pamamolf Well-Known Member

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    12:00 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    I just test it on a fresh setup and i got the ipv4 value......so it works....

    But i think it will be good to have that option after installation.....to enable and disable ipv6 by setting the DISABLE_IPVSIX='y' and then running the centmin.sh

    Also when is set to "n" to revert the related sysctl.conf and postfix changes.....

    Thanks
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    updated 123.09beta01 with fix for inet_protocols = ipv4 and inet_protocols = all when DISABLE_IPVSIX='y' and DISABLE_IPVSIX='n' respectively

    as to sysctl.conf it should change those in /etc/sysctl.conf when DISABLE_IPVSIX='y' and DISABLE_IPVSIX='n' respectively
     
  9. pamamolf

    pamamolf Well-Known Member

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    12:00 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Almost perfect :)

    The only thing now that doesn't work is when set to DISABLE_IPVSIX='n' and run centmin.sh it doesn't revert at:

    the
    to:

    All the rest now are ok :)
     
  10. pamamolf

    pamamolf Well-Known Member

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    12:00 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    I just test it on a second server and got the same result :(

    Doesn't revert sysctl.conf both settings to 0
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    just updated 123.09beta01 with the fix :)
     
    • Like Like x 1
  12. pamamolf

    pamamolf Well-Known Member

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    12:00 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Do you recommend me to use:

    Or
     
  13. pamamolf

    pamamolf Well-Known Member

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    12:00 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Also as i can read here:

    https://community.centminmod.com/th...x-function-add-disable_ipvsix-variable.11774/

    there is a related setting for csf firewall that triggered when DISABLE_IPVSIX='y' or DISABLE_IPVSIX='n' is in use...

    can you please check that this setting also is set after installation using the custom config setting and set it as the above way of working?

    Like if i use "y" to enable it and if i use "n" to get it reverted?

    Thank you
     
  14. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    default is all and csf firewall related changes are fine