happynclient / happynwindows

N2N Wrapper Windows Client Support for Win7 Vista Win10 win11 x86_x64_arm64
https://happyn.net
GNU General Public License v3.0
140 stars 25 forks source link

Can't detect happynet virtual Ethernet when both install openVPN #28

Open happyntec opened 1 year ago

happyntec commented 1 year ago
  1. install happynet, config and work ok
  2. install openvpn
  3. manual set virtual ethernet and ip, can't detect happynet virtual Ethernet image image
17/Dec/2022 12:23:21 [edge_utils.c:3160] adding supernode = 12.happyn.vip:40431

17/Dec/2022 12:23:21 [edge.c:1068] starting n2n edge happyn3.1.1 Jul 12 2022 16:34:05

17/Dec/2022 12:23:21 [edge.c:1074] using compression: lzo1x.

17/Dec/2022 12:23:21 [edge.c:1075] using AES cipher.

17/Dec/2022 12:23:21 [edge_utils.c:392] number of supernodes in the list: 1

17/Dec/2022 12:23:21 [edge_utils.c:394] supernode 0 => 12.happyn.vip:40431

17/Dec/2022 12:23:21 [edge_utils.c:483] successfully created resolver thread

17/Dec/2022 12:23:21 [edge.c:1105] automatically assign IP address by supernode

17/Dec/2022 12:23:21 [edge.c:1178] send REGISTER_SUPER to supernode [12.happyn.vip:40431] asking for IP address

17/Dec/2022 12:23:22 [edge_utils.c:2490] supernode '1.14.154.175:40431' added to the list of supernodes.

17/Dec/2022 12:23:22 [edge_utils.c:2490] supernode '43.143.238.41:40431' added to the list of supernodes.

17/Dec/2022 12:23:22 [edge_utils.c:2490] supernode '43.132.171.239:40431' added to the list of supernodes.

17/Dec/2022 12:23:22 [edge.c:1188] received REGISTER_SUPER_ACK from supernode for IP address asignment

Open device [name={9811F569-516A-4141-A50C-04248E348629}][ip=10.252.136.55][ifName=HAPPYNET][MTU=1290][mac=00:FF:C1:4F:17:27]

WARNING: Unable to set device HAPPYNET IP address [netsh interface ip set address "HAPPYNET" static 10.252.136.55 255.255.255.0 > nul]

17/Dec/2022 12:23:23 [edge.c:1217] created local tap device IP: 10.252.136.55, Mask: 255.255.255.0, MAC: 00:FF:C1:4F:17:27

17/Dec/2022 12:23:23 [edge.c:1307] edge started

17/Dec/2022 12:23:23 [edge_utils.c:1160] successfully joined multicast group 224.0.0.68:1968

17/Dec/2022 12:23:24 [edge_utils.c:2519] [OK] edge <<< ================ >>> supernode
  1. reinstall happynet client, reconfigure ip address , and then work ok
eebssk1 commented 6 months ago

Openvpn does not create another virtual tap card and just uses the one already available when installing/connect. Though you can use --dev-node to choose which tap device that openvpn should use(after manually register another vcard to avoid conflicts). There's no better solution if users installs openvpn after openvpn. You can just document it in the readme or probably open a ticket on openvpn for this.

happyntec commented 6 months ago

Openvpn does not create another virtual tap card and just uses the one already available when installing/connect. Though you can use --dev-node to choose which tap device that openvpn should use(after manually register another vcard to avoid conflicts). There's no better solution if users installs openvpn after openvpn. You can just document it in the readme or probably open a ticket on openvpn for this.

This is because happynet uses the openVPN TAP driver; I am planning to compile a new TAP-Windows V9 driver myself to fix this issue.

eebssk1 commented 6 months ago

Openvpn does not create another virtual tap card and just uses the one already available when installing/connect. Though you can use --dev-node to choose which tap device that openvpn should use(after manually register another vcard to avoid conflicts). There's no better solution if users installs openvpn after openvpn. You can just document it in the readme or probably open a ticket on openvpn for this.

This is because happynet uses the openVPN TAP driver; I am planning to compile a new TAP-Windows V9 driver myself to fix this issue.

Also conflicts with netease uu and oray virtual lan adapter. I'm able to solve this by reset their config with netsh and rename the tap adapter installed by happynet to "HAPPYNET" along with manual select it

eebssk1 commented 6 months ago

The latest tap for windows is 9.26.0 and is stable. https://github.com/OpenVPN/tap-windows6/releases