IPv6: Mengaktifkan IPv6 forwarding di kernel

From OnnoWiki
Revision as of 20:05, 8 February 2019 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Agar Ubuntu / Linux dapat bertindak sebagai router dan dapat memforward IPv6 maka kita perlu meng-enable kernel dengan perintah

sudo sysctl -w net.ipv6.conf.all.forwarding=1


atau

echo 1 > /proc/sys/net/ipv6/conf/all/forwarding


interface all bisa di ganti dengan

  • default
  • enp0s3
  • enp3s0
  • tun0
  • teredo
  • he-ipv6
  • dll

atau kalau mau gampang semua interface yang ada di aktifkan misalnya

echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
echo 1 > /proc/sys/net/ipv6/conf/default/forwarding
echo 1 > /proc/sys/net/ipv6/conf/enp0s3/forwarding
echo 1 > /proc/sys/net/ipv6/conf/teredo/forwarding



Pranala Menarik