-
-
Save richard4339/3193626 to your computer and use it in GitHub Desktop.
DD-WRT IPV6
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
interface br0 { | |
AdvSendAdvert on; | |
prefix 2001:55c:[WAN IP in hex form ####.####]::/64 | |
{ | |
AdvOnLink on; | |
AdvAutonomous on; | |
}; | |
}; |
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
ip tunnel add he-ipv6 mode sit remote 69.252.80.66 local [WAN IP in ###.###.###.### form] ttl 255 | |
ip link set he-ipv6 up | |
ip addr add 2001:55c:[WAN IP in hex form ####.####]::1/32 dev he-ipv6 | |
ip route add ::/0 dev he-ipv6 | |
ip addr add 2001:55c:[WAN IP in hex form ####.####]::/64 dev br0 |
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
insmod ip6t_REJECT | |
ip6tables -F | |
ip6tables -A FORWARD -p tcp -i he-ipv6 --syn -m multiport --dports ftp-data,ftp,ssh,smtp,http,https,ntp,domain -j ACCEPT | |
ip6tables -A FORWARD -p tcp -i he-ipv6 --syn -j REJECT --reject-with adm-prohibited | |
ip6tables -A FORWARD -p udp -i he-ipv6 -m multiport --dports ntp,domain -j ACCEPT | |
ip6tables -A FORWARD -p udp -i he-ipv6 -j REJECT --reject-with adm-prohibited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment