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

Please Login to comment
  Subscribe  
Notify of

Upcoming Events (Local Time)

  1. Feb
    1
    Fri

    1. 8:30 am - View Details
      CentOS: Dojo, Brussels, Belgium.

RHCSA7: Task of the day

Allowed time: 5 minutes.
Create a user called tom. Create a directory named /private. Use an acl to only allow access (rwx) to tom to the private directory.

RHCE7: Task of the day

Allowed time: 10 minutes.
Configure a system to forward all email to a central mail server at 192.168.1.1 (change the IP address accordingly).

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