troglobit / smcroute

Static multicast routing for UNIX
https://troglobit.com/projects/smcroute/
GNU General Public License v2.0
244 stars 64 forks source link

The wg0 interface can send and receive multicast packets, but the eth0 interface cannot send or receive multicast packets. #213

Open goldsoft8888 opened 3 days ago

goldsoft8888 commented 3 days ago

I am using two ARM64 devices running Armbian. The site-to-site connection is already established, but SMCroute is not sending data to ETH0. Is there a complete tutorial for using SMCroute with site-to-site? I referred to this guide, but it didn’t work, and I’m not sure where the issue is.

The wg0 interface can send and receive multicast packets, but the eth0 interface cannot send or receive multicast packets. Both wg0 and eth0 have multicast functionality enabled.

Configuration: bash

iptables -t mangle -A PREROUTING -i eth0 -d 239.255.255.250 -j TTL --ttl-inc 2 ip link set dev wg0 multicast on ip link set dev wg0 multicast on /etc/smcroute.conf: bash

phyint eth0 enable phyint wg0 enable

mgroup from eth0 group 239.255.255.250 mroute from eth0 group 239.255.255.250 to wg0

mgroup from wg0 group 239.255.255.250 mroute from wg0 group 239.255.255.250 to eth0 Output from smcrouted -n: less

smcroute[6339]: SMCRoute v2.5.6 smcroute[6339]: IPv4 multicast routing API already in use: Address already in use smcroute[6339]: /etc/smcroute.conf line 5: mroute: inbound eth0 is not a known phyint smcroute[6339]: /etc/smcroute.conf line 8: mroute: inbound wg0 is not a known phyint smcroute[6339]: Parse error in /etc/smcroute.conf smcroute[6339]: Ready, waiting for client request or kernel event.