Skip to content

Instantly share code, notes, and snippets.

@itslukej
Last active January 17, 2022 11:34
Show Gist options
  • Save itslukej/b866fbcd883640e3e7194be3e57219dd to your computer and use it in GitHub Desktop.
Save itslukej/b866fbcd883640e3e7194be3e57219dd to your computer and use it in GitHub Desktop.
Linux AnyIP IPv6 setup
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;
}
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
net.ipv6.ip_nonlocal_bind=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment