Created
June 23, 2019 17:13
-
-
Save hsupu/eb1e418dfb15854cf212bc8e5c0f2ff4 to your computer and use it in GitHub Desktop.
A solution to IPv6 passthrough on router
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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