1
23.7 Legacy Series / Re: [solved] IPv6 firewall log - Source and Destination are inverted
« on: January 04, 2024, 06:24:31 pm »
It was no OPNsense problem, it was a routing Problem of IPv6 before the OPNsense.
Just for reference: The OPNsense is running on a Proxmox host on a hetzner dedicated server. When following the setup described in hetzner wiki https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve/de for routed setup, the Proxmox host automatically adds a route to an internal vmbridge. Use "ip -6 r" to check. This route causes the trouble. Manually deleting the route on the Proxmox host solves the issue, but needs to be deleted manually after ever reboot.
To prevent this behaviour, edit /etc/network/interfaces:
pre-up sysctl -w net.ipv6.conf.default.accept_ra=0
pre-up sysctl -w net.ipv6.conf.default.autoconf=0
pre-up sysctl -w net.ipv6.conf.all.autoconf=0
pre-up sysctl -w net.ipv6.conf.all.forwarding=1
It is important to add ...default... with only ...all... it did not work.
Just for reference: The OPNsense is running on a Proxmox host on a hetzner dedicated server. When following the setup described in hetzner wiki https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve/de for routed setup, the Proxmox host automatically adds a route to an internal vmbridge. Use "ip -6 r" to check. This route causes the trouble. Manually deleting the route on the Proxmox host solves the issue, but needs to be deleted manually after ever reboot.
To prevent this behaviour, edit /etc/network/interfaces:
pre-up sysctl -w net.ipv6.conf.default.accept_ra=0
pre-up sysctl -w net.ipv6.conf.default.autoconf=0
pre-up sysctl -w net.ipv6.conf.all.autoconf=0
pre-up sysctl -w net.ipv6.conf.all.forwarding=1
It is important to add ...default... with only ...all... it did not work.