Skip to content

Instantly share code, notes, and snippets.

@igalic

igalic/rc.conf Secret

Created December 9, 2022 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igalic/642efb4e0f4da255382bc299ec65ce83 to your computer and use it in GitHub Desktop.
Save igalic/642efb4e0f4da255382bc299ec65ce83 to your computer and use it in GitHub Desktop.
## IPv4, hetzner classic config, so we won't need DHCP
ifconfig_vtnet0="inet 95.217.178.41/32 -lro -tso -rxcsum -txcsum -rxcsum6 -txcsum6"
gateway_if="vtnet0"
gateway_ip="172.31.1.1"
static_routes="gateway default"
route_gateway="-host $gateway_ip -interface $gateway_if"
route_default="default $gateway_ip"
## the Virtual network!
cloned_interfaces="bridge0"
ifconfig_bridge0="inet 192.168.17.1/24"
gateway_enable="YES"
## We'll also put the IPv6 address on the bridge, for reasons of convinience
## with sharing it with jails
ipv6_activate_all_interfaces="YES"
ifconfig_bridge0_ipv6="inet6 2a01:4f9:c010:bdb0::1/64 auto_linklocal"
# our exit node is still vtnet0 tho
ipv6_defaultrouter="fe80::1%vtnet0"
# enable IPv6 gateway
ipv6_gateway_enable="YES"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment