vapier 07/01/28 22:36:37 Modified: home-router-howto.xml Log: add samba port forwarding as suggested by Daniel Meissner
Revision Changes Path 1.55 xml/htdocs/doc/en/home-router-howto.xml file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/home-router-howto.xml?rev=1.55&view=markup plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/home-router-howto.xml?rev=1.55&content-type=text/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/home-router-howto.xml?r1=1.54&r2=1.55 Index: home-router-howto.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- home-router-howto.xml 8 Nov 2006 19:39:24 -0000 1.54 +++ home-router-howto.xml 28 Jan 2007 22:36:37 -0000 1.55 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.54 2006/11/08 19:39:24 nightmorph Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.55 2007/01/28 22:36:37 vapier Exp $ --> <guide link="/doc/en/home-router-howto.xml" lang="en"> <title>Home Router Guide</title> @@ -17,8 +17,8 @@ <!-- The content of this document is released into the public domain --> <license/> -<version>1.33</version> -<date>2006-11-08</date> +<version>1.34</version> +<date>2007-01-28</date> <chapter> <title>Introduction</title> @@ -528,6 +528,13 @@ # <i>iptables -t nat -I PREROUTING -p tcp --dport 5901 -i ${WAN} -j DNAT --to 192.168.0.3:5900</i> <comment>If you want to VNC in to 192.168.0.3, then just add ':1' to the router's hostname</comment> +<comment>SAMBA forwarding to an internal host (excess ports to cover Windows)</comment> +# <i>iptables -t nat -I PREROUTING -p tcp --dport 135 -i ${WAN} -j DNAT --to 192.168.0.2</i> +# <i>iptables -t nat -I PREROUTING -p tcp --dport 139 -i ${WAN} -j DNAT --to 192.168.0.2</i> +# <i>iptables -t nat -I PREROUTING -p tcp --dport 445 -i ${WAN} -j DNAT --to 192.168.0.2</i> +# <i>iptables -t nat -I PREROUTING -p udp --dport 137:138 -i ${WAN} -j DNAT --to 192.168.0.2</i> +# <i>iptables -t nat -I PREROUTING -p udp --dport 445 -i ${WAN} -j DNAT --to 192.168.0.2</i> + <comment>Bittorrent forwarding</comment> # <i>iptables -t nat -A PREROUTING -p tcp --dport 6881:6889 -i ${WAN} -j DNAT --to 192.168.0.2</i> -- [email protected] mailing list
