Why I got message “invalid syntax, continuing…” when I execute “sysctl”?

When I tried to apply new configuration in /etc/sysctl.conf, I got following message.

warning: /etc/sysctl.conf(44): invalid syntax, continuing…

Sounds like your changed /etc/sysctl.conf has problem.

You may post the content of your /etc/sysctl.conf here to let other have a check.


net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
net.ipv4.conf.all.rp_filter = 1
warning: /etc/sysctl.conf(44): invalid syntax, continuing…
kernel.shmall = 4294967296













Hi Amir, is this the content of cat /etc/sysctl.conf? If so, this line

warning: /etc/sysctl.conf(44): invalid syntax, continuing...

should not be there.


Hello Eric, Thanks for your response..!
In fact, I added following lines in /etc/sysctl.conf

# Do not accept ICMP redirects (prevent MITM attacks)
  net.ipv4.conf.all.accept_redirects = 0
  net.ipv6.conf.all.accept_redirects = 0 

#Enable IP Spoofing Protection
  net.ipv4.conf.all.rp_filter = 1 

Please, check and tell me what could be syntax error in these lines. Looking Forward your prompt and product response.


These lines have no problem so far I can tell.

You may post the whole content of your /etc/sysctl.conf to be checked.


# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.
#
# Use '/sbin/sysctl -a' to list all possible parameters.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536

# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in 
# Do not accept ICMP redirects (prevent MITM attacks)
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0 

#Enable IP Spoofing Protection
net.ipv4.conf.all.rp_filter = 1 

pages
kernel.shmall = 4294967296

Your last 2 lines have problems:

pages
kernel.shmall = 4294967296

Maybe you want:

# pages
kernel.shmall = 4294967296

Thanks Eric..! You pointed out and I found my mistake. Problem is solved. Now I have another question, how can I install glibc, glibc-common and GD libraries if I already have Apache and PHP running on my centOS 6.7 ? In fact,these libraries are prerequisites for Nagios installation. Waiting for your response.

Similar Posts

  • |

    git push error

    $ git push error: The requested URL returned error: 403 Forbidden while accessing https://github.com/HarryWei/hummer.git/info/refs fatal: HTTP request failed Replace (or add) url=ssh://git@github.com/HarryWei/hummer.git with url=https://git@github.com/HarryWei/hummer.git under “[remote “origin”]” section in ~/.gitconfig file. Reference:http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed Read more: Git push error under CENTOS 6.7 Push and Pull data from Restful Service in Asp.net MVC Application using Angular JS Fixing…

  • Latex is stuck with a strange problem, see more information for details.

    $ make pdflatex main.tex This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex) restricted write18 enabled. entering extended mode (./main.tex LaTeX2e <2016/02/01> Babel <3.9q> and hyphenation patterns for 81 language(s) loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (./usenix.sty (/usr/share/texlive/texmf-dist/tex/latex/psnfss/mathptmx.sty)) (/usr/share/texlive/texmf-dist/tex/latex/graphics/epsfig.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)…

  • Configuring Mouse Cursor Style for GTK Applications in KDE Desktop

    Update on Jan. 7, 2012: The package for the gtk application style setting on KDE 4.7 is kcm-gtk. The command to install this package is: “# yum install kcm-gtk”. One annoying thing when using KDE desktop is that the theme and style of GTK applications differ from KDE’s. The gtk-qt-engine can let us select the…

  • |

    Designs, Lessons and Advice from Building Large Distributed Systems

    Designs, Lessons and Advice from Building Large Distributed Systems by Jeaf Dean. Everyone who is interested in large distributed systems should read: PDF for Designs, Lessons and Advice from Building Large Distributed Systems by Jeaf Dean. Read more: Software Engineering Advice from Building Large-Scale Distributed Systems by Jeff Dean Favorite Sayings by John Ousterhout –…

  • How to install WordPress Buddy Press template?

    How to install WordPress Buddy Press template? Themes for BuddyPress are available at:http://wordpress.org/extend/themes/tags/buddypress Make sure that the theme tagged as “buddypress” is compatible with the BP/WP version activated in your server. As of BuddyPress 1.7, BuddyPress works with most any WordPress out of the box. BuddyPress 1.7 includes base template files that should fit into…

Leave a Reply

Your email address will not be published. Required fields are marked *