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 

upnpd don't work in linux

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
zamir



Joined: 01 Mar 2010
Posts: 16

PostPosted: Tue Mar 09, 2010 7:20 pm    Post subject: upnpd don't work in linux Reply with quote

miniupnpd-1.4.20100308

# cat /etc/miniupnpd/miniupnpd.conf |grep chain
# chain names for netfilter (not used for pf or ipf).
upnp_forward_chain=upnpd
upnp_nat_chain=upnpd

# iptables -nvL upnpd && iptables -t nat -nvL upnpd
Chain upnpd (0 references)
pkts bytes target prot opt in out source destination
Chain upnpd (0 references)
pkts bytes target prot opt in out source destination

start utorrent:

# tail -f /var/log/messages |grep upnp
Mar 9 22:18:41 Z1 miniupnpd[21562]: Failed to remove NAT-PMP mapping eport 55844, protocol TCP
Mar 9 22:18:41 Z1 miniupnpd[21562]: Failed to remove NAT-PMP mapping eport 55844, protocol UDP

# iptables -nvL upnpd && iptables -t nat -nvL upnpd
Chain upnpd (0 references)
pkts bytes target prot opt in out source destination
Chain upnpd (0 references)
pkts bytes target prot opt in out source destination

# uname -a
Linux Z1 2.6.29.6-server-3mnb #1 SMP Sat Oct 17 00:31:50 MSD 2009 x86_64 AMD Athlon(tm) X2 Dual Core Processor LS-5790 GNU/Linux

# iptables -V
iptables v1.4.3.2
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Mar 11, 2010 11:08 am    Post subject: Reply with quote

What is the problem ?
With which UPNP client did you test ?
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
zamir



Joined: 01 Mar 2010
Posts: 16

PostPosted: Thu Mar 11, 2010 7:00 pm    Post subject: Reply with quote

miniupnp wrote:
What is the problem ?

no translation rule in chains where utorrent start

miniupnp wrote:
With which UPNP client did you test ?


unpnp clients - utorrent (http://www.utorrent.com/)
active chekbox:
- redirect UPnP
- redirect NAT-PMP

my config:
Code:
ext_ifname=eth0.28
listening_ip=10.76.255.65/27
port=0
enable_natpmp=yes
enable_upnp=no
upnp_forward_chain=upnpd
upnp_nat_chain=upnpd
lease_file=/var/spool/upnp.leases
bitrate_up=1000000
bitrate_down=10000000
secure_mode=no
system_uptime=yes
notify_interval=60
clean_ruleset_interval=600
uuid=a7248a3b-a613-45f2-96fa-0567fa6f93b2
serial=12345678
model_number=1
allow 1024-65535 192.168.0.0/24 1024-65535
allow 1024-65535 192.168.1.0/24 1024-65535
allow 1024-65535 192.168.0.0/23 22
allow 12345 192.168.7.113/32 54321
deny 0-65535 0.0.0.0/0 0-65535


Last edited by zamir on Thu Mar 11, 2010 7:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
zamir



Joined: 01 Mar 2010
Posts: 16

PostPosted: Fri Mar 12, 2010 10:03 am    Post subject: Reply with quote

secure_mode=no - disable 'allow' and 'deny' functional?
if not disable, i'am sorry Sad

I should repeat the test with only one rule:
allow 0-65535 0.0.0.0/0 0-65535
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri Mar 12, 2010 10:25 am    Post subject: Reply with quote

Please also test with another UPNP client. Such as miniupnpc or the UPNP test program by Mark Gillespie.
_________________
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: Fri Mar 12, 2010 10:27 am    Post subject: Reply with quote

zamir wrote:
secure_mode=no - disable 'allow' and 'deny' functional?
if not disable, i'am sorry Sad

I should repeat the test with only one rule:
allow 0-65535 0.0.0.0/0 0-65535

Secure mode just forbid clients to add a redirection to an adress other than thier.

To enable more messages, run miniupnpd in debug mode :
miniupnpd -d
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
zamir



Joined: 01 Mar 2010
Posts: 16

PostPosted: Fri Mar 12, 2010 8:27 pm    Post subject: Reply with quote

I was not right
please, close or delete topic
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 Bugs All times are GMT
Page 1 of 1

 
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.