Skip to content

Instantly share code, notes, and snippets.

@unxmaal
Created March 5, 2019 02:02
Show Gist options
  • Save unxmaal/d1abc0d6b30023e6a5f9781f224a937f to your computer and use it in GitHub Desktop.
Save unxmaal/d1abc0d6b30023e6a5f9781f224a937f to your computer and use it in GitHub Desktop.
root@Whiskey:/config/scripts# python /config/scripts/eap_proxy.py --restart-dhcp --ignore-when-wan-up --ignore-logoff --ping-gateway --set-mac eth0 eth2
[2019-03-03 23:09:18,726]: proxy_loop starting
[2019-03-03 23:09:25,160]: eth0: 00:90:d0:63:ff:01 > 01:80:c2:00:00:03, EAP packet (0) v1, len 15, Request (1) id 38, len 15 [11] > eth2
[2019-03-03 23:09:25,205]: exception in getifhwaddr line 156 (IOError: [Errno 2] No such file or directory: '/sys/class/net/eth0.0/address'); restarting in 10 seconds
Traceback (most recent call last):
File "/config/scripts/eap_proxy.py", line 541, in proxy_forever
self.proxy_loop()
File "/config/scripts/eap_proxy.py", line 561, in proxy_loop
on_poll_event(socks[fd], event)
File "/config/scripts/eap_proxy.py", line 580, in on_poll_event
self.on_router_eap(eap)
File "/config/scripts/eap_proxy.py", line 609, in on_router_eap
if self.os.getmac(if_vlan) == eap.src:
File "/config/scripts/eap_proxy.py", line 441, in getmac
return getifhwaddr(ifname)
File "/config/scripts/eap_proxy.py", line 156, in getifhwaddr
with open("/sys/class/net/%s/address" % ifname) as f:
IOError: [Errno 2] No such file or directory: '/sys/class/net/eth0.0/address'
[2019-03-03 23:09:35,212]: proxy_loop starting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment