/[gentoo]/xml/htdocs/doc/en/home-router-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/home-router-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
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.8 2004/08/06 14:46:25 vapier Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.9 2004/08/06 18:18:45 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>
598</body> 598</body>
599</section> 599</section>
600--> 600-->
601 601
602<section> 602<section>
603<title>Time Server</title>
604<body>
605<p>
606Keeping your system time correct is essential in maintaing a healthy
607system. One of the most common ways of accomplishing this is with
608the Network Time Protocol [NTP] and the ntp package (which provides
609implementations for both server and client).
610</p>
611
612<p>
613Many people run ntp clients on their computers. Obviously, the more
614clients in the world, the larger the load the ntp servers need to
615shoulder. In environments like home networks though, we can help
616keep the load down on public servers while still providing the proper
617time to all our computers. As an added bonus, our private updates
618will be a lot faster for the clients too! All we have to do is run
619a ntp server on our router that synchronizes itself with the public
620internet servers while providing the time to the rest of the computers
621in the network. To get started, simply <c>emerge ntp</c> on the
622router.
623</p>
624
625<pre caption="Setting up the NTP server">
626# <i>nano /etc/conf.d/ntp-client</i>
627<comment>Customize if you wish but the defaults should be fine</comment>
628# <i>rc-update add ntp-client default</i>
629
630# <i>nano /etc/ntp.conf</i>
631<comment>Add the follwing lines:
632restrict default ignore
633restrict 192.168.0.0 mask 255.255.255.0 notrust nomodify notrap
634These will allow only ntp clients with an IP address in the 192.168.0.xxx range to use your ntp server</comment>
635# <i>nano /etc/conf.d/ntpd</i>
636<comment>Customize if you wish but the defaults should be fine</comment>
637
638# <i>/etc/init.d/ntp-client start</i>
639# <i>/etc/init.d/ntpd start</i>
640</pre>
641
642<p>
643Now, on your clients, have them <c>emerge ntp</c> also. However,
644we will just run the ntp client so setup is a lot simpler.
645</p>
646
647<pre caption="Setting up a NTP client">
648# <i>nano /etc/conf.d/ntp-client</i>
649<comment>Change the 'pool.ntp.org' server in the NTPCLIENT_OPTS variable to '192.168.0.1'</comment>
650# <i>rc-update add ntp-client default</i>
651# <i>/etc/init.d/ntp-client start</i>
652</pre>
653</body>
654</section>
655
656<section>
603<title>Mail Server</title> 657<title>Mail Server</title>
604<body> 658<body>
605<p> 659<p>
606Sometimes it's nice to run your own Simple Mail Transfer Protocol (SMTP) 660Sometimes it's nice to run your own Simple Mail Transfer Protocol (SMTP)
607server on the router. You may have your own reason for wanting to do so, 661server on the router. You may have your own reason for wanting to do so,

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20