全部文本 #43584 原始 编辑

Miscellany

公开 text v1 · 不可变
·已发布 2006-02-28 12:04 UTC
渲染后的文本正文
to do the forwarding: echo "1" > /proc/sys/net/ipv4/ip_forward; iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables --table nat --insert PREROUTING --in-interface eth0 --protocol 
               tcp --destination-port 6881 --jump DNAT --to-destination 192.168.1.2
this is an example only; dont know if it will work for you