Closed steom closed 5 months ago
Can NetNat
commands be executed in powershell?
yes, New-NetNat and Set-NetNat can be executed in powershell.
Are there more error logs?
no
Recompile, you may see more errors
Are there more error logs?
+ CategoryInfo : NotSpecified: (MSFT_NetNat:root/StandardCimv2/MSFT_NetNat) [New-NetNat], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041013,New-NetNat
[2023-06-15 20:07:16] ERROR simple_wintun::adapter - Delete wintun driver error: OS Error -536870339 (FormatMessageW() returned error 317) (os error -536870339) node t1 tcp handler error
May have to enable Hyper-V https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network
Add cross_nat option
Used to replace the current platform system NAT component. It can be enabled when the system NAT is unavailable. It only takes effect when allowed_ips
is configured. The default is false
finally! very good! I will give you feedback!
finally! very good! I will give you feedback!
subnets ping works successfully but ERROR fubukil::node::cross_nat - tcp_inbound_handler error: connect to 192.168.0.3:445 error
Caused by: Unable to establish connection. Incorrect response from the connected party after the time interval or no response from the connected host. (os error 10060)
Not sure if you have config it correctly when Node A has route 192.168.0.0/24, add allowed_ips config
"allowed_ips": [
"192.168.0.0/24"
]
when Node B wants to access 192.168.0.3, add ips config
"ips": {
"Node A IP": [
"192.168.0.0/24"
]
}
yes sure... without this conf Node B, will not ping 192.168.0.3...
udp traffic is ok tcp tcp_inbound_handler error
Reply of this ping is fake Can TCP be established with 192.168.0.3:445 on Node A?
i've checked with an udp payload test ok
i've checked with an tcp payload test also...
tcp ERROR fubukil::node::cross_nat - tcp_inbound_handler error: connect to 192.168.0.3:445 error on node A
Only using telnet 192.168.0.3 445
on Node A is also established?
yes
new-Object System.Net.Sockets.TcpClient("192.168.0.3", 445)
Client : System.Net.Sockets.Socket Available : 0 Connected : True ExclusiveAddressUse : False ReceiveBufferSize : 65536 SendBufferSize : 65536 ReceiveTimeout : 0 SendTimeout : 0 LingerState : System.Net.Sockets.LingerOption NoDelay : False
remove the socket network interface binding in cross_nat https://github.com/xutianyi1999/fubuki-test/releases/tag/v0.1.87
fine! now works ok
cross-nat merged into v0.5.9
there are some requirements for using allowed_ips on windows?
adding the option:
ERROR simple_wintun::adapter - Delete wintun driver error: OS Error -536870339 (FormatMessageW() returned error 317) (os error -536870339) node xxx tcp handler error
Caused by: add nat record failed