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 

monkeys changed syntax in pf
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue May 11, 2010 3:09 pm    Post subject: Reply with quote

miniupnpd[15501]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry
miniupnpd[15501]: GetGenericPortMappingEntry: index=1

thats not a problem.
What happen when the client use the AddPortMapping method ?
after that, what is the result of pfctl -s rules -a miniupnpd ?
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
rephlex



Joined: 10 May 2010
Posts: 11

PostPosted: Tue May 11, 2010 3:52 pm    Post subject: Reply with quote

Can you suggest a utility that will accomplish this method? I have access to a Win7 machine to do this testing at the moment. Thanks.

miniupnp wrote:
miniupnpd[15501]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry
miniupnpd[15501]: GetGenericPortMappingEntry: index=1

thats not a problem.
What happen when the client use the AddPortMapping method ?
after that, what is the result of pfctl -s rules -a miniupnpd ?
Back to top
View user's profile Send private message
rephlex



Joined: 10 May 2010
Posts: 11

PostPosted: Tue May 11, 2010 4:00 pm    Post subject: Reply with quote

Hi Admin,

I used the "UPnP Port forward utility" 1.00 to do an "Add new entry..." with TCP port 5566..

sudo pfctl -s rules -a miniupnpd

pass in quick on fxp0 inet proto tcp from any to any port = 5566 flags any keep state label "test" rdr-to 192.168.0.51 port 5566


rephlex wrote:
Can you suggest a utility that will accomplish this method? I have access to a Win7 machine to do this testing at the moment. Thanks.

miniupnp wrote:
miniupnpd[15501]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry
miniupnpd[15501]: GetGenericPortMappingEntry: index=1

thats not a problem.
What happen when the client use the AddPortMapping method ?
after that, what is the result of pfctl -s rules -a miniupnpd ?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue May 11, 2010 4:10 pm    Post subject: Reply with quote

rephlex wrote:
Hi Admin,

I used the "UPnP Port forward utility" 1.00 to do an "Add new entry..." with TCP port 5566..

sudo pfctl -s rules -a miniupnpd

pass in quick on fxp0 inet proto tcp from any to any port = 5566 flags any keep state label "test" rdr-to 192.168.0.51 port 5566


looks good !
there must be a problem in get_redirect_rule_by_index() or something !
I'll have a look
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue May 11, 2010 4:23 pm    Post subject: Reply with quote

does it works better with this version ?
miniupnpd-1.4.20100511.tar.gz
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
rephlex



Joined: 10 May 2010
Posts: 11

PostPosted: Tue May 11, 2010 4:25 pm    Post subject: Reply with quote

I will give this a shot... The true test would be to fire up my xbox 360 and see if it shows my NAT as "open" but I can't test that until tonight...

miniupnp wrote:
does it works better with this version ?
miniupnpd-1.4.20100511.tar.gz
Back to top
View user's profile Send private message
rephlex



Joined: 10 May 2010
Posts: 11

PostPosted: Tue May 11, 2010 5:09 pm    Post subject: Reply with quote

I did the same test by adding a port mapping using UPnP Port Forward Utility ver 1.00 after installing miniupnpd-1.4.20100511.tar.gz

miniupnpd log:

miniupnpd[21492]: GetGenericPortMappingEntry: index=0
miniupnpd[21492]: HTTP connection from 192.168.0.51:56165
miniupnpd[21492]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[21492]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetSpecificPor
tMappingEntry
miniupnpd[21492]: GetSpecificPortMappingEntry: rhost='(null)' 44551 TCP found => 192.168.0.
51:44551 desc='testport'

sudo pfctl -s rules -a miniupnpd
pass in quick on fxp0 inet proto tcp from any to any port = 44551 flags any keep state labe
l "testport" rdr-to 192.168.0.51 port 44551
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue May 11, 2010 10:07 pm    Post subject: Reply with quote

it looks great !
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
rephlex



Joined: 10 May 2010
Posts: 11

PostPosted: Tue May 11, 2010 10:47 pm    Post subject: Reply with quote

miniupnp wrote:
it looks great !


I'll try xbox live tonight and report my findings...
Back to top
View user's profile Send private message
rephlex



Joined: 10 May 2010
Posts: 11

PostPosted: Wed May 12, 2010 5:08 am    Post subject: Reply with quote

miniupnp wrote:
it looks great !


Does this look normal?

miniupnpd verbose log with Xbox 360 "test for xbox live" running. Result states "Scrict NAT" on the Xbox console.

miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:30252 ST: uuid:d1d17c53-ace6-4349-b5fa-6edcfc87159a
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:30252 ST: uuid:d1d17c53-ace6-4349-b5fa-6edcfc87159a
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:30252 ST: uuid:d1d17c53-ace6-4349-b5fa-6edcfc87159a
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:10506 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:23819 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:10506 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:23819 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:10506 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:23819 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:3142 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:22491 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:3142 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:22491 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:3142 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:22491 ST: urn:schemas-upnp-org:service:WANPPPConnection:1


.. I was expecting to have "open" as the NAT type reported by the Xbox 360 dashboard. Any ideas?

Thanks.
Back to top
View user's profile Send private message
rephlex



Joined: 10 May 2010
Posts: 11

PostPosted: Fri May 14, 2010 3:32 am    Post subject: Reply with quote

I think I may be fighting a pf issue here... If I delete my "block log all" rule from pf.conf then I can get xbox live working (with some additonal rdr rules to my xbox's IP).

As far as the upnp requirement it appears miniupnpd is at least responding.



rephlex wrote:
miniupnp wrote:
it looks great !


Does this look normal?

miniupnpd verbose log with Xbox 360 "test for xbox live" running. Result states "Scrict NAT" on the Xbox console.

miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:30252 ST: uuid:d1d17c53-ace6-4349-b5fa-6edcfc87159a
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:30252 ST: uuid:d1d17c53-ace6-4349-b5fa-6edcfc87159a
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:30252 ST: uuid:d1d17c53-ace6-4349-b5fa-6edcfc87159a
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:10506 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:23819 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:10506 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:23819 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:10506 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:23819 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:3142 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:22491 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:3142 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:22491 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:3142 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[21492]: SSDP M-SEARCH from 192.168.0.151:22491 ST: urn:schemas-upnp-org:service:WANPPPConnection:1


.. I was expecting to have "open" as the NAT type reported by the Xbox 360 dashboard. Any ideas?

Thanks.
Back to top
View user's profile Send private message
nullstream



Joined: 20 May 2010
Posts: 1

PostPosted: Thu May 20, 2010 2:51 am    Post subject: Tried 0511 release myself. Reply with quote

My DNS-323 tried but couldn't register... device busy issue.
XBox was seen but same... device busy.

Log is below (via OpenBSD 4.7-release):
Code:

# miniupnpd -d
miniupnpd[26032]: HTTP listening on port 5903
miniupnpd[26032]: Listening for NAT-PMP traffic on port 5351
miniupnpd[26032]: HTTP connection from 192.168.101.4:2156
miniupnpd[26032]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.0)
miniupnpd[26032]: HTTP connection from 192.168.101.4:2157
miniupnpd[26032]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.0)
miniupnpd[26032]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
miniupnpd[26032]: NewLeaseDuration=3600 not supported, ignored. (ip=192.168.101.4, desc='BitTorrent SDK 2.0')
miniupnpd[26032]: AddPortMapping: ext port 6881 to 192.168.101.4:6881 protocol TCP for: BitTorrent SDK 2.0
miniupnpd[26032]: UPnP permission rule 0 matched : port mapping accepted
miniupnpd[26032]: redirecting port 6881 to 192.168.101.4:6881 protocol TCP for: BitTorrent SDK 2.0
miniupnpd[26032]: ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: Device busy
miniupnpd[26032]: Returning UPnPError 501: ActionFailed
miniupnpd[26032]: HTTP connection from 192.168.101.4:2158
miniupnpd[26032]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.0)
miniupnpd[26032]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
miniupnpd[26032]: NewLeaseDuration=3600 not supported, ignored. (ip=192.168.101.4, desc='BitTorrent SDK 2.0')
miniupnpd[26032]: AddPortMapping: ext port 6881 to 192.168.101.4:6881 protocol UDP for: BitTorrent SDK 2.0
miniupnpd[26032]: UPnP permission rule 0 matched : port mapping accepted
miniupnpd[26032]: redirecting port 6881 to 192.168.101.4:6881 protocol UDP for: BitTorrent SDK 2.0
miniupnpd[26032]: ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: Device busy
miniupnpd[26032]: Returning UPnPError 501: ActionFailed
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:12855 ST: uuid:48699212-114e-6088-df8f-00195bef3243
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:12855 ST: uuid:48699212-114e-6088-df8f-00195bef3243
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:12855 ST: uuid:48699212-114e-6088-df8f-00195bef3243
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:11472 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:32631 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[26032]: HTTP connection from 192.168.101.5:19146
miniupnpd[26032]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.1)
miniupnpd[26032]: HTTP connection from 192.168.101.5:34657
miniupnpd[26032]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[26032]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetStatusInfo
miniupnpd[26032]: HTTP connection from 192.168.101.5:51979
miniupnpd[26032]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[26032]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
miniupnpd[26032]: AddPortMapping: ext port 3074 to 192.168.101.5:3074 protocol UDP for: Xbox (192.168.101.5:3074) 3074 UDP
miniupnpd[26032]: UPnP permission rule 0 matched : port mapping accepted
miniupnpd[26032]: redirecting port 3074 to 192.168.101.5:3074 protocol UDP for: Xbox (192.168.101.5:3074) 3074 UDP
miniupnpd[26032]: ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: Device busy
miniupnpd[26032]: Returning UPnPError 501: ActionFailed
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu May 20, 2010 8:32 am    Post subject: Re: Tried 0511 release myself. Reply with quote

OpenBSD 4.7 has to be patched to avoid this error.

nullstream wrote:
My DNS-323 tried but couldn't register... device busy issue.
XBox was seen but same... device busy.

Log is below (via OpenBSD 4.7-release):
Code:

# miniupnpd -d
miniupnpd[26032]: HTTP listening on port 5903
miniupnpd[26032]: Listening for NAT-PMP traffic on port 5351
miniupnpd[26032]: HTTP connection from 192.168.101.4:2156
miniupnpd[26032]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.0)
miniupnpd[26032]: HTTP connection from 192.168.101.4:2157
miniupnpd[26032]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.0)
miniupnpd[26032]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
miniupnpd[26032]: NewLeaseDuration=3600 not supported, ignored. (ip=192.168.101.4, desc='BitTorrent SDK 2.0')
miniupnpd[26032]: AddPortMapping: ext port 6881 to 192.168.101.4:6881 protocol TCP for: BitTorrent SDK 2.0
miniupnpd[26032]: UPnP permission rule 0 matched : port mapping accepted
miniupnpd[26032]: redirecting port 6881 to 192.168.101.4:6881 protocol TCP for: BitTorrent SDK 2.0
miniupnpd[26032]: ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: Device busy
miniupnpd[26032]: Returning UPnPError 501: ActionFailed
miniupnpd[26032]: HTTP connection from 192.168.101.4:2158
miniupnpd[26032]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.0)
miniupnpd[26032]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
miniupnpd[26032]: NewLeaseDuration=3600 not supported, ignored. (ip=192.168.101.4, desc='BitTorrent SDK 2.0')
miniupnpd[26032]: AddPortMapping: ext port 6881 to 192.168.101.4:6881 protocol UDP for: BitTorrent SDK 2.0
miniupnpd[26032]: UPnP permission rule 0 matched : port mapping accepted
miniupnpd[26032]: redirecting port 6881 to 192.168.101.4:6881 protocol UDP for: BitTorrent SDK 2.0
miniupnpd[26032]: ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: Device busy
miniupnpd[26032]: Returning UPnPError 501: ActionFailed
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:12855 ST: uuid:48699212-114e-6088-df8f-00195bef3243
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:12855 ST: uuid:48699212-114e-6088-df8f-00195bef3243
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:12855 ST: uuid:48699212-114e-6088-df8f-00195bef3243
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:11472 ST: urn:schemas-upnp-org:service:WANIPConnection:1
miniupnpd[26032]: SSDP M-SEARCH from 192.168.101.5:32631 ST: urn:schemas-upnp-org:service:WANPPPConnection:1
miniupnpd[26032]: HTTP connection from 192.168.101.5:19146
miniupnpd[26032]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.1)
miniupnpd[26032]: HTTP connection from 192.168.101.5:34657
miniupnpd[26032]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[26032]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetStatusInfo
miniupnpd[26032]: HTTP connection from 192.168.101.5:51979
miniupnpd[26032]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[26032]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
miniupnpd[26032]: AddPortMapping: ext port 3074 to 192.168.101.5:3074 protocol UDP for: Xbox (192.168.101.5:3074) 3074 UDP
miniupnpd[26032]: UPnP permission rule 0 matched : port mapping accepted
miniupnpd[26032]: redirecting port 3074 to 192.168.101.5:3074 protocol UDP for: Xbox (192.168.101.5:3074) 3074 UDP
miniupnpd[26032]: ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: Device busy
miniupnpd[26032]: Returning UPnPError 501: ActionFailed

_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
chrisk_de



Joined: 25 May 2010
Posts: 4

PostPosted: Tue May 25, 2010 1:44 pm    Post subject: Reply with quote

Only 5 days later, but is this still true? I mean that I'd have to patch OpenBSD?

I am running 4.7-release and do still get these ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: Device busy errors.

If you are still in the need for system access, I could give you access to my Test(virtual)machine, again... I now finally moved into my new flat, so connection is stable again Wink
_________________
http://www.chrisk.de
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue May 25, 2010 1:58 pm    Post subject: Reply with quote

chrisk_de wrote:
Only 5 days later, but is this still true? I mean that I'd have to patch OpenBSD?

I am running 4.7-release and do still get these ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: Device busy errors.
[...]

yep, true. OpenBSD-4.7-release has to be patched in order for DIOCCHANGERULE to work.
I dunno if current is ok. I hope so !
_________________
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 Compilation/Installation All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
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.