Skip to content

Instantly share code, notes, and snippets.

@hsupu
Created June 23, 2019 17:13
Show Gist options
  • Save hsupu/eb1e418dfb15854cf212bc8e5c0f2ff4 to your computer and use it in GitHub Desktop.
Save hsupu/eb1e418dfb15854cf212bc8e5c0f2ff4 to your computer and use it in GitHub Desktop.
A solution to IPv6 passthrough on router
# note: please disable IPv6 on router first
WAN_IF=eth0
LAN_IF=br0
# drop non-IPv6 packet from WAN
ebtables -t broute -A BROUTING -i $WAN_IF -p ! ipv6 -j DROP
# bridge WAN to LAN
brctl addif $LAN_IF $WAN_IF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment