# cd /usr/ports/net/udpxy
# make install clean
# udpxy -v -S -p 7788 -l /var/log/udpxy.log -m 217.1.1.242 -M 30 -B 1Mb -c 10
-M пере подключение к мультикаст потоку. Минимум 30 сек
# sockstat | grep udpxy
Разрешение в ipfw:
# ipfw add 4 allow tcp from any to any dst-port 7788
# ipfw add 6 allow udp from any to any dst-port 4001
# ipfw add 20 allow igmp from any to any via igb1
Разрешение в pf:
# nano /etc/pf.conf
#Mir
ext_if = "igb1"
#Lan
lan_if2 = "igb0"
set limit states 128000
set optimization aggressive
nat pass on $ext_if from 10.0.0.0/24 to any -> ($ext_if)
pass on $ext_if inet proto igmp to any allow-opts
pass in on $ext_if inet proto udp to any port {4001, 7788}
pass on $lan_if2 inet proto igmp to any allow-opts
pass in on $lan_if2 proto udp to any port {4001, 7788}