Last active
January 17, 2022 11:34
-
-
Save itslukej/b866fbcd883640e3e7194be3e57219dd to your computer and use it in GitHub Desktop.
Linux AnyIP IPv6 setup
This file contains 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
router id x; | |
protocol bgp as62240 { | |
local as 209808; | |
source address x; | |
neighbor x as 62240; | |
import all; | |
export filter { | |
if net ~ [2a06:e881:5404::/48] then accept; | |
reject; | |
}; | |
graceful restart on; | |
} | |
protocol static { | |
route 2a06:e881:5404::/48 via "lo"; | |
} | |
protocol direct { | |
interface "lo"; | |
import all; | |
} | |
protocol device { | |
scan time 10; | |
} |
This file contains 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
auto lo:0 | |
iface lo:0 inet6 static | |
address 2a06:e881:5404:: | |
netmask 48 | |
up ip -6 route add local 2a06:e881:5404::/48 dev lo |
This file contains 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
net.ipv6.ip_nonlocal_bind=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment