olej@astra:~$ cat /proc/sys/net/ipv4/ip_forward
0
olej@astra:~$ sudo sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
olej@astra:~$ echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
1
olej@astra:~$ cat /proc/sys/net/ipv4/ip_forward
1
olej@astra:~$ /sbin/route --help
Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
route {-h|--help} [<AF>] Detailed usage syntax for specified AF.
route {-V|--version} Display version/author and exit.
-v, --verbose be verbose
-n, --numeric don't resolve names
-e, --extend display other/more information
-F, --fib display Forwarding Information Base (default)
-C, --cache display routing cache instead of FIB
<AF>=Use -4, -6, '-A <af>' or '--<af>'; default: inet
List of possible address families (which support routing):
inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
x25 (CCITT X.25)
olej@astra:~$ cat /proc/sys/net/ipv4/ip_forward
0
olej@astra:~$ sudo sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
olej@astra:~$ echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
1
olej@astra:~$ cat /proc/sys/net/ipv4/ip_forward
1
olej@astra:~$ /sbin/route --help
Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
route {-h|--help} [<AF>] Detailed usage syntax for specified AF.
route {-V|--version} Display version/author and exit.
-v, --verbose be verbose
-n, --numeric don't resolve names
-e, --extend display other/more information
-F, --fib display Forwarding Information Base (default)
-C, --cache display routing cache instead of FIB
<AF>=Use -4, -6, '-A <af>' or '--<af>'; default: inet
List of possible address families (which support routing):
inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
x25 (CCITT X.25)