Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

keepalive

I see that the timestamp of /proc/sys/net/ipv4/tcp_keepalive_alive time always has the same timestamp at the current time why is that? Also if i want to change that value is just a case of echo " new value"  /proc/sys/net/ipv4/net/tcp_keepalive_alive?
0
lolaferrari
Asked:
lolaferrari
  • 3
1 Solution
 
farzanjCommented:
/proc files are volatile -- torn down when system shuts down.

To modify value to XX

sysctl -p net/ipv4.net.tcp_keepalive_alive=XX
0
 
farzanjCommented:
Sorry try this
sysctl -w net/ipv4.net.tcp_keepalive_alive=XX
0
 
farzanjCommented:
Actually the way it works is this:  All the proc files are created at the boot time and destroyed at the shutdown time.  If you write anything to the files under /proc, they stay as long as the system is up and running.

The proper way to make modifications to files under /proc/sys files is to take the relative path of file after /proc/sys and modify it in
/etc/sysctl.conf file
net.ipv4.net.tcp_keepalive_alive=XX

The issue command
sysctl -p

OR

Just, as in your case issue command
sysctl -w net.ipv4.net.tcp_keepalive_alive=XX
0
 
lolaferrariAuthor Commented:
many thanks!
0

Featured Post

Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now