auto loiface lo inet loopbackiface lo inet6 loopbackauto enp4s0iface enp4s0 inet static address 46.4.x.y/26 gateway 46.y.x.129 up route add -net 46.4.x.ynetmask 255.255.255.192 gw 46.4.38.129 dev enp4s0iface enp4s0 inet6 static address 2a01:4f8:x:y::1 netmask 128 gateway fe80::1auto vmbr0iface vmbr0 inet static address 46.4.38.132/32 bridge-ports none bridge-stp off bridge-fd 0 up ip route add 46.4.x.y/32 dev vmbr0 up ip route add 46.4.y.x/32 dev vmbr0 iface vmbr0 inet6 static address 2a01:4f8:x:y::10 netmask 64 up ip -6 route add 2a01:4f8:x:y::/64 dev vmbr0auto vmbr1iface vmbr1 inet manual bridge-ports none bridge-stp off bridge-fd 0#LAN Interface
Wireguard läuft bei opnsense derzeit im userland.Performance besser als openvpn ist derzeit nicht wirklich zu erwarten.Nur bei sehr schnellen CPUs.
pkg install wireguard-kmod
auto loiface lo inet loopbackiface lo inet6 loopbackauto enp4s0iface enp4s0 inet static address 46.4.38.132/26 gateway 46.4.38.129 pointopoint 46.4.38.129 up route add -net 46.4.38.128 netmask 255.255.255.192 gw 46.4.38.129 dev enp4s0iface enp4s0 inet6 static address 2a01:4f8:221:334a::2 netmask 128 gateway fe80::1auto vmbr0iface vmbr0 inet static address 46.4.38.132/32 bridge-ports none bridge-stp off bridge-fd 0 pre-up brctl addbr vmbr0 up ip route add 46.4.38.170/32 dev vmbr0 up ip route add 46.4.38.171/32 dev vmbr0 iface vmbr0 inet6 static address 2a01:4f8:221:334a::3 netmask 64 up ip -6 route add 2a01:4f8:221:334a::/64 dev vmbr0auto vmbr1iface vmbr1 inet manual bridge-ports none bridge-stp off bridge-fd 0#LAN Interface