dbr:~# cat pass_port
#!/bin/sh
DSL_IF="ppp0"
TCP_P="4169"
UDP_P="4179"
BT_P="14074"
MY_HOST="192.168.0.5"
iptables -t filter -A FORWARD -p tcp -i $DSL_IF --dport $TCP_P \
-j ACCEPT
iptables -t nat -A PREROUTING -p tcp -i $DSL_IF --dport $TCP_P \
-j DNAT --to-destination $MY_HOST:$TCP_P
iptables -t filter -A FORWARD -p udp -i $DSL_IF --dport $UDP_P \
-j ACCEPT
iptables -t nat -A PREROUTING -p udp -i $DSL_IF --dport $UDP_P \
-j DNAT --to-destination $MY_HOST:$UDP_P
iptables -t filter -A FORWARD -p tcp -i $DSL_IF --dport $BT_P \
-j ACCEPT
iptables -t nat -A PREROUTING -p tcp -i $DSL_IF --dport $BT_P \
-j DNAT --to-destination $MY_HOST:$BT_P
Thank you for sharing!