jaysoffian / eap_proxy

Proxy EAP packets between interfaces on Linux devices such as the Ubiquiti Networks EdgeRouter™ and UniFi® Security Gateway.
BSD 3-Clause "New" or "Revised" License
562 stars 88 forks source link

eap_proxy start error: unexpected poll event #28

Closed drewmullen closed 4 years ago

drewmullen commented 5 years ago

thanks for taking the time to write up and support this project. im following taylor's guide and am getting the following error

$ sudo python /config/scripts/eap_proxy.py --restart-dhcp --ignore-when-wan-up --ignore-logoff --ping-gateway --set-mac eth0 eth2
[2019-09-07 16:15:43,288]: starting proxy_loop
Traceback (most recent call last):
  File "/config/scripts/eap_proxy.py", line 864, in <module>
    sys.exit(main())
  File "/config/scripts/eap_proxy.py", line 860, in main
    return proxy(args, log)
  File "/config/scripts/eap_proxy.py", line 812, in proxy_loop
    proxy.proxy_loop()
  File "/config/scripts/eap_proxy.py", line 599, in proxy_loop
    self.on_poll_event(socks[fd], event)
  File "/config/scripts/eap_proxy.py", line 605, in on_poll_event
    raise IOError("[%s] unexpected poll event: %d" % (ifname, event))
IOError: [eth2] unexpected poll event: 8

any ideas on what might be causing?

edit* looks like i might not be the first person: https://medium.com/@todd.vu24/anyone-have-the-issue-after-trying-to-test-eap-proxy-py-5e7e0d6337

jaysoffian commented 5 years ago

What device are you trying to run this on?

What version of the OS?

jaysoffian commented 5 years ago

Looks like 8 is EPOLLERR, which is "Error condition happened on the associated file descriptor."

I'm not sure what would cause that. Does the error keep repeating?

jaysoffian commented 5 years ago

I guess double-check that your USG is configured exactly as Taylor describes. The only thing I can think is something is wrong with eth2. Copy/paste the output of show interfaces here, but I'm pretty limited in the trouble shooting I can provide. The error doesn't provide me enough to go on, and there's really not any other diagnostic data available to the proxy.

drewmullen commented 5 years ago

thanks for your attention. i had to catch a flight out before i could try out your suggestions but ill get to it Friday. ill grab that commit to so we can see which of the 3 types it is at least (or "???" lol). i really appreciate your quick responses!

im using this code on a USG, ill get the version asap.

drewmullen commented 4 years ago

sorry this response took so long. i decided to kill AT&T and go with someone what doesnt force me to use their router

sorry we're not finding clarity on this issue but thanks for your attention and for providing this tool to the community