Open Novocaine85 opened 6 years ago
Hi, what OS and version are you using? looks like the output of "ls /sys/class/net" included word "bonding_masters". This is supposed to spit out the names of interfaces on your machine. like "enp0s25 lo virbr0 virbr0-nic wlo1"
Does everything work without "-f"?
Hi, I'm on a banana pi pro using armbian.
It works correctly without -f
bonding_masters is present in /system/class/net
[10:00:32]root@bananapipro>[~]: ls /sys/class/net
bond0 bonding_masters eth0 lo tun0 wlan0
[10:00:50]root@bananapipro>[~]: cat /sys/class/net/bonding_masters
bond0
Here the same, if I use the -f option, I got error
Device "bonding_masters" does not exist.
Traceback (most recent call last):
File "/usr/local/bin/openpyn", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/openpyn/openpyn.py", line 144, in main
args.skip_dns_patch, args.silent, args.nvram, args.openvpn_options, args.location)
File "/usr/local/lib/python3.5/dist-packages/openpyn/openpyn.py", line 406, in run
network_interfaces = get_network_interfaces()
File "/usr/local/lib/python3.5/dist-packages/openpyn/openpyn.py", line 766, in get_network_interfaces
interface_out = subprocess.check_output(["ip", "addr", "show", interface])
File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 398, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ip', 'addr', 'show', 'bonding_masters']' returned non-zero exit status 1
My actual configuration have one bond activated:
ls -lah /sys/class/net
total 0
drwxr-xr-x 2 root root 0 Nov 14 21:33 .
drwxr-xr-x 49 root root 0 Nov 14 21:15 ..
lrwxrwxrwx 1 root root 0 Nov 14 21:15 bond0 -> ../../devices/virtual/net/bond0
-rw-r--r-- 1 root root 4.0K Nov 14 21:15 bonding_masters
lrwxrwxrwx 1 root root 0 Nov 14 21:15 enp4s0 -> ../../devices/pci0000:00/0000:00:1c.3/0000:04:00.0/net/enp4s0
lrwxrwxrwx 1 root root 0 Nov 14 21:15 enp5s0 -> ../../devices/pci0000:00/0000:00:1c.4/0000:05:00.0/net/enp5s0
lrwxrwxrwx 1 root root 0 Nov 14 21:15 lo -> ../../devices/virtual/net/lo
root@Qnap:~# cat /sys/class/net/bonding_masters
bond0
using this command: openpyn it --p2p -f --allow 80 22 -d
got this error:
any help is apreciated. thanks in advance