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
ttocs



Joined: 26 Mar 2010
Posts: 1

PostPosted: Fri Mar 26, 2010 3:58 pm    Post subject: Reply with quote

I'm running OpenBSD current. And have 4.7 release pre-ordered.
I'd like to be able to use miniupnp. Let me know if I can help.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri Mar 26, 2010 4:10 pm    Post subject: Reply with quote

ttocs wrote:
I'm running OpenBSD current. And have 4.7 release pre-ordered.
I'd like to be able to use miniupnp. Let me know if I can help.

contact me by email if I can have a shell access to your OpenBSD current box ! thanks !
_________________
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: Mon Apr 05, 2010 2:50 pm    Post subject: Reply with quote

It looks like they fixed the problem :
http://marc.info/?l=openbsd-cvs&m=127020274428088&w=2
Could you update your machine ?
_________________
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: Mon Apr 05, 2010 6:31 pm    Post subject: Reply with quote

I installed a snapshot (4/4/2010) and same problem...

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



Joined: 13 Apr 2010
Posts: 3

PostPosted: Tue Apr 13, 2010 5:18 am    Post subject: Reply with quote

Any progress on this?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Apr 13, 2010 8:44 am    Post subject: Reply with quote

grey wrote:
Any progress on this?

I think I need to avoid using DIOCCHANGERULE... I had no time lately but I'll try to do it soon Smile
_________________
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: Sat Apr 17, 2010 10:25 pm    Post subject: Reply with quote

well I had no more luck with DIOCADDRULE.
I posted on a mailing list... I dont know when it will work.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
BABUT



Joined: 07 Feb 2009
Posts: 13

PostPosted: Mon Apr 26, 2010 1:38 am    Post subject: Reply with quote

think posting in pf mailing list futile, better ask for help from specific people. i hope
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Apr 26, 2010 8:47 am    Post subject: Reply with quote

BABUT wrote:
think posting in pf mailing list futile, better ask for help from specific people. i hope

I have done it and was told to post to pf mailing list.
_________________
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: Thu May 06, 2010 1:50 pm    Post subject: Reply with quote

I had no time to test it, but a good guy sent me this patch for OpenBSD Code in order to make DIOCCHANGERULE work :
Code:
Index: sys/net/pf_ioctl.c
===================================================================
RCS file: /cvs/src/sys/net/pf_ioctl.c,v
retrieving revision 1.232
diff -u -p -u -p -r1.232 pf_ioctl.c
--- sys/net/pf_ioctl.c   18 Jan 2010 23:52:46 -0000   1.232
+++ sys/net/pf_ioctl.c   27 Apr 2010 09:04:37 -0000
@@ -1208,12 +1208,6 @@ pfioctl(dev_t dev, u_long cmd, caddr_t a
       struct pf_rule      *oldrule = NULL, *newrule = NULL;
       u_int32_t       nr = 0;
 
-      if (!(pcr->action == PF_CHANGE_REMOVE ||
-          pcr->action == PF_CHANGE_GET_TICKET)) {
-         error = EBUSY;
-         break;
-      }
-
       if (pcr->action < PF_CHANGE_ADD_HEAD ||
           pcr->action > PF_CHANGE_GET_TICKET) {
          error = EINVAL;

_________________
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: Mon May 10, 2010 2:28 pm    Post subject: Reply with quote

I tried to patch 4.7 snapshot source with this and it failed...

root@gauntlet:/usr/src uname -a
OpenBSD gauntlet 4.7 GENERIC.MP#560 i386
root@gauntlet:/usr/src patch -p0 < ioctl.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/net/pf_ioctl.c
|===================================================================
|RCS file: /cvs/src/sys/net/pf_ioctl.c,v
|retrieving revision 1.232
|diff -u -p -u -p -r1.232 pf_ioctl.c
|--- sys/net/pf_ioctl.c 18 Jan 2010 23:52:46 -0000 1.232
|+++ sys/net/pf_ioctl.c 27 Apr 2010 09:04:37 -0000
--------------------------
Patching file sys/net/pf_ioctl.c using Plan A...
Hunk #1 failed at 1208.
1 out of 1 hunks failed--saving rejects to sys/net/pf_ioctl.c.rej
done


Can you assist me with testing this patch? I have a 4.7 snapshot build of OpenBSD that I recently installed. Thanks.


miniupnp wrote:
I had no time to test it, but a good guy sent me this patch for OpenBSD Code in order to make DIOCCHANGERULE work :
Code:
Index: sys/net/pf_ioctl.c
===================================================================
RCS file: /cvs/src/sys/net/pf_ioctl.c,v
retrieving revision 1.232
diff -u -p -u -p -r1.232 pf_ioctl.c
--- sys/net/pf_ioctl.c   18 Jan 2010 23:52:46 -0000   1.232
+++ sys/net/pf_ioctl.c   27 Apr 2010 09:04:37 -0000
@@ -1208,12 +1208,6 @@ pfioctl(dev_t dev, u_long cmd, caddr_t a
       struct pf_rule      *oldrule = NULL, *newrule = NULL;
       u_int32_t       nr = 0;
 
-      if (!(pcr->action == PF_CHANGE_REMOVE ||
-          pcr->action == PF_CHANGE_GET_TICKET)) {
-         error = EBUSY;
-         break;
-      }
-
       if (pcr->action < PF_CHANGE_ADD_HEAD ||
           pcr->action > PF_CHANGE_GET_TICKET) {
          error = EINVAL;
Back to top
View user's profile Send private message
rephlex



Joined: 10 May 2010
Posts: 11

PostPosted: Mon May 10, 2010 3:42 pm    Post subject: Reply with quote

This appears to be a problem with copy/paste a patch file from the web Smile

I commented out the appropriate lines in pf_ioctl.c and recompiled... Opened MSN messenger and went Tools -> Options -> Connection.

"You are directly connected to .NET Messenger Service."

"You are connected to the Internet through a wired network connection."

"You are connected to the Internet through a UPnP symmetric NAT. (Administrator)"

Seems to be working!!!


rephlex wrote:
I tried to patch 4.7 snapshot source with this and it failed...

root@gauntlet:/usr/src uname -a
OpenBSD gauntlet 4.7 GENERIC.MP#560 i386
root@gauntlet:/usr/src patch -p0 < ioctl.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/net/pf_ioctl.c
|===================================================================
|RCS file: /cvs/src/sys/net/pf_ioctl.c,v
|retrieving revision 1.232
|diff -u -p -u -p -r1.232 pf_ioctl.c
|--- sys/net/pf_ioctl.c 18 Jan 2010 23:52:46 -0000 1.232
|+++ sys/net/pf_ioctl.c 27 Apr 2010 09:04:37 -0000
--------------------------
Patching file sys/net/pf_ioctl.c using Plan A...
Hunk #1 failed at 1208.
1 out of 1 hunks failed--saving rejects to sys/net/pf_ioctl.c.rej
done


Can you assist me with testing this patch? I have a 4.7 snapshot build of OpenBSD that I recently installed. Thanks.


miniupnp wrote:
I had no time to test it, but a good guy sent me this patch for OpenBSD Code in order to make DIOCCHANGERULE work :
Code:
Index: sys/net/pf_ioctl.c
===================================================================
RCS file: /cvs/src/sys/net/pf_ioctl.c,v
retrieving revision 1.232
diff -u -p -u -p -r1.232 pf_ioctl.c
--- sys/net/pf_ioctl.c   18 Jan 2010 23:52:46 -0000   1.232
+++ sys/net/pf_ioctl.c   27 Apr 2010 09:04:37 -0000
@@ -1208,12 +1208,6 @@ pfioctl(dev_t dev, u_long cmd, caddr_t a
       struct pf_rule      *oldrule = NULL, *newrule = NULL;
       u_int32_t       nr = 0;
 
-      if (!(pcr->action == PF_CHANGE_REMOVE ||
-          pcr->action == PF_CHANGE_GET_TICKET)) {
-         error = EBUSY;
-         break;
-      }
-
       if (pcr->action < PF_CHANGE_ADD_HEAD ||
           pcr->action > PF_CHANGE_GET_TICKET) {
          error = EINVAL;
Back to top
View user's profile Send private message
rephlex



Joined: 10 May 2010
Posts: 11

PostPosted: Tue May 11, 2010 5:04 am    Post subject: Reply with quote

However, this does not solve the problem with the rdr-anchor lines being changed (removed?) from pf.

Admin can you comment on your progress with miniupnpd and OpenBSD 4.7? Thanks.


rephlex wrote:
This appears to be a problem with copy/paste a patch file from the web Smile

I commented out the appropriate lines in pf_ioctl.c and recompiled... Opened MSN messenger and went Tools -> Options -> Connection.

"You are directly connected to .NET Messenger Service."

"You are connected to the Internet through a wired network connection."

"You are connected to the Internet through a UPnP symmetric NAT. (Administrator)"

Seems to be working!!!


rephlex wrote:
I tried to patch 4.7 snapshot source with this and it failed...

root@gauntlet:/usr/src uname -a
OpenBSD gauntlet 4.7 GENERIC.MP#560 i386
root@gauntlet:/usr/src patch -p0 < ioctl.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/net/pf_ioctl.c
|===================================================================
|RCS file: /cvs/src/sys/net/pf_ioctl.c,v
|retrieving revision 1.232
|diff -u -p -u -p -r1.232 pf_ioctl.c
|--- sys/net/pf_ioctl.c 18 Jan 2010 23:52:46 -0000 1.232
|+++ sys/net/pf_ioctl.c 27 Apr 2010 09:04:37 -0000
--------------------------
Patching file sys/net/pf_ioctl.c using Plan A...
Hunk #1 failed at 1208.
1 out of 1 hunks failed--saving rejects to sys/net/pf_ioctl.c.rej
done


Can you assist me with testing this patch? I have a 4.7 snapshot build of OpenBSD that I recently installed. Thanks.


miniupnp wrote:
I had no time to test it, but a good guy sent me this patch for OpenBSD Code in order to make DIOCCHANGERULE work :
Code:
Index: sys/net/pf_ioctl.c
===================================================================
RCS file: /cvs/src/sys/net/pf_ioctl.c,v
retrieving revision 1.232
diff -u -p -u -p -r1.232 pf_ioctl.c
--- sys/net/pf_ioctl.c   18 Jan 2010 23:52:46 -0000   1.232
+++ sys/net/pf_ioctl.c   27 Apr 2010 09:04:37 -0000
@@ -1208,12 +1208,6 @@ pfioctl(dev_t dev, u_long cmd, caddr_t a
       struct pf_rule      *oldrule = NULL, *newrule = NULL;
       u_int32_t       nr = 0;
 
-      if (!(pcr->action == PF_CHANGE_REMOVE ||
-          pcr->action == PF_CHANGE_GET_TICKET)) {
-         error = EBUSY;
-         break;
-      }
-
       if (pcr->action < PF_CHANGE_ADD_HEAD ||
           pcr->action > PF_CHANGE_GET_TICKET) {
          error = EINVAL;
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue May 11, 2010 1:56 pm    Post subject: Reply with quote

Dont worry about rdr-anchor... It's just useless with OpenBSD 4.7.
There is only one type of rule now.
_________________
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 2:51 pm    Post subject: Reply with quote

OK. Can you help me understand why miniupnpd will not allow port mappings? I have the anchor miniupnpd command in my pf.conf but applications are not able to open and forward ports...

miniupnpd[15501]: HTTP connection from 192.168.0.51:55734
miniupnpd[15501]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[15501]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry
miniupnpd[15501]: GetGenericPortMappingEntry: index=1
miniupnpd[15501]: Returning UPnPError 713: SpecifiedArrayIndexInvalid

I'm using "UPnP Port Forward Utility" ver. 1.00 for testing.

miniupnp wrote:
Dont worry about rdr-anchor... It's just useless with OpenBSD 4.7.
There is only one type of rule now.
Back to top
View user's profile Send private message
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 2 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.