Contents

FreeBSD VPS @ MythicBeasts

Configuration for getting a FreeBSD VPS online at Mythic Beasts

Updated on 2021-03-12

Configuring a FreeBSD VPS at MythicBeasts required a bit of messing about with the network configuration to get it online.

/etc/rc.conf

Networking (IPv6 only)

For IPv6 customers are allocated a /64 from a single /48 subnet. We’ll need to learn the routers via router advertisments, but set static address(es)

1
2
3
4
5
6
ifconfig_vtnet0="inet6 accept_rtadv"
#ifconfig_vtnet0_ipv6="inet6 accept_rtadv"
ifconfig_vtnet0_ipv6="inet6 2a00:1098:88:xx:0:0:0:1 prefixlen 48"
ifconfig_vtnet0_alias0="inet6 2a00:1098:88:xx:0:0:0:70 prefixlen 48"
ifconfig_vtnet0_alias1="inet6 2a00:1098:88:xx:0:0:0:53 prefixlen 48"
ifconfig_vtnet0_alias2="inet6 2a00:1098:88:xx:0:0:0:80 prefixlen 48"

Note that the syntax ifconfig_vtnet0_ipv6="inet6 accept_rtadv" that I initialy found seems to be wrong, it should be ifconfig_vtnet0="inet6 accept_rtadv" as above.

That should result in

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# ifconfig
vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=6c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	ether 52:54:00:91:24:a8
	inet6 2a00:1098:88:xx::1 prefixlen 48
	inet6 fe80::5054:ff:fe91:24a8%vtnet0 prefixlen 64 scopeid 0x1
	inet6 2a00:1098:88:xx::70 prefixlen 48
	inet6 2a00:1098:88:xx::53 prefixlen 48
	inet6 2a00:1098:88:xx::80 prefixlen 48
	media: Ethernet 10Gbase-T <full-duplex>
	status: active
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>

with the route via the link-local router

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# route -6 get ::
   route to: default
destination: default
       mask: default
    gateway: fe80::21b:21ff:fe9a:4779%vtnet0
        fib: 0
  interface: vtnet0
      flags: <UP,GATEWAY,DONE>
 recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
       0         0         0         0      1500         1         0

/etc/resolv.conf

Use the Mythic Beasts NAT64 / DNS64 resolvers so we can also access the legacy (IPv4) Internet.

1
2
3
4
5
# cat /etc/resolv.conf
search example.com
nameserver 2a00:1098:0:82:1000:3b:0:1
nameserver 2a00:1098:0:80:1000:3b:0:1
options edns0