View previous topic :: View next topic |
Author |
Message |
oos
Joined: 13 Jan 2010 Posts: 2
|
Posted: Wed Jan 13, 2010 9:52 pm Post subject: [PATCH] Source address of NAT-PMP replies |
|
|
Because the nat-pmp udp socket is bound to INADDR_ANY, replies to nat-pmp requests sometimes have a wrong source address if the host running miniupnpd has multiple ip addresses in the same subnet. In my case, requests sent to my gw's carp interface (192.168.100.1/24) get replies from the physical interfaces address (192.168.100.2/24) which are ignored by the requesting client.
The following patch fixes this by adding separate udp sockets for nat-pmp, bound to each configured listening_ip. |
|
Back to top |
|
|
oos
Joined: 13 Jan 2010 Posts: 2
|
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
|
Back to top |
|
|
|