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

Be the First to Comment!

Notify of
wpDiscuz

RHCSA7: Task of the day

Allowed time: 5 minutes.
Configure a cron task to write the uptime at 2PM every day.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a NFS server that exports the /opt directory in read-only mode.

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 ...

Recent Comments