ubuntu setting system variables












0















I am trying to protect my server as below system variables



net.ipv4.icmp_echo_ignore_all=1
# IP Spoofing protection
​net.ipv4.conf.all.rp_filter=1
​net.ipv4.conf.default.rp_filter=1
#Ignore ICMP broadcast requests
​net.ipv4.icmp_echo_ignore_broadcasts=1
# Disable source packet routing
​net.ipv4.conf.all.accept_source_route=0
​net.ipv6.conf.all.accept_source_route=0
​net.ipv4.conf.default.accept_source_route=0
​net.ipv6.conf.default.accept_source_route=0
# Ignore send redirects
​net.ipv4.conf.all.send_redirects=0
​net.ipv4.conf.default.send_redirects=0
# Block SYN attacks
​net.ipv4.tcp_syncookies=1
​net.ipv4.tcp_max_syn_backlog=2048
​net.ipv4.tcp_synack_retries=2
​net.ipv4.tcp_syn_retries=5
# Log Martians
​net.ipv4.conf.all.log_martians=1
​net.ipv4.icmp_ignore_bogus_error_responses=1
# Ignore ICMP redirects
​net.ipv4.conf.all.accept_redirects=0
​net.ipv6.conf.all.accept_redirects=0
​net.ipv4.conf.default.accept_redirects=0
​net.ipv6.conf.default.accept_redirects=0
# Ignore Directed pings
​net.ipv4.icmp_echo_ignore_all=1


Image:



enter image description here



But I get some error happen when I applied the rules.



sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/rp_filter: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/rp_filter: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_echo_ignore_broadcasts: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/all/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/default/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/send_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/send_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_syncookies: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_max_syn_backlog: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_synack_retries: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_syn_retries: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/log_martians: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_ignore_bogus_error_responses: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/all/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/default/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_echo_ignore_all: No such file or directory


Error images:
enter image description here



Here cat -A /etc/sysctl.conf



net.ipv4.icmp_echo_ignore_all=1$
# IP Spoofing protection$
M-bM-^@M-^Knet.ipv4.conf.all.rp_filter=1$
M-bM-^@M-^Knet.ipv4.conf.default.rp_filter=1$
#Ignore ICMP broadcast requests$
M-bM-^@M-^Knet.ipv4.icmp_echo_ignore_broadcasts=1$
# Disable source packet routing$
M-bM-^@M-^Knet.ipv4.conf.all.accept_source_route=0$
M-bM-^@M-^Knet.ipv6.conf.all.accept_source_route=0$
M-bM-^@M-^Knet.ipv4.conf.default.accept_source_route=0$
M-bM-^@M-^Knet.ipv6.conf.default.accept_source_route=0$
# Ignore send redirects$
M-bM-^@M-^Knet.ipv4.conf.all.send_redirects=0$
M-bM-^@M-^Knet.ipv4.conf.default.send_redirects=0$
# Block SYN attacks$
M-bM-^@M-^Knet.ipv4.tcp_syncookies=1$
M-bM-^@M-^Knet.ipv4.tcp_max_syn_backlog=2048$
M-bM-^@M-^Knet.ipv4.tcp_synack_retries=2$
M-bM-^@M-^Knet.ipv4.tcp_syn_retries=5$
# Log Martians$
M-bM-^@M-^Knet.ipv4.conf.all.log_martians=1$
M-bM-^@M-^Knet.ipv4.icmp_ignore_bogus_error_responses=1$
# Ignore ICMP redirects$
M-bM-^@M-^Knet.ipv4.conf.all.accept_redirects=0$
M-bM-^@M-^Knet.ipv6.conf.all.accept_redirects=0$
M-bM-^@M-^Knet.ipv4.conf.default.accept_redirects=0$
M-bM-^@M-^Knet.ipv6.conf.default.accept_redirects=0$
# Ignore Directed pings$
M-bM-^@M-^Knet.ipv4.icmp_echo_ignore_all=1$
root@ubuntu-s-2vcpu-4gb-lon1-01:/etc#









share|improve this question

























  • Do those files exist and how are you changing these values? Please remove the spaces between the variables and = and value!

    – George Udosen
    Dec 27 '18 at 15:08













  • I did not change those I check on rp_filter file I see 1 numer value eixsting there but I don't know why I get those error messages

    – Heng Sopheak
    Dec 27 '18 at 15:13











  • Remove the spaces and see if the error goes away! Let this net.ipv4.icmp_echo_ignore_broadcasts = 1 be this net.ipv4.icmp_echo_ignore_broadcasts=1.

    – George Udosen
    Dec 27 '18 at 15:14













  • You mean remove the space between one block to another block right example: # Block SYN attacks to # Log Martians right?

    – Heng Sopheak
    Dec 27 '18 at 15:16











  • No let me post a simple answer so you can follow! And are you adding them manuallly or from a script?

    – George Udosen
    Dec 27 '18 at 15:17


















0















I am trying to protect my server as below system variables



net.ipv4.icmp_echo_ignore_all=1
# IP Spoofing protection
​net.ipv4.conf.all.rp_filter=1
​net.ipv4.conf.default.rp_filter=1
#Ignore ICMP broadcast requests
​net.ipv4.icmp_echo_ignore_broadcasts=1
# Disable source packet routing
​net.ipv4.conf.all.accept_source_route=0
​net.ipv6.conf.all.accept_source_route=0
​net.ipv4.conf.default.accept_source_route=0
​net.ipv6.conf.default.accept_source_route=0
# Ignore send redirects
​net.ipv4.conf.all.send_redirects=0
​net.ipv4.conf.default.send_redirects=0
# Block SYN attacks
​net.ipv4.tcp_syncookies=1
​net.ipv4.tcp_max_syn_backlog=2048
​net.ipv4.tcp_synack_retries=2
​net.ipv4.tcp_syn_retries=5
# Log Martians
​net.ipv4.conf.all.log_martians=1
​net.ipv4.icmp_ignore_bogus_error_responses=1
# Ignore ICMP redirects
​net.ipv4.conf.all.accept_redirects=0
​net.ipv6.conf.all.accept_redirects=0
​net.ipv4.conf.default.accept_redirects=0
​net.ipv6.conf.default.accept_redirects=0
# Ignore Directed pings
​net.ipv4.icmp_echo_ignore_all=1


Image:



enter image description here



But I get some error happen when I applied the rules.



sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/rp_filter: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/rp_filter: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_echo_ignore_broadcasts: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/all/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/default/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/send_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/send_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_syncookies: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_max_syn_backlog: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_synack_retries: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_syn_retries: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/log_martians: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_ignore_bogus_error_responses: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/all/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/default/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_echo_ignore_all: No such file or directory


Error images:
enter image description here



Here cat -A /etc/sysctl.conf



net.ipv4.icmp_echo_ignore_all=1$
# IP Spoofing protection$
M-bM-^@M-^Knet.ipv4.conf.all.rp_filter=1$
M-bM-^@M-^Knet.ipv4.conf.default.rp_filter=1$
#Ignore ICMP broadcast requests$
M-bM-^@M-^Knet.ipv4.icmp_echo_ignore_broadcasts=1$
# Disable source packet routing$
M-bM-^@M-^Knet.ipv4.conf.all.accept_source_route=0$
M-bM-^@M-^Knet.ipv6.conf.all.accept_source_route=0$
M-bM-^@M-^Knet.ipv4.conf.default.accept_source_route=0$
M-bM-^@M-^Knet.ipv6.conf.default.accept_source_route=0$
# Ignore send redirects$
M-bM-^@M-^Knet.ipv4.conf.all.send_redirects=0$
M-bM-^@M-^Knet.ipv4.conf.default.send_redirects=0$
# Block SYN attacks$
M-bM-^@M-^Knet.ipv4.tcp_syncookies=1$
M-bM-^@M-^Knet.ipv4.tcp_max_syn_backlog=2048$
M-bM-^@M-^Knet.ipv4.tcp_synack_retries=2$
M-bM-^@M-^Knet.ipv4.tcp_syn_retries=5$
# Log Martians$
M-bM-^@M-^Knet.ipv4.conf.all.log_martians=1$
M-bM-^@M-^Knet.ipv4.icmp_ignore_bogus_error_responses=1$
# Ignore ICMP redirects$
M-bM-^@M-^Knet.ipv4.conf.all.accept_redirects=0$
M-bM-^@M-^Knet.ipv6.conf.all.accept_redirects=0$
M-bM-^@M-^Knet.ipv4.conf.default.accept_redirects=0$
M-bM-^@M-^Knet.ipv6.conf.default.accept_redirects=0$
# Ignore Directed pings$
M-bM-^@M-^Knet.ipv4.icmp_echo_ignore_all=1$
root@ubuntu-s-2vcpu-4gb-lon1-01:/etc#









share|improve this question

























  • Do those files exist and how are you changing these values? Please remove the spaces between the variables and = and value!

    – George Udosen
    Dec 27 '18 at 15:08













  • I did not change those I check on rp_filter file I see 1 numer value eixsting there but I don't know why I get those error messages

    – Heng Sopheak
    Dec 27 '18 at 15:13











  • Remove the spaces and see if the error goes away! Let this net.ipv4.icmp_echo_ignore_broadcasts = 1 be this net.ipv4.icmp_echo_ignore_broadcasts=1.

    – George Udosen
    Dec 27 '18 at 15:14













  • You mean remove the space between one block to another block right example: # Block SYN attacks to # Log Martians right?

    – Heng Sopheak
    Dec 27 '18 at 15:16











  • No let me post a simple answer so you can follow! And are you adding them manuallly or from a script?

    – George Udosen
    Dec 27 '18 at 15:17
















0












0








0








I am trying to protect my server as below system variables



net.ipv4.icmp_echo_ignore_all=1
# IP Spoofing protection
​net.ipv4.conf.all.rp_filter=1
​net.ipv4.conf.default.rp_filter=1
#Ignore ICMP broadcast requests
​net.ipv4.icmp_echo_ignore_broadcasts=1
# Disable source packet routing
​net.ipv4.conf.all.accept_source_route=0
​net.ipv6.conf.all.accept_source_route=0
​net.ipv4.conf.default.accept_source_route=0
​net.ipv6.conf.default.accept_source_route=0
# Ignore send redirects
​net.ipv4.conf.all.send_redirects=0
​net.ipv4.conf.default.send_redirects=0
# Block SYN attacks
​net.ipv4.tcp_syncookies=1
​net.ipv4.tcp_max_syn_backlog=2048
​net.ipv4.tcp_synack_retries=2
​net.ipv4.tcp_syn_retries=5
# Log Martians
​net.ipv4.conf.all.log_martians=1
​net.ipv4.icmp_ignore_bogus_error_responses=1
# Ignore ICMP redirects
​net.ipv4.conf.all.accept_redirects=0
​net.ipv6.conf.all.accept_redirects=0
​net.ipv4.conf.default.accept_redirects=0
​net.ipv6.conf.default.accept_redirects=0
# Ignore Directed pings
​net.ipv4.icmp_echo_ignore_all=1


Image:



enter image description here



But I get some error happen when I applied the rules.



sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/rp_filter: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/rp_filter: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_echo_ignore_broadcasts: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/all/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/default/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/send_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/send_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_syncookies: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_max_syn_backlog: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_synack_retries: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_syn_retries: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/log_martians: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_ignore_bogus_error_responses: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/all/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/default/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_echo_ignore_all: No such file or directory


Error images:
enter image description here



Here cat -A /etc/sysctl.conf



net.ipv4.icmp_echo_ignore_all=1$
# IP Spoofing protection$
M-bM-^@M-^Knet.ipv4.conf.all.rp_filter=1$
M-bM-^@M-^Knet.ipv4.conf.default.rp_filter=1$
#Ignore ICMP broadcast requests$
M-bM-^@M-^Knet.ipv4.icmp_echo_ignore_broadcasts=1$
# Disable source packet routing$
M-bM-^@M-^Knet.ipv4.conf.all.accept_source_route=0$
M-bM-^@M-^Knet.ipv6.conf.all.accept_source_route=0$
M-bM-^@M-^Knet.ipv4.conf.default.accept_source_route=0$
M-bM-^@M-^Knet.ipv6.conf.default.accept_source_route=0$
# Ignore send redirects$
M-bM-^@M-^Knet.ipv4.conf.all.send_redirects=0$
M-bM-^@M-^Knet.ipv4.conf.default.send_redirects=0$
# Block SYN attacks$
M-bM-^@M-^Knet.ipv4.tcp_syncookies=1$
M-bM-^@M-^Knet.ipv4.tcp_max_syn_backlog=2048$
M-bM-^@M-^Knet.ipv4.tcp_synack_retries=2$
M-bM-^@M-^Knet.ipv4.tcp_syn_retries=5$
# Log Martians$
M-bM-^@M-^Knet.ipv4.conf.all.log_martians=1$
M-bM-^@M-^Knet.ipv4.icmp_ignore_bogus_error_responses=1$
# Ignore ICMP redirects$
M-bM-^@M-^Knet.ipv4.conf.all.accept_redirects=0$
M-bM-^@M-^Knet.ipv6.conf.all.accept_redirects=0$
M-bM-^@M-^Knet.ipv4.conf.default.accept_redirects=0$
M-bM-^@M-^Knet.ipv6.conf.default.accept_redirects=0$
# Ignore Directed pings$
M-bM-^@M-^Knet.ipv4.icmp_echo_ignore_all=1$
root@ubuntu-s-2vcpu-4gb-lon1-01:/etc#









share|improve this question
















I am trying to protect my server as below system variables



net.ipv4.icmp_echo_ignore_all=1
# IP Spoofing protection
​net.ipv4.conf.all.rp_filter=1
​net.ipv4.conf.default.rp_filter=1
#Ignore ICMP broadcast requests
​net.ipv4.icmp_echo_ignore_broadcasts=1
# Disable source packet routing
​net.ipv4.conf.all.accept_source_route=0
​net.ipv6.conf.all.accept_source_route=0
​net.ipv4.conf.default.accept_source_route=0
​net.ipv6.conf.default.accept_source_route=0
# Ignore send redirects
​net.ipv4.conf.all.send_redirects=0
​net.ipv4.conf.default.send_redirects=0
# Block SYN attacks
​net.ipv4.tcp_syncookies=1
​net.ipv4.tcp_max_syn_backlog=2048
​net.ipv4.tcp_synack_retries=2
​net.ipv4.tcp_syn_retries=5
# Log Martians
​net.ipv4.conf.all.log_martians=1
​net.ipv4.icmp_ignore_bogus_error_responses=1
# Ignore ICMP redirects
​net.ipv4.conf.all.accept_redirects=0
​net.ipv6.conf.all.accept_redirects=0
​net.ipv4.conf.default.accept_redirects=0
​net.ipv6.conf.default.accept_redirects=0
# Ignore Directed pings
​net.ipv4.icmp_echo_ignore_all=1


Image:



enter image description here



But I get some error happen when I applied the rules.



sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/rp_filter: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/rp_filter: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_echo_ignore_broadcasts: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/all/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/default/accept_source_route: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/send_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/send_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_syncookies: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_max_syn_backlog: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_synack_retries: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/tcp_syn_retries: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/log_martians: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_ignore_bogus_error_responses: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/all/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/all/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/conf/default/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv6/conf/default/accept_redirects: No such file or directory
sysctl: cannot stat /proc/sys/​net/ipv4/icmp_echo_ignore_all: No such file or directory


Error images:
enter image description here



Here cat -A /etc/sysctl.conf



net.ipv4.icmp_echo_ignore_all=1$
# IP Spoofing protection$
M-bM-^@M-^Knet.ipv4.conf.all.rp_filter=1$
M-bM-^@M-^Knet.ipv4.conf.default.rp_filter=1$
#Ignore ICMP broadcast requests$
M-bM-^@M-^Knet.ipv4.icmp_echo_ignore_broadcasts=1$
# Disable source packet routing$
M-bM-^@M-^Knet.ipv4.conf.all.accept_source_route=0$
M-bM-^@M-^Knet.ipv6.conf.all.accept_source_route=0$
M-bM-^@M-^Knet.ipv4.conf.default.accept_source_route=0$
M-bM-^@M-^Knet.ipv6.conf.default.accept_source_route=0$
# Ignore send redirects$
M-bM-^@M-^Knet.ipv4.conf.all.send_redirects=0$
M-bM-^@M-^Knet.ipv4.conf.default.send_redirects=0$
# Block SYN attacks$
M-bM-^@M-^Knet.ipv4.tcp_syncookies=1$
M-bM-^@M-^Knet.ipv4.tcp_max_syn_backlog=2048$
M-bM-^@M-^Knet.ipv4.tcp_synack_retries=2$
M-bM-^@M-^Knet.ipv4.tcp_syn_retries=5$
# Log Martians$
M-bM-^@M-^Knet.ipv4.conf.all.log_martians=1$
M-bM-^@M-^Knet.ipv4.icmp_ignore_bogus_error_responses=1$
# Ignore ICMP redirects$
M-bM-^@M-^Knet.ipv4.conf.all.accept_redirects=0$
M-bM-^@M-^Knet.ipv6.conf.all.accept_redirects=0$
M-bM-^@M-^Knet.ipv4.conf.default.accept_redirects=0$
M-bM-^@M-^Knet.ipv6.conf.default.accept_redirects=0$
# Ignore Directed pings$
M-bM-^@M-^Knet.ipv4.icmp_echo_ignore_all=1$
root@ubuntu-s-2vcpu-4gb-lon1-01:/etc#






14.04 server xubuntu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 27 '18 at 15:52







Heng Sopheak

















asked Dec 27 '18 at 15:03









Heng SopheakHeng Sopheak

1034




1034













  • Do those files exist and how are you changing these values? Please remove the spaces between the variables and = and value!

    – George Udosen
    Dec 27 '18 at 15:08













  • I did not change those I check on rp_filter file I see 1 numer value eixsting there but I don't know why I get those error messages

    – Heng Sopheak
    Dec 27 '18 at 15:13











  • Remove the spaces and see if the error goes away! Let this net.ipv4.icmp_echo_ignore_broadcasts = 1 be this net.ipv4.icmp_echo_ignore_broadcasts=1.

    – George Udosen
    Dec 27 '18 at 15:14













  • You mean remove the space between one block to another block right example: # Block SYN attacks to # Log Martians right?

    – Heng Sopheak
    Dec 27 '18 at 15:16











  • No let me post a simple answer so you can follow! And are you adding them manuallly or from a script?

    – George Udosen
    Dec 27 '18 at 15:17





















  • Do those files exist and how are you changing these values? Please remove the spaces between the variables and = and value!

    – George Udosen
    Dec 27 '18 at 15:08













  • I did not change those I check on rp_filter file I see 1 numer value eixsting there but I don't know why I get those error messages

    – Heng Sopheak
    Dec 27 '18 at 15:13











  • Remove the spaces and see if the error goes away! Let this net.ipv4.icmp_echo_ignore_broadcasts = 1 be this net.ipv4.icmp_echo_ignore_broadcasts=1.

    – George Udosen
    Dec 27 '18 at 15:14













  • You mean remove the space between one block to another block right example: # Block SYN attacks to # Log Martians right?

    – Heng Sopheak
    Dec 27 '18 at 15:16











  • No let me post a simple answer so you can follow! And are you adding them manuallly or from a script?

    – George Udosen
    Dec 27 '18 at 15:17



















Do those files exist and how are you changing these values? Please remove the spaces between the variables and = and value!

– George Udosen
Dec 27 '18 at 15:08







Do those files exist and how are you changing these values? Please remove the spaces between the variables and = and value!

– George Udosen
Dec 27 '18 at 15:08















I did not change those I check on rp_filter file I see 1 numer value eixsting there but I don't know why I get those error messages

– Heng Sopheak
Dec 27 '18 at 15:13





I did not change those I check on rp_filter file I see 1 numer value eixsting there but I don't know why I get those error messages

– Heng Sopheak
Dec 27 '18 at 15:13













Remove the spaces and see if the error goes away! Let this net.ipv4.icmp_echo_ignore_broadcasts = 1 be this net.ipv4.icmp_echo_ignore_broadcasts=1.

– George Udosen
Dec 27 '18 at 15:14







Remove the spaces and see if the error goes away! Let this net.ipv4.icmp_echo_ignore_broadcasts = 1 be this net.ipv4.icmp_echo_ignore_broadcasts=1.

– George Udosen
Dec 27 '18 at 15:14















You mean remove the space between one block to another block right example: # Block SYN attacks to # Log Martians right?

– Heng Sopheak
Dec 27 '18 at 15:16





You mean remove the space between one block to another block right example: # Block SYN attacks to # Log Martians right?

– Heng Sopheak
Dec 27 '18 at 15:16













No let me post a simple answer so you can follow! And are you adding them manuallly or from a script?

– George Udosen
Dec 27 '18 at 15:17







No let me post a simple answer so you can follow! And are you adding them manuallly or from a script?

– George Udosen
Dec 27 '18 at 15:17












1 Answer
1






active

oldest

votes


















2














Rather than



net.ipv4.icmp_echo_ignore_broadcasts = 1


Change each line so no spaces exists between variables and the values, like so



net.ipv4.icmp_echo_ignore_broadcasts=1





share|improve this answer
























  • I update new one as you see i update the question but still the same error

    – Heng Sopheak
    Dec 27 '18 at 15:23











  • ... man sysctl.conf says "whitespace before and after a token or value is ignored" though?

    – steeldriver
    Dec 27 '18 at 15:23











  • I update error output please help to check it and those setting I try to clean space also but pass it to some text editor.

    – Heng Sopheak
    Dec 27 '18 at 15:28











  • Let me try to track down the error!

    – George Udosen
    Dec 27 '18 at 15:31











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104922%2fubuntu-setting-system-variables%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Rather than



net.ipv4.icmp_echo_ignore_broadcasts = 1


Change each line so no spaces exists between variables and the values, like so



net.ipv4.icmp_echo_ignore_broadcasts=1





share|improve this answer
























  • I update new one as you see i update the question but still the same error

    – Heng Sopheak
    Dec 27 '18 at 15:23











  • ... man sysctl.conf says "whitespace before and after a token or value is ignored" though?

    – steeldriver
    Dec 27 '18 at 15:23











  • I update error output please help to check it and those setting I try to clean space also but pass it to some text editor.

    – Heng Sopheak
    Dec 27 '18 at 15:28











  • Let me try to track down the error!

    – George Udosen
    Dec 27 '18 at 15:31
















2














Rather than



net.ipv4.icmp_echo_ignore_broadcasts = 1


Change each line so no spaces exists between variables and the values, like so



net.ipv4.icmp_echo_ignore_broadcasts=1





share|improve this answer
























  • I update new one as you see i update the question but still the same error

    – Heng Sopheak
    Dec 27 '18 at 15:23











  • ... man sysctl.conf says "whitespace before and after a token or value is ignored" though?

    – steeldriver
    Dec 27 '18 at 15:23











  • I update error output please help to check it and those setting I try to clean space also but pass it to some text editor.

    – Heng Sopheak
    Dec 27 '18 at 15:28











  • Let me try to track down the error!

    – George Udosen
    Dec 27 '18 at 15:31














2












2








2







Rather than



net.ipv4.icmp_echo_ignore_broadcasts = 1


Change each line so no spaces exists between variables and the values, like so



net.ipv4.icmp_echo_ignore_broadcasts=1





share|improve this answer













Rather than



net.ipv4.icmp_echo_ignore_broadcasts = 1


Change each line so no spaces exists between variables and the values, like so



net.ipv4.icmp_echo_ignore_broadcasts=1






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 27 '18 at 15:18









George UdosenGeorge Udosen

20.5k94467




20.5k94467













  • I update new one as you see i update the question but still the same error

    – Heng Sopheak
    Dec 27 '18 at 15:23











  • ... man sysctl.conf says "whitespace before and after a token or value is ignored" though?

    – steeldriver
    Dec 27 '18 at 15:23











  • I update error output please help to check it and those setting I try to clean space also but pass it to some text editor.

    – Heng Sopheak
    Dec 27 '18 at 15:28











  • Let me try to track down the error!

    – George Udosen
    Dec 27 '18 at 15:31



















  • I update new one as you see i update the question but still the same error

    – Heng Sopheak
    Dec 27 '18 at 15:23











  • ... man sysctl.conf says "whitespace before and after a token or value is ignored" though?

    – steeldriver
    Dec 27 '18 at 15:23











  • I update error output please help to check it and those setting I try to clean space also but pass it to some text editor.

    – Heng Sopheak
    Dec 27 '18 at 15:28











  • Let me try to track down the error!

    – George Udosen
    Dec 27 '18 at 15:31

















I update new one as you see i update the question but still the same error

– Heng Sopheak
Dec 27 '18 at 15:23





I update new one as you see i update the question but still the same error

– Heng Sopheak
Dec 27 '18 at 15:23













... man sysctl.conf says "whitespace before and after a token or value is ignored" though?

– steeldriver
Dec 27 '18 at 15:23





... man sysctl.conf says "whitespace before and after a token or value is ignored" though?

– steeldriver
Dec 27 '18 at 15:23













I update error output please help to check it and those setting I try to clean space also but pass it to some text editor.

– Heng Sopheak
Dec 27 '18 at 15:28





I update error output please help to check it and those setting I try to clean space also but pass it to some text editor.

– Heng Sopheak
Dec 27 '18 at 15:28













Let me try to track down the error!

– George Udosen
Dec 27 '18 at 15:31





Let me try to track down the error!

– George Udosen
Dec 27 '18 at 15:31


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104922%2fubuntu-setting-system-variables%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Mont Emei

Province de Neuquén

Journaliste