Moin Leute!
Ich versuche schon länger mein Proxmox Host mit OPNsense zum Laufen zu bekommen, aber es klappt einfach nicht, ich habe es schon nach unzähligen Tutorials in Schrift und Videoform probiert. Ich bekomme aber einfach keine Verbindung von VM’s nach innen oder außen. Intern klappt es. Ich finde den Fehler einfach nicht. Firewall in RZ und PVE - Ebene sind deaktiviert. Ping aus OPNsense nach außen klappt nicht. Daher dann von anderen VM’s Containern natürlich auch nicht. Hat jemand eine Idee? Sieht den/die Fehler?
# /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!
auto lo
iface lo inet loopback
iface lo inet6 loopback
iface eno1 inet manual
iface eno2 inet manual
auto vmbr0
iface vmbr0 inet static
address 51.75.147.217/24
gateway 51.75.147.254
bridge-ports eno1
bridge-stp off
bridge-fd 0
hwaddress A4:BF:01:13:56:62
post-up iptables -t nat -A PREROUTING -i eno1 -p tcp -m multiport ! --dport 22,2266,8006 -j DNAT --to 10.10.1.1
post-up iptables -t nat -A PREROUTING -i eno1 -p udp -j DNAT --to 10.10.1.1
# IPv6 hat hier kein DNAT/PREROUTING, da NAT66 später direkt auf eno1 stattfindet
iface vmbr0 inet6 static
address 2001:41d0:700:20d9::1/128
gateway 2001:41d0:700:20ff:ff:ff:ff:ff
auto vmbr1
iface vmbr1 inet manual
address 10.10.1.0/31
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s '10.10.1.1/31' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.1.1/31' -o eno1 -j MASQUERADE
# OPNSense WAN (IPv4 + IPv6 Bridge, IPv6 durchgereicht via NAT66)
iface vmbr1 inet6 static
address fd00:1::2/64
post-up ip6tables -t nat -A POSTROUTING -s 'fd00:1::/64' -o eno1 -j MASQUERADE
post-down ip6tables -t nat -D POSTROUTING -s 'fd00:1::/64' -o eno1 -j MASQUERADE
auto vmbr2
iface vmbr2 inet static
address 192.168.10.0/24
bridge-ports none
bridge-stp off
bridge-fd 0
# OPNSense LAN (IPv4 + IPv6 Bridge)
iface vmbr2 inet6 static
address fd00:2::1/64
source /etc/network/interfaces.d/*
Gruß Natural