alsmith / multicast-relay

Relay multicast and broadcast packets between interfaces.
GNU General Public License v3.0
304 stars 47 forks source link

Python Errors #12

Closed n8091977 closed 5 years ago

n8091977 commented 5 years ago

Hello,

I am struggling to get this running having tried both Ubuntu 14.04 and 16.10. I have installed netifaces but am unsure as to what the error is:

multicast@multicast-manage:~/multicast-relay$ python -V Python 2.7.6 multicast@multicast-manage:~/multicast-relay$ pip install netifaces Requirement already satisfied (use --upgrade to upgrade): netifaces in /usr/lib/python2.7/dist-packages Cleaning up... multicast@multicast-manage:~/multicast-relay$

multicast@multicast-manage:~/multicast-relay$ sudo ./multicast-relay.py --interfaces eth1 eth3 --foreground ^CTraceback (most recent call last): File "./multicast-relay.py", line 447, in sys.exit(main()) File "./multicast-relay.py", line 444, in main packetRelay.loop() File "./multicast-relay.py", line 168, in loop (inputready, , ) = select.select(self.receivers, [], []) KeyboardInterrupt

alsmith commented 5 years ago

Try also adding --verbose to see information as to what packets are being relayed.

As far as I can make out, the error here is merely the python traceback in response to Ctrl-C being pressed. Without --foreground the relay will simply fork itself in the background and keep itself quiet. But with --foreground it will appear to just hang (intended behaviour). Adding --verbose will encourage it to tell you more as to what it's up to.

If you're having trouble with it not relaying packets correctly, maybe the output after adding --verbose would help, along with ifconfig eth1 and ifconfig eth3 and a description of where your devices are, i.e. on which networks. Thanks!

alsmith commented 5 years ago

Closing due to inactivity.