emule/BT pass iptables

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

1 Reply to “emule/BT pass iptables”

Leave a Reply

Your email address will not be published. Required fields are marked *