File: Z90kernelforward.def

package info (click to toggle)
ipmasq 3.4.4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 300 kB
  • ctags: 3
  • sloc: sh: 281; makefile: 48
file content (17 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# You should not edit this file.  Instead, create a file with the same
# name as this one, but with a .rul extension instead of .def.  The
# .rul file will override this one.
#
# However, any changes you make to this file will be preserved.

# turn on forwarding for 2.1 kernels
if [ -e /proc/sys/net/ipv4/ip_forward ]; then
    if [ "$NOACT" != "yes" ]; then
        echo "1" > /proc/sys/net/ipv4/ip_forward
    fi

    if [ "$SHOWRULES" = "yes" ]; then
        echo "echo \"1\" > /proc/sys/net/ipv4/ip_forward"
    fi
fi