R.A. Epigonos et al.

[iptables] torrentクライアントをfirewallの内側で快適に使う方法

快適にとはそれなりの速度が出るようにということiptablesのチェインに下を追加。

BTFORWARDADDR=192.168.2.20
PORTSTART=6881
PORTEND=6999 
/sbin/iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport $PORTSTART:$PORTEND -j DNAT --to-destination $BTFORWARDADDR
/sbin/iptables -A FORWARD -s $BTFORWARDADDR -p tcp --dport $PORTSTART:$PORTEND -j ACCEPT

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2008-10-18T03:55:08+09:00
  2. Modified: 2008-10-18T07:15:47+09:00
  3. Generated: 2023-08-27T23:09:10+09:00