miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Miniupnp not working in pfsense when WAN is private IP
Goto page Previous  1, 2
 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
Gblenn



Joined: 03 Mar 2023
Posts: 11
Location: Sweden

PostPosted: Fri Mar 10, 2023 7:04 pm    Post subject: Reply with quote

Running the same test with a fake public IP on WAN.

miniupnpd.config
ext_ifname=vtnet0
port=2189
listening_ip=vtnet1
secure_mode=yes
presentation_url=https://192.168.1.1/
uuid=redacted
serial=redacted
model_number=23.01-RELEASE
allow 1024-65535 192.168.1.91/32 1024-65535
deny 0-65535 0.0.0.0/0 0-65535
enable_upnp=yes
enable_natpmp=yes

At first I have the same log entries as before:
2023-03-10 19:54:51.224847+01:00 miniupnpd 76858 Listening for NAT-PMP/PCP traffic on port 5351
2023-03-10 19:54:51.224820+01:00 miniupnpd 76858 no HTTP IPv6 address, disabling IPv6
2023-03-10 19:54:51.224558+01:00 miniupnpd 76858 HTTP listening on port 2189

When starting my most difficult game to get to Open NAT, I also see this entry:
2023-03-10 19:56:31.941530+01:00 miniupnpd 76858 ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: File exists

The rules that are added to the list for MW2 are:
WAN udp any 28960 192.168.1.91 28960 NAT-PMP 28960 udp
WAN udp any 28961 192.168.1.91 28960 NAT-PMP 28961 udp

Games using port 3074 also show Open NAT.

And the game reports Open NAT
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sat Mar 11, 2023 4:47 pm    Post subject: Reply with quote

Code:
Code: miniupnpd --version
miniupnpd 2.2.1 Jan 7 2023
using pf backend

This is always the 1st information to provide when reporting a bug.

There was a bug with the pf backend + double NAT setups that was fixed in miniupnpd 2.3.1 and later versions.
Please redo your tests with an updated miniupnpd version.

about pfctl, -s is used to show rules. you may need -a to specify the right anchor.
Here is the pfctl man page : https://man.openbsd.org/pfctl
it may or may not be 100% accurate for the pfctl version provided by your operating system
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Gblenn



Joined: 03 Mar 2023
Posts: 11
Location: Sweden

PostPosted: Sun Mar 12, 2023 12:07 pm    Post subject: Reply with quote

Code: pkg upgrade miniupnpd:
Installed packages to be REINSTALLED:
miniupnpd-2.2.1_1,1 [pfSense]

Seems like there is no later release in the pfsense repository, so I need to look elsewhere, or what do I do? Perhaps there are dependencies that will not make it work?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Mar 14, 2023 11:33 pm    Post subject: Reply with quote

I don't know anything about miniupnpd packaging for pfsense.

source packages are available there : https://miniupnp.tuxfamily.org/files/
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.