Hello,
Please help me on following case. I'm trying to make UPNP port forwarding using miniupnpd and pf, but it does't work.
FreeBSD 8.2-STABLE, kernel and world built from cvs RELENG_8.
Miniupnpd installed from ports. Config of miniupnpd:
pf config:
Starting miniupnpd in debug mode:
OK, miniupnpd is running:
Now I start uTorrent with UPNP enabled on my Windows pc. We can see that there is some upnp traffic coming from Windows pc:
But there is no reaction from miniupnpd on debug stdout and no interaction with PF:
What's wrong?
Please help me on following case. I'm trying to make UPNP port forwarding using miniupnpd and pf, but it does't work.
FreeBSD 8.2-STABLE, kernel and world built from cvs RELENG_8.
Miniupnpd installed from ports. Config of miniupnpd:
Code:
/usr/local/etc>cat ./miniupnpd.conf | grep -v '^#' | sed '/^$/d'
ext_ifname=sk0
ext_ip=*.*.19.66
listening_ip=10.1.0.1
port=5555
bitrate_up=131072
bitrate_down=524288
secure_mode=yes
system_uptime=yes
clean_ruleset_interval=600
notify_interval=30
uuid=f8565bd4-8d3a-11e0-8d57-00112fba8587
allow 1024-65535 10.1.0.0/24 1024-65535
deny 0-65535 0.0.0.0/0 0-65535
pf config:
Code:
/usr/local/etc>cat /etc/pf.conf | grep -v '^#' | sed '/^$/d'
ext_if="sk0"
external_addr="*.*.19.66"
int_if="em0"
internal_net="10.1.0.0/24"
nat on $ext_if from $internal_net to any -> $external_addr
rdr-anchor miniupnpd
anchor miniupnpd
pass in quick proto igmp all allow-opts
pass out quick proto igmp all allow-opts
pass out quick on $int_if from any to 239.0.0.0/8 keep state
pass in quick on $int_if from any to 239.0.0.0/8 keep state
pass in all
pass out all
Starting miniupnpd in debug mode:
Code:
/usr/local/etc/rc.d>miniupnpd -f /usr/local/etc/miniupnpd.conf -d
miniupnpd[25778]: HTTP listening on port 5555
OK, miniupnpd is running:
Code:
/usr/local/etc>sockstat -4 -l | grep miniupnpd
root miniupnpd 25778 5 tcp4 *:5555 *:*
root miniupnpd 25778 6 udp4 *:1900 *:*
root miniupnpd 25778 7 udp4 10.1.0.1:48461 *:*
Now I start uTorrent with UPNP enabled on my Windows pc. We can see that there is some upnp traffic coming from Windows pc:
Code:
/usr/local/etc>tcpdump -i em0 port 1900 or port 5555
15:41:52.112939 IP6 fe80::5cbe:cbdb:e3eb:f511.61545 > ff02::c.1900: UDP, length
15:42:07.561265 IP pc.home.lcl.52612 > 239.255.255.250.1900: UDP, length 9
15:42:12.564581 IP pc.home.lcl.52612 > 239.255.255.250.1900: UDP, length 9
15:42:17.579889 IP pc.home.lcl.52612 > 239.255.255.250.1900: UDP, length 9
15:42:20.430164 IP pc.home.lcl.61547 > 239.255.255.250.1900: UDP, length 1
But there is no reaction from miniupnpd on debug stdout and no interaction with PF:
Code:
/usr/local>pfctl -a miniupnpd -sn
output is void
What's wrong?