haibbo / improxy

IGMP/MLD Proxy which supports IGMPv3 and MLDv2 completely
27 stars 14 forks source link

ERROR[init_mproxy4@332]: can't create igmp socket #7

Open eduarmen opened 1 year ago

eduarmen commented 1 year ago

Hi, I need to forward IGMPv3 messages from enp0s8 to enp0s9, my .conf is this:

igmp enable version 3 mld enable upstream enp0s8 downstream enp0s9

But I get the following error:

DEBUG[main@580]: logLevel = 5 DEBUG[load_config@76]: buffer = igmp enable version 3 DEBUG[load_config@94]: token is igmp DEBUG[load_config@76]: buffer = mld enable DEBUG[load_config@94]: token is mld DEBUG[load_config@76]: buffer = upstream enp0s8 DEBUG[load_config@94]: token is upstream DEBUG[load_config@185]: upstream interface is enp0s8 DEBUG[load_config@76]: buffer = downstream enp0s9 DEBUG[load_config@94]: token is downstream DEBUG[load_config@194]: downstream interface is enp0s9 DEBUG[init_interface@189]: enp0s9's ipv6 address is fe80::a00:27ff:feff:4040 DEBUG[init_interface@195]: if_index = 4 DEBUG[init_interface@208]: if_mtu = 1500 DEBUG[init_interface@214]: if_falgs = 4163 DEBUG[init_interface@189]: enp0s8's ipv6 address is fe80::a00:27ff:fe89:fa25 DEBUG[init_interface@195]: if_index = 3 DEBUG[init_interface@208]: if_mtu = 1500 DEBUG[init_interface@214]: if_falgs = 4163 DEBUG[init_interface@178]: enp0s9's ipv4 address is 192.168.2.2 DEBUG[init_interface@195]: if_index = 4 DEBUG[init_interface@208]: if_mtu = 1500 DEBUG[init_interface@214]: if_falgs = 4163 DEBUG[init_interface@178]: enp0s8's ipv4 address is 192.168.1.1 DEBUG[init_interface@195]: if_index = 3 DEBUG[init_interface@208]: if_mtu = 1500 DEBUG[init_interface@214]: if_falgs = 4163 ERROR[init_mproxy4@332]: can't create igmp socket ERROR[main@619]: exiting.........

Do you have an idea why igmp socket can be created?

Running on Ubuntu VM:

description: Computer width: 64 bits capabilities: vsyscall32 -core description: Motherboard physical id: 0 -memory description: System memory physical id: 0 size: 16GiB *-cpu product: Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz vendor: Intel Corp. physical id: 1 bus info: cpu@0 width: 64 bits

Thanks

haibbo commented 1 year ago

1, run it with sudo 2, replace

IMP_LOG_ERROR("can't create igmp socket\n");

to

perror("can't create igmp socket")

you will get more error message