* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en: home-router-howto.xml
@ 2009-09-18 8:36 Joshua Saddler (nightmorph)
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Saddler (nightmorph) @ 2009-09-18 8:36 UTC (permalink / raw
To: gentoo-doc-cvs
nightmorph 09/09/18 08:36:43
Modified: home-router-howto.xml
Log:
update home router guide for the new iptables syntax, patch from bug 285416
Revision Changes Path
1.63 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.63&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/home-router-howto.xml?rev=1.63&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/home-router-howto.xml?r1=1.62&r2=1.63
Index: home-router-howto.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- home-router-howto.xml 19 Aug 2008 14:15:59 -0000 1.62
+++ home-router-howto.xml 18 Sep 2009 08:36:43 -0000 1.63
@@ -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.62 2008/08/19 14:15:59 vapier Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.63 2009/09/18 08:36:43 nightmorph 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.39</version>
-<date>2008-08-19</date>
+<version>1.40</version>
+<date>2009-09-18</date>
<chapter>
<title>Introduction</title>
@@ -440,15 +440,15 @@
<comment>Then we lock our services so they only work from the LAN</comment>
# <i>iptables -I INPUT 1 -i ${LAN} -j ACCEPT</i>
# <i>iptables -I INPUT 1 -i lo -j ACCEPT</i>
-# <i>iptables -A INPUT -p UDP --dport bootps -i ! ${LAN} -j REJECT</i>
-# <i>iptables -A INPUT -p UDP --dport domain -i ! ${LAN} -j REJECT</i>
+# <i>iptables -A INPUT -p UDP --dport bootps ! -i ${LAN} -j REJECT</i>
+# <i>iptables -A INPUT -p UDP --dport domain ! -i ${LAN} -j REJECT</i>
<comment>(Optional) Allow access to our ssh server from the WAN</comment>
# <i>iptables -A INPUT -p TCP --dport ssh -i ${WAN} -j ACCEPT</i>
<comment>Drop TCP / UDP packets to privileged ports</comment>
-# <i>iptables -A INPUT -p TCP -i ! ${LAN} -d 0/0 --dport 0:1023 -j DROP</i>
-# <i>iptables -A INPUT -p UDP -i ! ${LAN} -d 0/0 --dport 0:1023 -j DROP</i>
+# <i>iptables -A INPUT -p TCP ! -i ${LAN} -d 0/0 --dport 0:1023 -j DROP</i>
+# <i>iptables -A INPUT -p UDP ! -i ${LAN} -d 0/0 --dport 0:1023 -j DROP</i>
<comment>Finally we add the rules for NAT</comment>
# <i>iptables -I FORWARD -i ${LAN} -d 192.168.0.0/255.255.0.0 -j DROP</i>
@@ -814,7 +814,7 @@
# <i>emerge netqmail</i>
<comment>make sure the output of `hostname` is correct</comment>
# <i>emerge --config netqmail</i>
-# <i>iptables -I INPUT -p tcp --dport smtp -i ! ${LAN} -j REJECT</i>
+# <i>iptables -I INPUT -p tcp --dport smtp ! -i ${LAN} -j REJECT</i>
# <i>ln -s /var/qmail/supervise/qmail-send /service/qmail-send</i>
# <i>ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd</i>
# <i>cd /etc/tcprules.d</i>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en: home-router-howto.xml
@ 2013-04-03 18:32 Mike Frysinger (vapier)
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger (vapier) @ 2013-04-03 18:32 UTC (permalink / raw
To: gentoo-doc-cvs
vapier 13/04/03 18:32:25
Modified: home-router-howto.xml
Log:
update to preferred openrc style for /etc/conf.d/net settings #461850 by Tina
Revision Changes Path
1.66 xml/htdocs/doc/en/home-router-howto.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/home-router-howto.xml?rev=1.66&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/home-router-howto.xml?rev=1.66&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/home-router-howto.xml?r1=1.65&r2=1.66
Index: home-router-howto.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- home-router-howto.xml 30 Oct 2011 11:56:08 -0000 1.65
+++ home-router-howto.xml 3 Apr 2013 18:32:25 -0000 1.66
@@ -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.65 2011/10/30 11:56:08 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.66 2013/04/03 18:32:25 vapier Exp $ -->
<guide lang="en">
<title>Home Router Guide</title>
@@ -17,8 +17,8 @@
<!-- The content of this document is released into the public domain -->
<license/>
-<version>2</version>
-<date>2011-10-30</date>
+<version>3</version>
+<date>2013-04-03</date>
<chapter>
<title>Introduction</title>
@@ -200,24 +200,19 @@
editor and set it up.
</p>
-<note>
-In order for the following net settings to work, you must have
-baselayout-1.12.9 or later installed on your system.
-</note>
-
<pre caption="Setting up eth1">
<comment>(Replace 'vla9h924' with your username and 'boogie' with your password)</comment>
# <i>nano /etc/conf.d/net</i>
-<comment>Tell baselayout to use adsl over eth1 for ppp0:</comment>
-config_ppp0=( "ppp" )
+<comment>Tell openrc to use adsl over eth1 for ppp0:</comment>
+config_ppp0="ppp"
link_ppp0="eth1"
-plugins_ppp0=( "pppoe" )
-pppd_ppp0=(
- "defaultroute"
- "usepeerdns"
+plugins_ppp0="pppoe"
+pppd_ppp0="
+ defaultroute
+ usepeerdns
<comment>There may be other settings you want, see /usr/share/doc/openrc-*/net.example.bz2</comment>
-)
+"
username_ppp0="vla9h924"
password_ppp0="boogie"
@@ -261,13 +256,13 @@
# <i>emerge dhcpcd</i>
# <i>nano /etc/conf.d/net</i>
<comment>You'll need an entry like so:</comment>
-config_eth1=( "dhcp" )
+config_eth1="dhcp"
<comment>Static IP Users:</comment>
# <i>nano /etc/conf.d/net</i>
<comment>You'll need entries like so:</comment>
-config_eth1=( "66.92.78.102 broadcast 66.92.78.255 netmask 255.255.255.0" )
-routes_eth1=( "default gw 66.92.78.1" )
+config_eth1="66.92.78.102/24 brd 66.92.78.255"
+routes_eth1="default via 66.92.78.1"
# <i>nano /etc/resolv.conf</i>
<comment>Add one line per DNS server:</comment>
nameserver 123.123.123.123
@@ -298,7 +293,7 @@
<pre caption="Setting up eth0">
# <i>nano /etc/conf.d/net</i>
<comment>Add a line like the following:</comment>
-config_eth0=( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" )
+config_eth0="192.168.0.1/24 brd 192.168.0.255"
# <i>rc-update add net.eth0 default</i>
# <i>/etc/init.d/net.eth0 start</i>
</pre>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-03 18:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03 18:32 [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en: home-router-howto.xml Mike Frysinger (vapier)
-- strict thread matches above, loose matches on Subject: below --
2009-09-18 8:36 Joshua Saddler (nightmorph)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox