View previous topic :: View next topic |
Author |
Message |
ttocs
Joined: 26 Mar 2010 Posts: 1
|
Posted: Fri Mar 26, 2010 3:58 pm Post subject: |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Fri Mar 26, 2010 4:10 pm Post subject: |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Mon Apr 05, 2010 6:31 pm Post subject: |
|
|
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 |
|
|
grey
Joined: 13 Apr 2010 Posts: 3
|
Posted: Tue Apr 13, 2010 5:18 am Post subject: |
|
|
Any progress on this? |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Tue Apr 13, 2010 8:44 am Post subject: |
|
|
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 _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Sat Apr 17, 2010 10:25 pm Post subject: |
|
|
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 |
|
|
BABUT
Joined: 07 Feb 2009 Posts: 13
|
Posted: Mon Apr 26, 2010 1:38 am Post subject: |
|
|
think posting in pf mailing list futile, better ask for help from specific people. i hope |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Mon Apr 26, 2010 8:47 am Post subject: |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Thu May 06, 2010 1:50 pm Post subject: |
|
|
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 |
|
|
rephlex
Joined: 10 May 2010 Posts: 11
|
Posted: Mon May 10, 2010 2:28 pm Post subject: |
|
|
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 |
|
|
rephlex
Joined: 10 May 2010 Posts: 11
|
Posted: Mon May 10, 2010 3:42 pm Post subject: |
|
|
This appears to be a problem with copy/paste a patch file from the web
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 |
|
|
rephlex
Joined: 10 May 2010 Posts: 11
|
Posted: Tue May 11, 2010 5:04 am Post subject: |
|
|
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
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Tue May 11, 2010 1:56 pm Post subject: |
|
|
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 |
|
|
rephlex
Joined: 10 May 2010 Posts: 11
|
Posted: Tue May 11, 2010 2:51 pm Post subject: |
|
|
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 |
|
|
|