Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: thomas_chan on March 23, 2005, 01:56:41 PM

Title: Add a new parameter into Template Conf File
Post by: thomas_chan on March 23, 2005, 01:56:41 PM
I have been tried to add the following additional parameter into templates-custom directoy but it seems doesn't work :-
  - Custom Directory :
    /etc/e-smith/templatescustom/etc/sysctl.conf
  - Parameter        :
    net.ipv4.icmp_echo_ignore_all

    ; Action : I found this parameter does not exists in an original 'template' directory so that I created an additionl file  :-
  - File Created :
    /etc/e-smith/templates-custom/etc/sysctl.conf
        /net.ipv4.icmp_echo_ignore_all
   - Parameter    :
     net.ipv4.icmp_echo_ignore_all  = 1

      ; The purpose that I created this parameter is not allowed my server has a repond for any PING command at an Internet.

Could anyone advise the  procedures how to add a new parameter into a conf. file ?
Title: Add a new parameter into Template Conf File
Post by: hmuhammad on March 23, 2005, 05:52:16 PM
Thomas,

try...

(from the command line, type the following--all on one line)

  echo 'net.ipv4.icmp_echo_ignore_all = 1' > /etc/e-smith/templates/etc/sysctl.conf/net.ipv4.icmp_echo_ignore_all

then...

  /etc/sbin/expand-template /etc/sysctl.conf

and probably (shouldn't hurt anything--I think)...

  /sbin/e-smith/signal-event bootstrap-console-save

and definitely...

  service network restart

NOTE:

The file is built from the templates in the alphabetical order of the filenames, so the parameter should appear in the following order...

...
net.ipv4.conf.default.rp_filter = 1
net.ipv4.icmp_echo_ignore_all = 1
net.ipv4.ip_dynaddr = 1
...

Hasan