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 

Redirection in FreeBSD with miniupnpd does not work

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> NAT/UPnP
View previous topic :: View next topic  
Author Message
Jerbe



Joined: 30 Nov 2008
Posts: 1

PostPosted: Sun Nov 30, 2008 10:52 am    Post subject: Redirection in FreeBSD with miniupnpd does not work Reply with quote

I try to use an IP-phone behind a FreeBSD NAT with uPnP. The problem is that at least one rdr does not seem to work.
Outgoing calls work just fine, but when someone calls, they can hear just fine, I can hear nothing (som incoming audio-stream is lost for incoming calls).

pfctl -a miniupnpd -s nat
tells me that there is indeed a redirection in place. And tcpdump tells me that there is incoming traffic on the external interface, but thoose packets never show up on the internal interface.

Code:
[erik@lurvas ~]$ sudo pfctl -a miniupnpd -s nat
No ALTQ support in kernel
ALTQ related functions disabled
rdr pass on fxp0 inet proto udp from any to any port = 50687 label "Telephony (192.168.0.197:5060) 50687 UDP" rtable 0 -> 192.168.0.197 port 5060
rdr pass on fxp0 inet proto tcp from any to any port = 50686 label "Telephony (192.168.0.197:5061) 50686 TCP" rtable 0 -> 192.168.0.197 port 5061
rdr pass log on fxp0 inet proto tcp from any to any port = 19763 label "NAT-PMP 602424" rtable 0 -> 192.168.0.196 port 19763
rdr pass log on fxp0 inet proto udp from any to any port = 50432 label "Telephony (192.168.0.197:10000) 50432 UDP" rtable 0 -> 192.168.0.197 port 10000
rdr pass log on fxp0 inet proto udp from any to any port = 50433 label "Telephony (192.168.0.197:10001) 50433 UDP" rtable 0 -> 192.168.0.197 port 10001
[erik@lurvas ~]$


It's the one redirecting to 192.168.0.197 that is not working.

here is pf.conf:

Code:
ext_if="fxp0"
int_if="fxp1"
internal_net="192.168.0.0/24"
nat on $ext_if from $internal_net to any -> ($ext_if)
rdr-anchor "miniupnpd"
pass in all
pass out all
pass  in quick on $ext_if proto tcp from any to $ext_if port 22 keep state
anchor "miniupnpd"


And here is miniupnpd.conf:

Code:
ext_ifname=fxp0
listening_ip=192.168.0.1/24
port=0
enable_natpmp=yes
enable_upnp=yes
bitrate_up=10000000
bitrate_down=100000000
secure_mode=no
system_uptime=yes
notify_interval=60
clean_ruleset_interval=600
packet_log=yes
uuid=7977df5e-bd57-11dd-bf9b-00508bc835e5
serial=12345678
model_number=1
allow 1024-65535 192.168.0.0/24 1024-65535
deny 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: 1442

PostPosted: Sun Nov 30, 2008 10:18 pm    Post subject: Reply with quote

that *should* work...
I've no idea why the packets dont get their way to the internal network
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
2marshall8



Joined: 05 Jun 2009
Posts: 5

PostPosted: Fri Jun 05, 2009 11:55 pm    Post subject: Reply with quote

perhaps the external interface is not setup correctly. Just a thought
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 -> NAT/UPnP 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.