SYS: Use /proc/sys and sysctl to modify and set kernel runtime parameters.

Share this link

Edit the /etc/sysctl.conf file and add the following lines:

net.ipv4.ip_forward = 1                  # allow IPv4 forwarding
net.ipv4.icmp_echo_ignore_all = 1        # don't respond to a ping
net.ipv4.icmp_echo_ignore_broadcasts = 1 # don't respond to a ping to the broadcast address

Put the changes into practice:

# sysctl -p

Check the changes:

# cat /proc/sys/net/ipv4/ip_forward
# cat /proc/sys/net/ipv4/icmp_echo_ignore_all
# cat /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Leave a Reply

RHCSA7: Task of the day

Allowed time: 10 minutes.
Create a XFS file system of 100MB. Mount it under /mnt. Then, increase its size by 50MB.

RHCE7: Task of the day

Allowed time: 5 minutes.
Set up time synchronization with default configuration.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...

Archives