Add more checl-scripts
This commit is contained in:
17
check_forwarding.sh
Executable file
17
check_forwarding.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
declare -i val=`cat /proc/sys/net/ipv4/ip_forward`
|
||||
|
||||
|
||||
if [ $val == 0 ] ; then
|
||||
echo "activate forwarding .."
|
||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||
fi
|
||||
|
||||
val=`cat /proc/sys/net/ipv4/ip_dynaddr`
|
||||
if [ $val == 0 ] ; then
|
||||
echo "activate dynaddr .."
|
||||
echo 5 > /proc/sys/net/ipv4/ip_dynaddr
|
||||
fi
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user