Hi,
I’ve installed GenieACS version v1.2.13+240606fc80 and stuntman server in the same server to handle my router behind NAT.
GenieACS(192.168.202.100) —— NAT(WAN:192.168.202.200) —Router(WAN:192.168.66.100)
./stunserver --primaryadvertised 192.168.202.100 --reuseaddr true --verbosity 8
Everything looks good.
But when Genie send UDPConnectionRequest, router no response, like this.
I suspect that the UDPConnectionRequest sent by GenieACS is abnormal, so I write a python script to send UDPConnectionRequest. As you see, it works.
Here is Genie’s debug log:
event: outgoing UDP message
timestamp: 2024-10-28T12:06:51.608Z
remoteAddress: 192.168.202.200
deviceId: 00FF00-H27BE-00FF0041CD1C
remotePort: 3478
body: “GET http://192.168.202.200:3478?ts=1730117211&id=742197182&un=deco&cn=5ef1eb125ac90922&sig=18b72ccc6c6487a1182f4a19e7f3bc6b94ab5efe HTTP/1.1\r\nHost: 192.168.202.200:3478\r\n\r\n”
I doubt if the “sig” has wrong value, can you tell me how it generates. @zolitacs
This is how my python script generates the “sig”:
id = 742197182
cn = ‘5ef1eb125ac90922’
un = ‘deco’
key = ‘test’
timestamp_ms = lambda: int(round(time.time() * 1000))
current_time = timestamp_ms()
ts = current_time
id += 1
text = str(ts) + str(id) + un + cn
hashed = hmac.new(key.encode(), text.encode(), sha1)
sig = hashed.hexdigest()