| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.14 2004/08/11 19:18:19 vapier Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.15 2004/08/12 03:37:25 vapier Exp $ --> |
| 3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 4 | |
4 | |
| 5 | <guide link="/doc/en/home-router-howto.xml"> |
5 | <guide link="/doc/en/home-router-howto.xml"> |
| 6 | |
6 | |
| 7 | <title>Home Router Guide</title> |
7 | <title>Home Router Guide</title> |
| … | |
… | |
| 497 | # <i>iptables -t nat -I PREROUTING -p tcp --dport 5901 -i eth1 -j DNAT --to 192.168.0.3:5900</i> |
497 | # <i>iptables -t nat -I PREROUTING -p tcp --dport 5901 -i eth1 -j DNAT --to 192.168.0.3:5900</i> |
| 498 | <comment>If you want to VNC in to 192.168.0.3, then just add ':1' to the router's hostname</comment> |
498 | <comment>If you want to VNC in to 192.168.0.3, then just add ':1' to the router's hostname</comment> |
| 499 | |
499 | |
| 500 | <comment>Bittorrent forwarding</comment> |
500 | <comment>Bittorrent forwarding</comment> |
| 501 | # <i>iptables -t nat -A PREROUTING -p tcp --dport 6881:6889 -i eth1 -j DNAT --to 192.168.0.2</i> |
501 | # <i>iptables -t nat -A PREROUTING -p tcp --dport 6881:6889 -i eth1 -j DNAT --to 192.168.0.2</i> |
|
|
502 | |
|
|
503 | <comment>Game Cube Warp Pipe support</comment> |
|
|
504 | # <i>iptables -t nat -A PREROUTING -p udp --dport 4000 -i eth1 -j DNAT --to 192.168.0.56</i> |
|
|
505 | |
|
|
506 | <comment>Playstation2 Online support</comment> |
|
|
507 | # <i>iptables -t nat -A PREROUTING -p tcp --dport 10070:10080 -i eth1 -j DNAT --to 192.168.0.11</i> |
|
|
508 | # <i>iptables -t nat -A PREROUTING -p udp --dport 10070:10080 -i eth1 -j DNAT --to 192.168.0.11</i> |
| 502 | </pre> |
509 | </pre> |
| 503 | |
510 | |
| 504 | <note> |
511 | <note> |
| 505 | If you have other common / cool examples, please <uri link="mailto:vapier@gentoo.org">e-mail me</uri>. |
512 | If you have other common / cool examples, please <uri link="mailto:vapier@gentoo.org">e-mail me</uri>. |
| 506 | </note> |
513 | </note> |