OSDN Git Service

Ver.1.5.5: Fixed error in LDAP on AMD. Modified install.html.
authorwatanaby <>
Fri, 2 Apr 2010 08:18:28 +0000 (08:18 +0000)
committerwatanaby <>
Fri, 2 Apr 2010 08:18:28 +0000 (08:18 +0000)
opengate/doc/Changes.html
opengate/doc/en/install.html
opengate/doc/ja/install.html
opengate/opengatesrv/auth-ldap.c
opengate/opengatesrv/test-comm-auth.c

index 4af0092..650ee81 100644 (file)
@@ -624,7 +624,7 @@ Opengate History</H3>
        </DD><DT>
        Ver.1.4.38 at 2009.8.28
        </DT><DD>
-       Modified english document.(No modification to source) 
+       Modified english document.(No modification to source) [Contiributed by M. Hawk] 
        </DD><DT>
        Ver.1.5.0 at 2009.9.11
        </DT><DD>
@@ -649,6 +649,11 @@ Opengate History</H3>
        Ver.1.5.4 at 2009.10.20
        </DT><DD>
         Fixed error in perl script parameter.
+       </DD><DT>
+       Ver.1.5.5 at 2010.4.1
+       </DT><DD>
+        Fixed error in ldap on AMD machine [contributed by K.Iwao]. 
+       Modified install.html.
        </DD>
        </DL>
 <P>
index 0156e4d..b414959 100644 (file)
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD>
-       <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
-       <TITLE>Opengate Install</TITLE>
-
-</HEAD>
-<BODY LANG="en-US" BGCOLOR="#fafff0" DIR="ltr">
-<H2><A href="#top" name=top><FONT SIZE=4>Opengate Installation
-Procedure</FONT></A></H2>
-
-<!-- Start:content table -->
-<UL>
-       <LI><A href="#outline0">Outline</A>
-               
-       <UL>
-               <LI><A href="#outline1">System Configuration</A>  </LI>
-               <LI><A href="#outline2">Installation Procedure</A>  </LI>
-               <LI><A href="#outline3">Support Page</A></LI>
-       </UL>
-       <LI><A href="#freebsd0">FreeBSD Installation</A>  </LI>
-       <UL>
-               <LI><A href="#freebsd1">Basic Installation</A>  </LI>
-               <LI><A href="#freebsd2">Adding NAT and Firewall</A>  </LI>
-               <LI><A href="#freebsd3">Setting up IPv6</A></LI>
-       </UL>
-       <LI><A href="#bind0">BIND9 Installation (Optional)</A>  </LI>
-       <UL>
-               <LI><A href="#bind1">Ports Installation</A> </LI>
-               <LI><A href="#bind2">Making RNDC Key</A> </LI>
-               <LI><A href="#bind3">Setting up named.conf</A>  </LI>
-               <LI><A href="#bind4">Creating a Zone file</A>  </LI>
-               <LI><A href="#bind5">Checking Behavior</A></LI>
-       </UL>
-       <LI><A href="#dhcp0">isc-dhcp3 Installation (Optional)</A> 
-       <UL>
-               <LI><A href="#dhcp1">Ports Installation</A> </LI>
-               <LI><A href="#dhcp2">Setting up DHCP</A></LI>
-       </UL>
-       <LI><A href="#apache0">Apache2 Installation</A> </LI>
-       <UL>
-               <LI><A href="#apache1">Ports Installation</A> </LI>
-               <LI><A href="#apache2">Making Certificates</A>  </LI>
-               <LI><A href="#apache3">Setting up VirtualHost</A>  </LI>
-               <LI><A href="#apache4">Other Settings and Checking the Installation</A></LI>
-       </UL>
-       <li class="list_alpha"><A href="#sqlite0">SQLite3 Installation</A>
-       <ul>
-               <li class="list_num"><A href="#sqlite1">Installation</A></li>
-               <li class="list_num"><A href="#sqlite2">Checking</A></li>
-       </ul></li>
-       <LI><A href="#opengate0">Opengate Installation</A> </LI>
-       <UL>
-               <LI><A href="#opengate1">Opengate Package</A>  </LI>
-               <LI><A href="#opengate2">Installation</A> </LI>
-               <LI><A href="#opengate3">Setting up Config File</A>  </LI>
-               <LI><A href="#opengate4">Setting up IPFW</A>  </LI>
-               <LI><A href="#opengate5">Setting up Syslog</A>  </LI>
-               <LI><A href="#opengate6">Checking Behavior</A>  </LI>
-               <LI><A href="#opengate7">Modifying Pages</A>  </LI>
-               <LI><A href="#opengate8">Setting up SQLite3</A>  </LI>
-                       </UL>
-       <LI><A href="#mrtg0">MRTG Install(Optional)</A>  </LI>
-       <UL>
-               <LI><A href="#mrtg1">Ports Installation</A> </LI>
-               <LI><A href="#mrtg2">Setting up MRTG</A> </LI>
-               <LI><A href="#mrtg3">Confirming MRTG Startup Operation</A> </LI>
-               <LI><A href="#mrtg4">Registering to Crontab</A> </LI>
-       </UL>
-       <LI><A href="#rulechk">rulechk Installation (Optional)</A> </LI>
-</UL>
-
-<BR><BR>
-<P></P><!-- End:content table --><!-- Start:Outline -->
-
-
-<H3><A href="#outline0" name=outline0>A&nbsp;Outline</A></H3>
-<UL>
-       <LI><A href="#outline1">System Configuration</A>  </LI>
-
-       <LI><A href="#outline2">Installation Procedure</A> </LI>
-</UL>
-
-<H4><!-- ************1************* -->
-<A href="#outline1" name=outline1>A.1&nbsp;System
-Configuration</A></H4>
-<UL>
-       <LI>Gateway Machine </LI>
-       <UL>
-               <LI>FreeBSD Ver 6.1 or later </LI>
-               <LI>Having two or more NICs </LI>
-       </UL></LI>
-</UL>
-<P>In this document, we use the system configuration as follows. The
-network connecting terminals is called "lower-side network" and
-the network having servers is called "upper-side network".</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>upper-side network:192.168.0.0/24, 2001:1:2:3/64
-Gateway to upper-side network:fxp1, 192.168.0.124, 2001:1:2:3::4
-Gateway to lower-side network:fxp0, 192.168.1.1, 2001:5:6:7::1
-lower-side network:192.168.1.0/24, 2001:5:6:7/64</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Opengate recognizes both IPv4 and IPv6 addresses, and controls
-both firewalls. It can be used for IPv4 control only if the FreeBSD
-environment is not set up for IPv6.</P>
-
-
-<H4><!-- ***********2************** -->
-<A href="#outline2" name=outline2>A.2&nbsp;Installation
-Procedure</A></H4>
-<P>The following steps are necessary to complete the installation of
-Opengate. <BR>Items marked with '*' are mandatory.</P>
-<UL>
-       <LI>FreeBSD Installation&nbsp;* </LI>
-
-       <LI>Adding the Firewall&nbsp;* </LI>
-
-       <LI>BIND9 Installation and Setup </LI>
-
-       <LI>DHCP Installation and Setup </LI>
-
-       <LI>Apache2 Installation and Setup&nbsp;*</LI>
-
-       <LI>Opengate Installation and Setup&nbsp;*</LI>
-</UL>
-
-
-<H4><!-- ***********3************** -->
-<A href="#outline3" name=outline3>A.2&nbsp;Support Page</A></H4>
-<P STYLE="MARGIN-BOTTOM: 0in">The Opengate support page can be
-consulted at: 
-</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>  http://www.cc.saga-u.ac.jp/opengate/index-e.html</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right STYLE="MARGIN-BOTTOM: 0in"><A href="#outline0">back</A>&nbsp;<A href="#top">top</A></P>
-<HR>
-
-
-<!-- Start:FreeBSD Install-->
-<H3><A href="#freebsd0" name=freebsd0>B&nbsp;FreeBSD Installation</A></H3>
-<UL>
-       <LI><A href="#freebsd1">Basic Installation</A> </LI>
-       <LI><A href="#freebsd2">Adding NAT and Firewall</A> </LI>
-       <LI><A href="#freebsd3">Setting up IPv6</A> </LI>
-</UL>
-
-
-<H4><!-- ************1************* -->
-<A href="#freebsd1" name=freebsd1>B.1&nbsp;Basic Installation</A></H4>
-
-<P>Use FreeBSD4.x or later. FreeBSD6.1 or later is preferred. <BR>Choose
-distribution "Developer (Full sources, binaries and doc)" or
-"all" because we have to compile a custom kernel.</P>
-<P>Add the following line to "/etc/rc.conf", to enable the
-gateway function:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <P><CODE>gateway_enable="YES"</CODE></P>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#freebsd0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 2 ************** --><A href="#freebsd2" name=freebsd2>B.2&nbsp;Adding
-NAT and Firewall</A></H4>
-<P>Preparing the kernel to include IPFW and IP6FW functionality.</P>
-<P>Copy the kernel configuration file:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># cd /usr/src/sys/i386/conf
-# cp GENERIC MYKERNEL</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Add the following lines to the kernel configuration file:</P>
-
-
-<TABLE CELLPADDING=2 CELLSPACING=2>
-<TR><TD>
-<PRE>options IPDIVERT
-
-options IPFIREWALL
-options IPFIREWALL_FORWARD
-options IPFIREWALL_VERBOSE
-options IPFIREWALL_VERBOSE_LIMIT=100
-
-options IPSEC
-device crypto</PRE>
-</TD></TR>
-</TABLE>
-
-<P>compile and install the new kernel (incl. added support for IPFW
-and IP6FW).</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-<TR><TD>
-<PRE>#cd /usr/src
-#make buildkernel KERNCONF=MYKERNEL
-#make installkernel KERNCONF=MYKERNEL
-</PRE>
-</TD></TR>
-</TABLE>
-<P>It might be failed in old FreeBSD.&nbsp;&nbsp;In the case, execute the following.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-<TR><TD>
-<PRE># config MYKERNEL
-# cd ../compile/MYKERNEL
-# make depend
-# make
-# make install</PRE>
-</TD></TR>
-</TABLE>
-<P>"make clean" might be requested before "make
-depend". 
-</P>
-<P>Add the following lines to "/etc/rc.conf":</P>
-<P>a. FreeBSD6.0 or earlier</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>firewall_enable="YES"
-firewall_script="/etc/rc.firewall"
-firewall_type="open"
-
-ipv6_firewall_enable="YES"
-ipv6_firewall_script="/etc/rc.firewall6"
-ipv6_firewall_type="open"
-
-natd_enable="YES"
-natd_interface="fxp1"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>b. FreeBSD6.1 or later</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>firewall_enable="YES"
-firewall_script="/etc/rc.firewall"
-firewall_type="open"
-
-natd_enable="YES"
-natd_interface="fxp1"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>When enabling IPFW (and IP6FW), make sure
-to also set the firewall_type to 'OPEN', to prevent  unpredictable
-system behavior during installation. <BR>To enable NAT, set
-natd_enable to 'YES' and define the natd interface (Upper-side
-interface).</P>
-<P>Connect a client pc to the lower-side
-network and check the IPv4 behavior.<BR>Since DHCP is not yet set up,
-the client's network settings must be configured manually.</P>
-<P ALIGN=right><A href="#freebsd0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 3 ************** -->
-<A href="#freebsd3" name=freebsd3>B.3&nbsp;Setting up IPv6</A></H4>
-<P>If you need IPv4 only, this section can
-be skipped. <BR>Though explanation is omitted, many parameters, like
-the ones used in the following sample, can be set in /etc/rc.conf.
-<BR>It is advised to read up on IPv6 and carefully set up its
-parameters. 
-</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>##ENABLE IPv6
-ipv6_enable="YES"
-ipv6_network_interfaces="gif0 fxp0"
-
-##TUNNELLING INTERFACE
-gif_interfaces="gif0"
-gifconfig_gif0="192.168.0.124 192.168.0.126"
-
-##IPv6 ADDRESS 
-ipv6_prefix_fxp0="2001:5:6:7"
-ipv6_ifconfig_fxp0="2001:5:6:7::1 prefixlen 64"
-
-##ADVERTISE
-rtadvd_enable="YES"
-rtadvd_interfaces="fxp0"
-
-##DEFAULT GATEWAY
-ipv6_default_interface="gif0"
-ipv6_defaultrouter="fe80::a:b:c:d%gif0"
-
-##ROUTING(RIPv6)
-ipv6_gateway_enable="YES"
-ipv6_router_enable="YES"
-ipv6_router="/usr/sbin/route6d"
-ipv6_router_flags="-O 2001:5:6:7::/64,gif0"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Connect a client pc to the lower-side
-network and check the behavior of IPv6.<BR>On a Windows pc, the
-command "ipv6 install" might be needed to activate IPv6.</P>
-<P ALIGN=right STYLE="MARGIN-BOTTOM: 0in"><A href="#ipfw0">back</A>&nbsp;<A href="#top">top</A></P>
-<HR>
-
-
-<H3><!-- Start:BIND9 Install --><A href="#bind0" name=bind0>C&nbsp;BIND9
-Install(Optional)</A></H3>
-<UL>
-       <LI><A href="#bind1">Ports Install</A></LI>
-       <LI><A href="#bind2">Making RNDC Key</A></LI>
-       <LI><A href="#bind3">Setting up named.conf</A></LI>
-       <LI><A href="#bind4">Creating up a Zone file</A> </LI>
-       <LI><A href="#bind5">Checking Behavior</A> </LI>
-</UL>
-
-
-<H4><!-- ********** 1 *********** -->
-<A href="#bind1" name=bind1>C.1&nbsp;Ports Install</A></H4>
-
-<P>    You can ignore DNS
-settings, if you control with IP address base
-or use existing DNS servers.</P>
-<P>    Installing BIND9 from
-ports:<BR>     
-Note: The "sysinstall" command can also be used.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># cd /usr/ports/dns/bind9/
-# make clean
-# make install clean ; rehash</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>During installation  the directory "/etc/namedb
-(/var/named/etc/namedb)" is created.</P>
-<P ALIGN=right><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ********** 2 ********** -->
-<A href="#bind2" name=bind2>C.2&nbsp;Making RNDC key</A></H4>
-<P>Use the "rndc" command to further secure BIND9.</P>
-<P>Create the rndc key as follows:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># cd /etc/namebd/
-# rndc-confgen -b 512 &gt; rndc.conf</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>This will generate the "rndc.conf" file.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># Start of rndc.conf
-key "rndc-key" {
-        algorithm hmac-md5;
-        secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";
-};
-
-options {
-        default-key "rndc-key";
-        default-server 127.0.0.1;
-        default-port 953;
-};
-# End of rndc.conf
-
-# Use with the following in named.conf, adjusting the allow list as needed:
-# key "rndc-key" {
-#       algorithm hmac-md5;
-#       secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";
-# };
-# 
-# controls {
-#       inet 127.0.0.1 port 953
-#               allow { 127.0.0.1; } keys { "rndc-key"; };
-# };
-# End of named.conf</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ********* 3 ********* -->
-<A href="#bind3" name=bind3>C.3&nbsp;Setting up named.conf</A></H4>
-<P>After installation,  look for the
-"/etc/namedb/named.conf" file and copy the last half of the
-"rndc.conf" file to it, making sure to remove comments, and
-add IPv6 configuration where/if required.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># Use with the following in named.conf, adjusting the allow list as needed:
-key "rndc-key" {
-        algorithm hmac-md5;
-        secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";
-};
-
-controls {
-        inet ::1 port 953 allow { ::1; } keys { "rndc-key"; };
-        inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };
-};
-# End of named.conf</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>For security reasons, it is better to write the "key"
-directive in the other file.</P>
-<P>Edit the "options" directive in "named.conf":</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>options {
-        directory "/etc/namedb";
-        pid-file "/var/run/named/pid";
-        auth-nxdomain yes;
-        listen-on-v6 { any; };
-};</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Create the corresponding "pid" directory.</P>
-<P ALIGN=right><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ******** 4 ********* -->
-<A href="#bind4" name=bind4>C.4&nbsp;Creating a  Zone file</A></H4>
-<P>Edit the "view" and "zone" directives in "named.conf".</P>
-<P>The "view" directive is implemented in BIND9. Replying
-to the inquiries from matched-clients, BIND9 sends the information as
-described in the corresponding "view"</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>view "og" {
-        match-clients
-        {
-        192.168.1.0/24;
-        };
-
-        recursion yes;
-
-        zone "." {
-                type hint;
-                file "named.root";
-        };
-
-        zone "og.saga-u.ac.jp" {
-                type master;
-                file "og.saga-u.ac.jp";
-        };
-
-        zone "0.0.127.IN-ADDR.ARPA" {
-                type master;
-                file "master/localhost.rev";
-        };
-
-        // RFC 3152
-        zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.\
-              0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {
-                type master;
-                file "master/localhost-v6.rev";
-        };
-
-        // RFC 1886 -- deprecated
-        zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.\
-              0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
-                type master;
-                file "master/localhost-v6.rev";
-        };
-};</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P><BR>Make a "zone" file for the domain "og.saga-u.ac.jp".
-<BR>The domain name and IPv4/6 addresses should be modified properly.
-If you don't need IPv6, remove the line containing "AAAA ....".</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>$TTL    3600
-$ORIGIN og.saga-u.ac.jp.
-
-@       IN      SOA     ns.og.saga-u.ac.jp. postmaster (
-                        2005051702 ;
-                        3600
-                        1200
-                        2419200
-                        86400 )
-                IN      NS      ns.og.saga-u.ac.jp.
-                IN      A       192.168.1.1
-                IN      MX      10 opengate.og.saga-u.ac.jp.
-
-ns              IN      A       192.168.1.1
-
-opengate        IN      A       192.168.1.1
-                        AAAA    2001:5:6:7::1</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ********* 5 ********* -->
-<A href="#bind5" name=bind5>C.5&nbsp;Checking Behavior</A></H4>
-<P>Confirm starting of "named" after completings its
-configuration.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># /usr/local/sbin/named -u bind -c /etc/namedb/named.conf</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>If "named" starts without problems, add the following
-lines to "/etc/rc.conf" to allow it to automatically start
-on boot up.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>named_enable="YES"
-named_program="/usr/local/sbin/named"
-named_flags="-u bind -c /etc/namedb/named.conf"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Because the management of a DNS server
-can be complicated,  it is strongly advised to carefully read the
-BIND9 manual, and/or consult other documentation.</P>
-<P ALIGN=right STYLE="MARGIN-BOTTOM: 0in"><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<HR>
-<H3><!-- Start:isc-dhcp3 Install -->
-<A href="#dhcp0" name=dhcp0>D&nbsp;isc-dhcp3 Installation (Optional)</A></H3>
-<UL>
-       <LI><A href="#dhcp1">Ports Installation</A> 
-       <LI><A href="#dhcp2">Setting up DHCP</A> </LI>
-</UL>
-
-
-<H4><!-- *********** 1 ************* -->
-<A href="#dhcp1" name=dhcp1>D.1&nbsp;Ports Install</A></H4>
-<P>If many client PCs are going to be
-connected, using the DHCP service might be a desirable solution for
-assigning IP addresses to these clients.</P>
-<P>Installing isc-dhcp3 from ports:<BR>Note:
-the "sysinstall" command can also be used.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># cd /usr/ports/net/isc-dhcp3-server
-# make clean
-# make install clean ; rehash</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#dhcp0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 2 ************** -->
-<A href="#dhcp2" name=dhcp2>D.2&nbsp;Setting up DHCP</A></H4>
-<P>The"/usr/local/etc/dhcpd.conf.sample"
- configuration file is created during installation. <BR>Copy
-"dhcpd.conf.sample" to "dhcpd.conf" and edit the
-file. <BR><BR>The following is an example setup: <BR>The lease time
-must be greater than the maximum usage duration (Duration/Max in
-opengatesrv.conf).<BR>The domain name and IP addresses should be
-modified. 
-</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>option domain-name "og.saga-u.ac.jp";
-option domain-name-servers 192.168.1.1;
-option subnet-mask 255.255.255.0;
-option broadcast-address 192.168.1.255;
-option routers 192.168.1.1;
-
-default-lease-time 86400;
-max-lease-time 604800;
-ddns-update-style none;
-log-facility local7;
-
-subnet 192.168.55.0 netmask 255.255.255.0 {
-  range 192.168.1.10 192.168.1.250;
-}</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Add the following lines to "/etc/rc.conf" to allow it to
-automatically start on boot up.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>dhcpd_enable="YES"
-dhcpd_ifaces="fxp0"
-dhcpd_conf="/usr/local/etc/dhcpd.conf"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>In this example, the value of
-"dhcpd_ifaces" is the interface providing the DHCP service
-<BR>(to the lower-side network).</P>
-<P ALIGN=right STYLE="MARGIN-BOTTOM: 0in"><A href="#dhcp0">back</A>&nbsp;<A href="#top">top</A></P>
-<HR>
-
-
-<H3><!-- Start:Apache2 Install--><A href="#apache0" name=apache0>E&nbsp;Apache2
-Installation</A></H3>
-<UL>
-       <LI><A href="#apache1">Ports Installation</A> </LI>
-       <LI><A href="#apache2">Making Certificates</A> </LI>
-       <LI><A href="#apache3">Setting up SSL</A></LI>
-       <LI><A href="#apache4">Other Settings and Checking the installation</A> </LI>
-</UL>
-
-
-<H4><!-- ************ 1 ************** --><A href="#apache1" name=apache1>E.1&nbsp;Ports
-Install</A></H4>
-<P>When using IPv6, Opengate needs Apache2
-to support IPv6. <BR>By default, Apache2 supports SSL which is
-preferred for secure authentication.</P>
-<P>Installing Apache2 from ports:<BR>Note:
-The "sysinstall" command can also be used.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># cd /usr/ports/www/apache22
-# make clean
-# make install clean ; rehash</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#apache0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 2 ************** --><A href="#apache2" name=apache2>E.2&nbsp;Making
-Certificates</A></H4>
-<P>It is better to obtain a formal key from
-some CA. But we will show you how to create a self-signed private key
-and certificate. 
-</P>
-<P>Creating a private key:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># cd /usr/local/etc/apache22
-# mkdir ssl.key ssl.crt
-# chmod 700 ssl.key ssl.crt
-
-# /usr/bin/openssl genrsa -out /usr/local/etc/apache22/server.key 1024</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P><BR>Making a certificate from the created key:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># /usr/bin/openssl req -new -x509 -days 365 \
-    -key /usr/local/etc/apache22/server.key \
-    -out /usr/local/etc/apache22/server.crt
-
-You are about to be asked to enter information that will be incorporated
-into your certificate request.
-What you are about to enter is what is called a Distinguished Name or a DN.
-There are quite a few fields but you can leave some blank
-For some fields there will be a default value,
-If you enter '.', the field will be left blank.
------
-Country Name (2 letter code) [AU]:JP
-State or Province Name (full name) [Some-State]:Saga
-Locality Name (eg, city) []:Saga-city
-Organization Name (eg, company) [Internet Widgits Pty Ltd]:Saga-university
-Organizational Unit Name (eg, subsection) []:Opengate Management
-Common Name (eg, YOUR name) []:opengate.og.saga-u.ac.jp
-Email Address []:administrator@opengate.og.saga-u.ac.jp
-
-Please enter the following 'extra' attributes
-to be sent with your certificate request
-A challenge password []:
-An optional company name []:</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#apache0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 3 ************** --><A href="#apache3" name=apache3>E.3&nbsp;
-Setting up SSL</A></H4>
-<P>Edit "/usr/local/etc/apache22/extra/httpd-ssl.conf" as
-shown in the following example:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <P>ssl.conf 
-                       </P>
-               </TD>
-       </TR>
-       <TR>
-               <TD>
-                       <PRE>&lt;VirtualHost _default_:443&gt;
-    DocumentRoot "/usr/local/www/apache22/data"
-    ServerName opengate.og.saga-u.ac.jp:443
-    ServerAdmin administrator@opengate.og.saga-u.ac.jp
-    ErrorLog "|/usr/bin/logger -p local6.info"
-    CustomLog "|/usr/bin/logger -p local5.info" combined
-
-    SSLEngine on
-    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
-    SSLCertificateFile /usr/local/etc/apache22/server.crt
-    SSLCertificateKeyFile /usr/local/etc/apache22/server.key
-&lt;/VirtualHost&gt;</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Since Apache2 has many settings,
-familiarize yourself with the Apache2 configuration options for
-adequate control.</P>
-<P ALIGN=right><A href="#apache0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 4 ************** --><A href="#apache4" name=apache4>E.4&nbsp;Other
-Settings and Checking the Installation</A></H4>
-<P>Edit "/usr/local/etc/apache22/httpd.conf" as follows:</P>
-<P>Opengate should send back the
-authentication page in response to any kind of HTTP request. <BR>To
-do so, add the following line to httpd.conf: <BR> (the top page will
-be sent back on an HTTP_ERROR 404 [file not found] error).</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>ErrorDocument 404 /</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P><BR>Add "ExecCGI" to allow executing CGI programs in the
-cgi-bin directory.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>&lt;Directory "/usr/local/www/cgi-bin"&gt;
-    ...
-    Options ExecCGI
-    ...
-&lt;/Directory&gt;</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Remove the comment mark ("#") to
-enable the following setting: 
-</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>AddHandler cgi-script .cgi
-AddHandler type-map .var</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Add "index.html.var" to
-DirectoryIndex: 
-</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>DirectoryIndex index.html.var index.html</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Include ssl conf file:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>Include etc/apache22/extra/httpd-ssl.conf</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Set ServerName: 
-</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>ServerName opengate.og.saga-u.ac.jp</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Start Apache2 with "apachectl start"
-and check for errors. <BR>If no errors are displayed, add the
-following lines to "/etc/rc.conf" to allow Apache to start
-on boot up:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>apache22_enable="YES"
-apache22ssl_enable="YES"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>If the system shows "Failed to
-enable the 'httpready' Accept Filter", add the following to
-/boot/loader.conf :</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>accf_http_load="YES"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Should the certificate require a PASSPHRASE, Apache will ask for it during
-boot up.<BR> If you do not enter the passphrase (reboot due to
-power outage, remote reboot, ,...), this will prevent <BR> the server from starting Apache normally, 
-i.e. leaving you with a possible "crippled" server.</P>
-<BLOCKQUOTE>
-<P>
-Easy fix:<BR>
-1. create a simple script containing the following:<BR>
-#!/bin/sh<BR>
-echo "&lt;passphrase goes here&gt;"<BR>
-<BR>2. add the following to    httpd.conf:<BR>
-SSLPassPhraseDialog exec:/path/to/above/script
-</P></BLOCKQUOTE>
-
-<P ALIGN=right STYLE="MARGIN-BOTTOM: 0in"><A href="#apache0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<!-- Start:SQLite3 Installation -->
-<h3><A class=anchor href="#sqlite0" name=sqlite0>F&nbsp;SQLite3 Installation</A></h3>
-<ul>
-       <li class="list_num"><A href="#sqlite1">Inatallation</A></li>
-       <li class="list_num"><A href="#sqlite2">Checking</A></li>
-</ul>
-
-<!-- ************ 1 ************** -->
-<h4><A class=anchor href="#sqlite1" name=sqlite1>F.1&nbsp;Installation</A></h4>
-
-
-<p>Download archive file from SQLite site(www.sqlite.org).  Install it as follows.</p>
-
-<table><tr><td><pre>
-# tar xzvf sqlite-amalgamation-3.xx.xx.tar.gz
-# cd sqlite-3.xx.xx
-# ./configure
-# make
-# make install
-</pre></td></tr></table>
-
-<div align="right"><A href="#sqlite0">back</A>&nbsp;<A href="#top">top</A></div>
-
-<!-- ************ 2 ************** -->
-<h4><A class=anchor href="#sqlite2" name=sqlite2>F.2&nbsp;Checking</A></h4>
-
-<p>
-Check the normal execution.
-
-<table><tr><td><pre>
-# sqlite3
-SQLite version 3.xx.xx
-Enter ".help" for instructions
-Enter SQL statements terminated with a ";"
-sqlite&gt; .quit
-#
-</pre></td></tr></table>
-
-<div align="right"><A href="#sqlite0">back</A>&nbsp;<A href="#top">top</A></div>
-
-<HR>
-<H3><!-- Start:Opengate Install -->
-<A href="#opengate0" name=opengate0>G&nbsp;Opengate Installation</A></H3>
-<UL>
-       <LI><A href="#opengate1">Opengate Package</A> 
-       <LI><A href="#opengate2">Installation</A> </LI>
-       <LI><A href="#opengate3">Setting up Config File</A> </LI>
-       <LI><A href="#opengate4">Setting up IPFW</A> </LI>
-       <LI><A href="#opengate5">Setting up syslog</A> </LI>
-       <LI><A href="#opengate6">Checking Behavior</A> </LI>
-       <LI><A href="#opengate7">Modifying Pages</A> </LI>
-       <LI><A href="#opengate8">Setting up SQLite3</A> </LI>
-</UL>
-
-
-<H4><!-- ************1************* -->
-<A href="#opengate1" name=opengate1>G.1&nbsp;Opengate
-Package</A></H4>
-<P>Unpack the Opengate compressed file: 
-</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># tar xzvf opengatexxxx.tar.gz</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>It contains the following directories:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>doc: Documentation
-conf: Configuration files and firewall control Perl script sample
-javahtml: Client Programs and  HTML files
-opengatesrv: Server CGI programs
-tools: Some related tools
-ezxml: XML parser (Copyright Aaron Voisine)</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************2************* -->
-<A href="#opengate2" name=opengate2>G.2&nbsp;Installation</A></H4>
-<P>Check the settings in "opengatesrv/Makefile" and modify
-if needed:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>HTMLTOP = /usr/local/www/apache22
-DOCDIR = /data
-CGIDIR = /cgi-bin
-OPENGATEDIR = /opengate
-CONFIGPATH = /etc/opengate</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Compile and Install:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># make clean
-# make install</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 3 ************** -->
-<A href="#opengate3" name=opengate3>G.3&nbsp;Setting up Config File</A></H4>
-
-<P>Copy the sample configuration file
-"/etc/opengate/opengatesrv.conf.sample" to
-"/etc/opengate/opengatesrv.conf" and modify. <BR>The
-following settings must be changed:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>        &lt;OpengateServerName&gt;opengate.og.saga-u.ac.jp&lt;/OpengateServerName&gt;
-
-        &lt;AuthServer&gt;
-                &lt;Protocol&gt;pop3s&lt;/Protocol&gt;
-                &lt;Address&gt;192.168.0.2&lt;/Address&gt;
-        &lt;/AuthServer&gt;</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>In &lt;OpengateServerName&gt;, set the
-HOSTNAME(FQDN) or IP address of the opengate gateway server. If you
-want to use IPv6, you need to set the FQDN corresponding to both IPv4
-and IPv6 addresses.</P>
-<P>In &lt;AuthServer&gt;, set the
-information for the authentication server. Opengate supports various
-authentication protocols. See the config file for details. <BR>To
-differentiate between erorrs caused by authentication server or those
-caused by the opengate server, try the following setting first. This
-means that any userid and password combination is accepted.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE> ****Do not use this setting in real service****
-        &lt;AuthServer&gt;
-                &lt;Protocol&gt;accept&lt;/Protocol&gt; 
-        &lt;AuthServer&gt;</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>The config file is XML. "#" marks in
-the file do not represent the start of a comment. <BR>Use
-XML-formatted comments like &lt;!-- Comment String --&gt; to disable
-a description.</P>
-<P>Opengate can pass authentication settings
-in the form of "userid@extid". <BR>See the config file for
-more details. <BR>By using this function, you can use different
-authentication servers for many sections or guests.</P>
-<P>When the primary authentication server
-does not reply, Opengate can resend the request to other
-authentication servers. See the config file for more details.</P>
-<P>Caution: Do not delete the IPv6 related
-settings in the config file! <BR>         The IPv6 access is executed when
-the FQDN for IPv6 is prepared.</P>
-
-<P ALIGN=right><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 4 ************** -->
-<A href="#opengate4" name=opengate4>G.4&nbsp;Setting up IPFW</A></H4>
-<P>Write IPFW rules for Opengate. 
-</P>
-<P>Both IPv4 and IPv6 packets are controlled by IPFW.</P>
-<P>A sample rule set for IPFW can be found in
-"/etc/opengate/rc.firewall.sample"</P>
-<P>Copy the script and modify to fit your needs. <BR>   If you are
-not familiar with Ipv6, set IPv6 addresses as localhost (*net6="0",
-*ip6="::1").</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># cd /etc/opengate
-# cp rc.firewall.sample rc.firewall
-# vi rc.firewall</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Modify the firewall settings in /etc/rc.conf as follows:<BR>  Be
-careful not to lock yourself out of the system after reloading the
-firewall.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>firewall_enable="YES"
-firewall_script="/etc/opengate/rc.firewall"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Familiarise yourself with the "ipfw" command. <BR>  The
-Opengate software sends out ipfw add/delete commands.</P>
-<P ALIGN=right><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 5 ************** -->
-<A href="#opengate5" name=opengate5>G.5&nbsp;Setting
-up syslog</A></H4>
-<P>Edit /etc/syslog.conf to save log entries for Opengate.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>         | Separated by TAB code
-         V
-local1.*   /var/log/opengate.log</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Make the log file as follows: <BR>  Consider using log rotation to
-control the size of this log file.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># touch /var/log/opengate.log</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 6 ************** -->
-<A href="#opengate6" name=opengate6>G.6&nbsp;Checking
-Behavior</A></H4>
-<P>Connect a PC to the lower-side network
-and try to access a site in the upper-side network. <BR>If it does
-not work properly, consult doc/progflow.html and doc/protocol.txt to
-better understand the procedure. Also check the log files for
-Opengate, httpd, system and others. To dump more information from
-Opengate, set the &lt;Debug&gt; switch to "2" in
-opengatesrv.conf.  Also check the functions of related software. The
-error checking document (errcheck.html) and Q&amp;A documents
-(qa.html, recentqa.html on the web) can be used for problem solving.</P>
-<P ALIGN=right><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 7 ************** -->
-<A href="#opengate7" name=opengate7>G.7&nbsp;Modifying
-Pages</A></H4>
-<P>If you want to modify the contents of the
-web pages, edit the html files in the Opengate directories. The
-relative path cannot be used in httpkeep.html. Use the full URL
-description. The descriptions such as %%XXX%% are variables replaced
-by their proper values during CGI runtime. 
-</P>
-<P ALIGN=right STYLE="MARGIN-BOTTOM: 0in"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<!-- ************ 8 ************** -->
-<h4><A class=anchor href="#opengate8" name=opengate8>G.8&nbsp;Setting up SQLite3</A></h4>
-
-<p>
-Opengate uses the SQLite3 database to hold session information. 
-The path of the database file is indicated with &lt;SqliteDb&gt; 
-in opengatesrv.conf.
-It is recommended to change the default value 
-to the proper directory.
-WWW sholud have write permission for the directory.
-</p>
-<table><tr><td><pre>
-Example:
--- opengatesrv.conf --
-&lt;SqliteDb&gt;/home/sqlitedb/opengate.db&lt;/SqliteDb&gt;
-
--- shell commands --
-# mkdir /home/sqlitedb
-# chown www /home/sqlitedb
-</pre></td></tr></table>
-<p> 
-The file and database table are created automatically.
-</p>
-
-As the file size incleases steadily, you should periodically trim or remove the file with cron (or manually). Following is a sample script to delete 3 day old records.</p>
-
-<table>
-<tr><td><pre>
-#!/bin/sh
-echo "delete from session where closeTime &lt; datetime('now','localtime','-3days');" | sqlite3 /tmp/opengate.db
-exit 0
-</pre></td></tr>
-</table>
-
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>
-
-<hr>
-
-
-<H3><!-- Start:Install MRTG -->
-<A href="#mrtg0" name=mrtg0>H&nbsp;MRTG Installion (Optional)</A></H3>
-<UL>
-       <LI><A href="#mrtg1">Ports Installation</A> </LI>
-       <LI><A href="#mrtg2">Setting up MRTG</A> </LI>
-       <LI><A href="#mrtg3">Confirming proper startup</A>  </LI>
-       <LI><A href="#mrtg4">Setting up crontab</A> </LI>
-</UL>
-
-<H4><!-- ************ 1 ************** -->
-<A href="#mrtg1" name=mrtg1>H.1&nbsp;Ports Installation</A></H4>
-
-<P>This section is optional. <BR>   If you want to graphically
-monitor the state of Opengate, MRTG can be used but is not required.</P>
-<P><A HREF="http://people.ee.ethz.ch/%7Eoetiker/webtools/mrtg/" TARGET="_blank">MRTG<SPAN STYLE="TEXT-DECORATION: none">
-</SPAN></A>(Multi Router Traffic Grapher) is a system to monitor
-network traffic. MRTG produces graphic images and HTML files. 
-</P>
-<P>You can install MRTG on the gateway
-server or another server. If you need to monitor multiple Opengate
-systems, it is advised to install MRTG on a separate server.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># cd /usr/ports/net-mgmt/mrtg/
-# make clean
-# make install clean ; rehash</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></P>
-
-
-<H4><!-- ************ 2 ************** -->
-<A href="#mrtg2" name=mrtg2>H.2&nbsp;Setting up MRTG</A></H4>
-<P>MRTG creates
-"/usr/local/etc/mrtg/mrtg.cfg.sample" as the sample
-configuration file during installation. Copy mrtg.cfg.sample to
-opengate.cfg and edit the file:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>##################################################
-#  opengate user counter
-
-WorkDir: /usr/home/user/public_html/mrtg/opengate/
-
-##### Options
-Options[^]: growright,gauge,nopercent,integer
-
-Target[opengate]:`/usr/home/user/bin/input.sh`
-Title[opengate]: Opengate user counter
-
-PageTop[opengate]: &lt;h1&gt;Opengate user counter&lt;/h1&gt;
- &lt;p&gt;Show the number of people using Opengate&lt;/p&gt;
-
-# Max Number
-MaxBytes[opengate]: 200
-
-# Title of Y axis
-YLegend[opengate]: Opengate User
-# unit
-ShortLegend[opengate]: s
-# Title of graph LegendI: first line LegendO: second line
-LegendI[opengate]: IPv6 Users
-LegendO[opengate]: Total Users</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Be sure to actually create the directory
-which you appointed in "WorkDir". MRTG creates its graphic
-images and HTML files in "WorkDir"</P>
-<P>"Target[opengate]" contains the
-path to the program that hands its data to MRTG. <BR>(details
-explained below)</P>
-
-<H5>H.2.1&nbsp;Scenario 1: Running MRTG on the gateway server</H5>
-<P>Create the shell script "/usr/home/user/bin/input.sh"
-with the following contents:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>#!/bin/sh
-
-#######################################
-##
-## show opengate status for MRTG
-##
-##   1 line : IPv6 Users
-##   2 line : Total Users
-##   3 line : uptime
-##   4 line : comment for data
-##
-#######################################
-
-LANG=C
-COLUMNS=256
-
-export LANG
-export COLUMNS
-
-### IPv6 prefix
-prefix="2001:2f8:22:801:"
-###opengateprocessname
-process="opengatesrv.cgi" 
-
-###tmp file  name
-tmp_all="/tmp/og_count_all.tmp"
-tmp_6="/tmp/og_count_6.tmp"
-
-######################################################
-psax | grep $process &gt; $tmp_all
-COUNT = `wc-l $tmp_all | awk '{print $1}'` 
-grep $prefix $tmp_all &gt;  $tmp_6
-COUNT6=`wc -l $tmp_6 | awk '{print $1}'`
-UPTIME=`uptime | awk '{print $3$4}' | sed -e "s/,//g"`
-
-rm $tmp_all
-rm $tmp_6
-
-echo "$COUNT6"
-echo "$COUNT"
-echo "$UPTIME"
-echo "Opengate User Counter"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Run this shell script as standalone and confirm that you can
-acquire the following data:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>5
-48
-10days
-Opengate User Counter</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<H5>H.2.2&nbsp;Scenario 2: Running MRTG on a separate server</H5>
-<P>Create the shell script "/usr/home/user/bin/input.sh" on
-a separate server.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>#!/bin/sh
-
-#######################################
-##
-## input data for MRTG
-##
-##   1 line : IPv6 Users
-##   2 line : Total Users
-##   3 line : uptime
-##   4 line : comment for data
-##
-#######################################
-
-# tmp file name
-file="/tmp/opengate.tmp"
-
-# URL of output.sh at opengate
-url="http://opengate.saga-u.ac.jp/cgi-bin/output.sh"
-
-fetch -o $file $url &amp;&gt; /dev/null
-
-more $file</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P STYLE="TEXT-INDENT: 0in">Create the shell script
-"/usr/local/apache2/cgi-bin/output.sh" on the Opengate
-(gateway) server, and set the URL to $url, as explained above.</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>#!/bin/sh
-
-#######################################
-##
-## show opengate status for MRTG
-##
-##   1 line : IPv6 Users
-##   2 line : Total Users
-##   3 line : uptime
-##   4 line : comment for data
-##
-#######################################
-
-LANG=C
-COLUMNS=256
-
-export LANG
-export COLUMNS
-
-### IPv6 prefix
-prefix="2001:2f8:22:801:"
-###opengateprocessname
-process="opengatesrv.cgi" 
-
-###tmp file name
-tmp_all="/tmp/og_count_all.tmp"
-tmp_6="/tmp/og_count_6.tmp"
-
-######################################################
-psax | grep $process &gt; $tmp_all 
-COUNT = `wc-l $tmp_all | awk '{print $1}'` 
-grep $prefix $tmp_all &gt;  $tmp_6
-COUNT6=`wc -l $tmp_6 | awk '{print $1}'`
-UPTIME=`uptime | awk '{print $3$4}' | sed -e "s/,//g"`
-rm $tmp_all
-rm $tmp_6
-
-echo "Content-type: text/plain; charset=iso-8859-1"
-echo
-
-echo "$COUNT6"
-echo "$COUNT"
-echo "$UPTIME"
-echo "Opengate User Counter"</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P>Run "input.sh" on another server and confirm that you
-can acquire the following data:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>5
-48
-10days
-Opengate User Counter</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></P>
-
-<H4><!-- ************ 3 ************** -->
-<A href="#mrtg3" name=mrtg3>H.3&nbsp;Confirming MRTG Startup Operation:</A></H4>
-
-<P>Use the following command to confirm MRTG is working with your
-config:</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE># /usr/local/bin/mrtg /usr/local/etc/mrtg/opengate.cfg</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P STYLE="TEXT-INDENT: 0in">Various WARNING messages are output the
-first and second time, this is normal behavior <BR>(as explained in
-the MRTG documentation)!<BR>Some files are created in "WorkDir".</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>&gt; ls -l
--rw-r--r--  1 root  wheel    538 12 14 04:40 mrtg-l.png
--rw-r--r--  1 root  wheel    414 12 14 04:40 mrtg-m.png
--rw-r--r--  1 root  wheel   1759 12 14 04:40 mrtg-r.png
--rw-r--r--  1 root  wheel   2941 12 20 15:15 opengate-day.png
--rw-r--r--  1 root  wheel   2146 12 20 14:35 opengate-month.png
--rw-r--r--  1 root  wheel   2867 12 20 14:55 opengate-week.png
--rw-r--r--  1 root  wheel   1897 12 20 05:00 opengate-year.png
--rw-r--r--  1 root  wheel   5961 12 20 15:15 opengate.html
--rw-r--r--  1 root  wheel  48786 12 20 15:15 opengate.log
--rw-r--r--  1 root  wheel  48784 12 20 15:10 opengate.old</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></P>
-
-<H4><!-- ************ 4 ************** -->
-<A href="#mrtg4" name=mrtg4>H.4&nbsp;Registering to Crontab</A></H4>
-
-<P>Add the following line to "/etc/crontab":</P>
-<TABLE CELLPADDING=2 CELLSPACING=2>
-       <TR>
-               <TD>
-                       <PRE>*/5 * * * * root /usr/local/bin/mrtg /usr/local/etc/mrtg/opengate.cfg</PRE>
-               </TD>
-       </TR>
-</TABLE>
-<P ALIGN=right><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></P>
-
-<HR>
-<H3><!-- Start:Install rulechk -->
-<A href="#rulechk" name=rulechk>I&nbsp;rulechk Installation (Optional)</A></H3>
-
-<P>This section is optional. <BR>When the
-Opengate process is not exited normally, superfluous rules might be
-left behind. <BR>Though it is 
-very rare, the tools/rulechk script is made to handle such situations. This 
-script compares the Opengate process list and the firewall rule list, and 
-deletes the obsolete rules.<BR>This script is compatible with Opengate Ver1.3.1 or above. 
-</P>
-<P ALIGN=right STYLE="MARGIN-BOTTOM: 0in"><A href="#rulechk">back</A>&nbsp;<A href="#top">top</A></P>
-</BODY>
-</HTML>
+<html lang="ja"><head>\r
+<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"><title>Opengate Install</title>\r
+\r
+</head>\r
+<body style="direction: ltr; background-color: rgb(250, 255, 240);" lang="en-US">\r
+<h2><a href="#top" name="top"><font size="4">Opengate Installation\r
+Procedure</font></a></h2>\r
+<!-- Start:content table -->\r
+<ul>\r
+<li><a href="#outline0">Outline</a>\r
+<ul>\r
+<li><a href="#outline1">System Configuration</a>\r
+</li>\r
+<li><a href="#outline2">Installation Procedure</a>\r
+</li>\r
+<li><a href="#outline3">Support Page</a></li>\r
+</ul>\r
+</li>\r
+<li><a href="#freebsd0">FreeBSD Installation</a>\r
+</li>\r
+<ul>\r
+<li><a href="#freebsd1">Basic Installation</a>\r
+</li>\r
+<li><a href="#freebsd2">Adding NAT and Firewall</a>\r
+</li>\r
+<li><a href="#freebsd3">Setting up IPv6</a></li>\r
+</ul>\r
+<li><a href="#bind0">BIND9 Installation (Optional)</a>\r
+</li>\r
+<ul>\r
+<li><a href="#bind1">Ports Installation</a>\r
+</li>\r
+<li><a href="#bind2">Making RNDC Key</a> </li>\r
+<li><a href="#bind3">Setting up named.conf</a>\r
+</li>\r
+<li><a href="#bind4">Creating a Zone file</a>\r
+</li>\r
+<li><a href="#bind5">Checking Behavior</a></li>\r
+</ul>\r
+<li><a href="#dhcp0">isc-dhcp3 Installation\r
+(Optional)</a>\r
+<ul>\r
+<li><a href="#dhcp1">Ports Installation</a>\r
+</li>\r
+<li><a href="#dhcp2">Setting up DHCP</a></li>\r
+</ul>\r
+</li>\r
+<li><a href="#apache0">Apache2 Installation</a>\r
+</li>\r
+<ul>\r
+<li><a href="#apache1">Ports Installation</a>\r
+</li>\r
+<li><a href="#apache2">Making Certificates</a>\r
+</li>\r
+<li><a href="#apache3">Setting up VirtualHost</a>\r
+</li>\r
+<li><a href="#apache4">Other Settings and\r
+Checking the Installation</a></li>\r
+</ul>\r
+<li class="list_alpha"><a href="#sqlite0">SQLite3\r
+Installation</a>\r
+<ul>\r
+<li class="list_num"><a href="#sqlite1">Installation</a></li>\r
+<li class="list_num"><a href="#sqlite2">Checking</a></li>\r
+</ul>\r
+</li>\r
+<li><a href="#opengate0">Opengate Installation</a>\r
+</li>\r
+<ul>\r
+<li><a href="#opengate1">Opengate Package</a>\r
+</li>\r
+<li><a href="#opengate2">Installation</a> </li>\r
+<li><a href="#opengate3">Setting up Config File</a>\r
+</li>\r
+<li><a href="#opengate4">Setting up IPFW</a>\r
+</li>\r
+<li><a href="#opengate5">Setting up Syslog</a>\r
+</li>\r
+<li><a href="#opengate6">Checking Behavior</a>\r
+</li>\r
+<li><a href="#opengate7">Modifying Pages</a>\r
+</li>\r
+<li><a href="#opengate8">Setting up SQLite3</a>\r
+</li>\r
+</ul>\r
+<li><a href="#mrtg0">MRTG Install(Optional)</a>\r
+</li>\r
+<ul>\r
+<li><a href="#mrtg1">Ports Installation</a>\r
+</li>\r
+<li><a href="#mrtg2">Setting up MRTG</a> </li>\r
+<li><a href="#mrtg3">Confirming MRTG Startup\r
+Operation</a> </li>\r
+<li><a href="#mrtg4">Registering to Crontab</a>\r
+</li>\r
+</ul>\r
+<li><a href="#rulechk">rulechk Installation\r
+(Optional)</a> </li>\r
+</ul>\r
+<br>\r
+<br>\r
+<p></p>\r
+<!-- End:content table --><!-- Start:Outline -->\r
+<h3><a href="#outline0" name="outline0">A&nbsp;Outline</a></h3>\r
+<ul>\r
+<li><a href="#outline1">System Configuration</a>\r
+</li>\r
+<li><a href="#outline2">Installation Procedure</a>\r
+</li>\r
+</ul>\r
+<h4><!-- ************1************* -->\r
+<a href="#outline1" name="outline1">A.1&nbsp;System\r
+Configuration</a></h4>\r
+<ul>\r
+<li>Gateway Machine </li>\r
+<ul>\r
+<li>FreeBSD Ver 6.1 or later </li>\r
+<li>Having two or more NICs </li>\r
+</ul>\r
+</ul>\r
+<p>In this document, we use the system configuration as follows.\r
+The\r
+network connecting terminals is called "lower-side network" and\r
+the network having servers is called "upper-side network".</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>upper-side network:192.168.0.0/24, 2001:1:2:3/64<br>Gateway to upper-side network:fxp1, 192.168.0.124, 2001:1:2:3::4<br>Gateway to lower-side network:fxp0, 192.168.1.1, 2001:5:6:7::1<br>lower-side network:192.168.1.0/24, 2001:5:6:7/64</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Opengate recognizes both IPv4 and IPv6 addresses, and controls\r
+both firewalls. It can be used for IPv4 control only if the FreeBSD\r
+environment is not set up for IPv6.</p>\r
+<h4><!-- ***********2************** -->\r
+<a href="#outline2" name="outline2">A.2&nbsp;Installation\r
+Procedure</a></h4>\r
+<p>The following steps are necessary to complete the installation\r
+of\r
+Opengate. <br>\r
+Items marked with '*' are mandatory.</p>\r
+<ul>\r
+<li>FreeBSD Installation&nbsp;* </li>\r
+<li>Adding the Firewall&nbsp;* </li>\r
+<li>BIND9 Installation and Setup </li>\r
+<li>DHCP Installation and Setup </li>\r
+<li>Apache2 Installation and Setup&nbsp;*</li>\r
+<li>Opengate Installation and Setup&nbsp;*</li>\r
+</ul>\r
+<h4><!-- ***********3************** -->\r
+<a href="#outline3" name="outline3">A.2&nbsp;Support\r
+Page</a></h4>\r
+<p style="margin-bottom: 0in;">The Opengate support page\r
+can be\r
+consulted at: </p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre> http://www.cc.saga-u.ac.jp/opengate/index-e.html</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p style="margin-bottom: 0in;" align="right"><a href="#outline0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<hr>\r
+<!-- Start:FreeBSD Install-->\r
+<h3><a href="#freebsd0" name="freebsd0">B&nbsp;FreeBSD\r
+Installation</a></h3>\r
+<ul>\r
+<li><a href="#freebsd1">Basic Installation</a>\r
+</li>\r
+<li><a href="#freebsd2">Adding NAT and Firewall</a>\r
+</li>\r
+<li><a href="#freebsd3">Setting up IPv6</a> </li>\r
+</ul>\r
+<h4><!-- ************1************* -->\r
+<a href="#freebsd1" name="freebsd1">B.1&nbsp;Basic\r
+Installation</a></h4>\r
+<p>Use FreeBSD4.x or later. FreeBSD6.1 or later is preferred. <br>\r
+Choose\r
+distribution "Developer (Full sources, binaries and doc)" or\r
+"all" because we have to compile a custom kernel.</p>\r
+<p>Add the following line to "/etc/rc.conf", to enable the\r
+gateway function:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<p><code>gateway_enable="YES"</code></p>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#freebsd0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 2 ************** --><a href="#freebsd2" name="freebsd2">B.2&nbsp;Adding\r
+NAT and Firewall</a></h4>\r
+<p>Preparing the kernel to include IPFW and IP6FW functionality.</p>\r
+<p>Make a new kernel configuration file:MYKERNEL</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/src/sys/i386/conf<br># vi MYKERNEL</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Following is the content of the&nbsp;file: MYKERNEL</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>include GENERIC<br><br>ident MYKERNEL<br><br>options IPDIVERT<br><br>options IPFIREWALL<br>options IPFIREWALL_FORWARD<br>options IPFIREWALL_VERBOSE<br>options IPFIREWALL_VERBOSE_LIMIT=100<br><br>options IPSEC<br>device crypto</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Compile and install the new kernel (incl. added support for\r
+IPFW\r
+and IP6FW).</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#cd /usr/src<br>#make buildkernel KERNCONF=MYKERNEL<br>#make installkernel KERNCONF=MYKERNEL<br></pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>It might be failed in old FreeBSD.&nbsp;&nbsp;In the\r
+case, execute the following.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># config MYKERNEL<br># cd ../compile/MYKERNEL<br># make depend<br># make<br># make install</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>"make clean" might be requested before "make\r
+depend". </p>\r
+<p>Add the following lines to "/etc/rc.conf":</p>\r
+<p>a. FreeBSD6.0 or earlier</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>firewall_enable="YES"<br>firewall_script="/etc/rc.firewall"<br>firewall_type="open"<br><br>ipv6_firewall_enable="YES"<br>ipv6_firewall_script="/etc/rc.firewall6"<br>ipv6_firewall_type="open"<br><br>natd_enable="YES"<br>natd_interface="fxp1"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>b. FreeBSD6.1 or later</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>firewall_enable="YES"<br>firewall_script="/etc/rc.firewall"<br>firewall_type="open"<br><br>natd_enable="YES"<br>natd_interface="fxp1"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>When enabling IPFW (and IP6FW), make sure\r
+to also set the firewall_type to 'OPEN', to prevent unpredictable\r
+system behavior during installation. <br>\r
+To enable NAT, set\r
+natd_enable to 'YES' and define the natd interface (Upper-side\r
+interface).</p>\r
+<p>Connect a client pc to the lower-side\r
+network and check the IPv4 behavior.<br>\r
+Since DHCP is not yet set up,\r
+the client's network settings must be configured manually.</p>\r
+<p align="right"><a href="#freebsd0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 3 ************** -->\r
+<a href="#freebsd3" name="freebsd3">B.3&nbsp;Setting\r
+up IPv6(Optional)</a></h4>\r
+<p>If you need IPv4 only, this section can\r
+be skipped. <br>\r
+Though explanation is omitted, many parameters, like\r
+the ones used in the following sample, can be set in /etc/rc.conf.\r
+<br>\r
+It is advised to read up on IPv6 and carefully set up its\r
+parameters. </p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>##ENABLE IPv6<br>ipv6_enable="YES"<br>ipv6_network_interfaces="gif0 fxp0"<br><br>##TUNNELLING INTERFACE<br>gif_interfaces="gif0"<br>gifconfig_gif0="192.168.0.124 192.168.0.126"<br><br>##IPv6 ADDRESS <br>ipv6_prefix_fxp0="2001:5:6:7"<br>ipv6_ifconfig_fxp0="2001:5:6:7::1 prefixlen 64"<br><br>##ADVERTISE<br>rtadvd_enable="YES"<br>rtadvd_interfaces="fxp0"<br><br>##DEFAULT GATEWAY<br>ipv6_default_interface="gif0"<br>ipv6_defaultrouter="fe80::a:b:c:d%gif0"<br><br>##ROUTING(RIPv6)<br>ipv6_gateway_enable="YES"<br>ipv6_router_enable="YES"<br>ipv6_router="/usr/sbin/route6d"<br>ipv6_router_flags="-O 2001:5:6:7::/64,gif0"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Connect a client pc to the lower-side\r
+network and check the behavior of IPv6.<br>\r
+On a Windows pc, the\r
+command "ipv6 install" might be needed to activate IPv6.</p>\r
+<p style="margin-bottom: 0in;" align="right"><a href="#ipfw0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<hr>\r
+<h3><!-- Start:BIND9 Install --><a href="#bind0" name="bind0">C&nbsp;BIND9\r
+Install(Optional)</a></h3>\r
+<ul>\r
+<li><a href="#bind1">Ports Install</a></li>\r
+<li><a href="#bind2">Making RNDC Key</a></li>\r
+<li><a href="#bind3">Setting up named.conf</a></li>\r
+<li><a href="#bind4">Creating up a Zone file</a>\r
+</li>\r
+<li><a href="#bind5">Checking Behavior</a> </li>\r
+</ul>\r
+<h4><!-- ********** 1 *********** -->\r
+<a href="#bind1" name="bind1">C.1&nbsp;Ports\r
+Install</a></h4>\r
+<p> You can ignore DNS\r
+settings, if you control with IP address base\r
+or use existing DNS servers.</p>\r
+<p> Installing BIND9 from\r
+ports:<br>\r
+Note: The "sysinstall" command can also be used.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/ports/dns/bind9/<br># make clean<br># make install clean ; rehash</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>During installation the directory "/etc/namedb\r
+(/var/named/etc/namedb)" is created.</p>\r
+<p align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ********** 2 ********** -->\r
+<a href="#bind2" name="bind2">C.2&nbsp;Making\r
+RNDC key</a></h4>\r
+<p>Use the "rndc" command to further secure BIND9.</p>\r
+<p>Create the rndc key as follows:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /etc/namebd/<br># rndc-confgen -b 512 &gt; rndc.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>This will generate the "rndc.conf" file.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># Start of rndc.conf<br>key "rndc-key" {<br> algorithm hmac-md5;<br> secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";<br>};<br><br>options {<br> default-key "rndc-key";<br> default-server 127.0.0.1;<br> default-port 953;<br>};<br># End of rndc.conf<br><br># Use with the following in named.conf, adjusting the allow list as needed:<br># key "rndc-key" {<br># algorithm hmac-md5;<br># secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";<br># };<br># <br># controls {<br># inet 127.0.0.1 port 953<br># allow { 127.0.0.1; } keys { "rndc-key"; };<br># };<br># End of named.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ********* 3 ********* -->\r
+<a href="#bind3" name="bind3">C.3&nbsp;Setting\r
+up named.conf</a></h4>\r
+<p>After installation, look for the\r
+"/etc/namedb/named.conf" file and copy the last half of the\r
+"rndc.conf" file to it, making sure to remove comments, and\r
+add IPv6 configuration where/if required.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># Use with the following in named.conf, adjusting the allow list as needed:<br>key "rndc-key" {<br> algorithm hmac-md5;<br> secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";<br>};<br><br>controls {<br> inet ::1 port 953 allow { ::1; } keys { "rndc-key"; };<br> inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };<br>};<br># End of named.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>For security reasons, it is better to write the "key"\r
+directive in the other file.</p>\r
+<p>Edit the "options" directive in "named.conf":</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>options {<br> directory "/etc/namedb";<br> pid-file "/var/run/named/pid";<br> auth-nxdomain yes;<br> listen-on-v6 { any; };<br>};</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Create the corresponding "pid" directory.</p>\r
+<p align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ******** 4 ********* -->\r
+<a href="#bind4" name="bind4">C.4&nbsp;Creating\r
+a Zone file</a></h4>\r
+<p>Edit the "view" and "zone" directives in "named.conf".</p>\r
+<p>The "view" directive is implemented in BIND9. Replying\r
+to the inquiries from matched-clients, BIND9 sends the information as\r
+described in the corresponding "view"</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>view "og" {<br> match-clients<br> {<br> 192.168.1.0/24;<br> };<br><br> recursion yes;<br><br> zone "." {<br> type hint;<br> file "named.root";<br> };<br><br> zone "og.saga-u.ac.jp" {<br> type master;<br> file "og.saga-u.ac.jp";<br> };<br><br> zone "0.0.127.IN-ADDR.ARPA" {<br> type master;<br> file "master/localhost.rev";<br> };<br><br> // RFC 3152<br> zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.\<br> 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {<br> type master;<br> file "master/localhost-v6.rev";<br> };<br><br> // RFC 1886 -- deprecated<br> zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.\<br> 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {<br> type master;<br> file "master/localhost-v6.rev";<br> };<br>};</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p><br>\r
+Make a "zone" file for the domain "og.saga-u.ac.jp".\r
+<br>\r
+The domain name and IPv4/6 addresses should be modified properly.\r
+If you don't need IPv6, remove the line containing "AAAA ....".</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>$TTL 3600<br>$ORIGIN og.saga-u.ac.jp.<br><br>@ IN SOA ns.og.saga-u.ac.jp. postmaster (<br> 2005051702 ;<br> 3600<br> 1200<br> 2419200<br> 86400 )<br> IN NS ns.og.saga-u.ac.jp.<br> IN A 192.168.1.1<br> IN MX 10 opengate.og.saga-u.ac.jp.<br><br>ns IN A 192.168.1.1<br><br>opengate IN A 192.168.1.1<br> AAAA 2001:5:6:7::1</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ********* 5 ********* -->\r
+<a href="#bind5" name="bind5">C.5&nbsp;Checking\r
+Behavior</a></h4>\r
+<p>Confirm starting of "named" after completings its\r
+configuration.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># /usr/local/sbin/named -u bind -c /etc/namedb/named.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>If "named" starts without problems, add the following\r
+lines to "/etc/rc.conf" to allow it to automatically start\r
+on boot up.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>named_enable="YES"<br>named_program="/usr/local/sbin/named"<br>named_flags="-u bind -c /etc/namedb/named.conf"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Because the management of a DNS server\r
+can be complicated, it is strongly advised to carefully read the\r
+BIND9 manual, and/or consult other documentation.</p>\r
+<p style="margin-bottom: 0in;" align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<hr>\r
+<h3><!-- Start:isc-dhcp3 Install --><a href="#dhcp0" name="dhcp0">D&nbsp;isc-dhcp3\r
+Installation (Optional)</a></h3>\r
+<ul>\r
+<li><a href="#dhcp1">Ports Installation</a> </li>\r
+<li><a href="#dhcp2">Setting up DHCP</a> </li>\r
+</ul>\r
+<h4><!-- *********** 1 ************* -->\r
+<a href="#dhcp1" name="dhcp1">D.1&nbsp;Ports\r
+Install</a></h4>\r
+<p>If many client PCs are going to be\r
+connected, using the DHCP service might be a desirable solution for\r
+assigning IP addresses to these clients.</p>\r
+<p>Installing isc-dhcp3 from ports:<br>\r
+Note:\r
+the "sysinstall" command can also be used.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/ports/net/isc-dhcp3-server<br># make clean<br># make install clean ; rehash</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#dhcp0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 2 ************** -->\r
+<a href="#dhcp2" name="dhcp2">D.2&nbsp;Setting\r
+up DHCP</a></h4>\r
+<p>The"/usr/local/etc/dhcpd.conf.sample" configuration file is\r
+created during installation. <br>\r
+Copy\r
+"dhcpd.conf.sample" to "dhcpd.conf" and edit the\r
+file. <br>\r
+<br>\r
+The following is an example setup: <br>\r
+The lease time\r
+must be greater than the maximum usage duration (Duration/Max in\r
+opengatesrv.conf).<br>\r
+The domain name and IP addresses should be\r
+modified. </p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>option domain-name "og.saga-u.ac.jp";<br>option domain-name-servers 192.168.1.1;<br>option subnet-mask 255.255.255.0;<br>option broadcast-address 192.168.1.255;<br>option routers 192.168.1.1;<br><br>default-lease-time 86400;<br>max-lease-time 604800;<br>ddns-update-style none;<br>log-facility local7;<br><br>subnet 192.168.55.0 netmask 255.255.255.0 {<br> range 192.168.1.10 192.168.1.250;<br>}</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Add the following lines to "/etc/rc.conf" to allow it to\r
+automatically start on boot up.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>dhcpd_enable="YES"<br>dhcpd_ifaces="fxp0"<br>dhcpd_conf="/usr/local/etc/dhcpd.conf"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>In this example, the value of\r
+"dhcpd_ifaces" is the interface providing the DHCP service\r
+<br>\r
+(to the lower-side network).</p>\r
+<p style="margin-bottom: 0in;" align="right"><a href="#dhcp0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<hr>\r
+<h3><!-- Start:Apache2 Install--><a href="#apache0" name="apache0">E&nbsp;Apache2\r
+Installation</a></h3>\r
+<ul>\r
+<li><a href="#apache1">Ports Installation</a>\r
+</li>\r
+<li><a href="#apache2">Making Certificates</a>\r
+</li>\r
+<li><a href="#apache3">Setting up SSL</a></li>\r
+<li><a href="#apache4">Other Settings and Checking\r
+the installation</a> </li>\r
+</ul>\r
+<h4><!-- ************ 1 ************** --><a href="#apache1" name="apache1">E.1&nbsp;Ports\r
+Install</a></h4>\r
+<p>When using IPv6, Opengate needs Apache2\r
+to support IPv6. <br>\r
+By default, Apache2 supports SSL which is\r
+preferred for secure authentication.</p>\r
+<p>Installing Apache2 from ports:<br>\r
+Note:\r
+The "sysinstall" command can also be used.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/ports/www/apache22<br># make clean<br># make install clean ; rehash</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#apache0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 2 ************** --><a href="#apache2" name="apache2">E.2&nbsp;Making\r
+Certificates</a></h4>\r
+<p>It is better to obtain a formal key from\r
+some CA. But we will show you how to create a self-signed private key\r
+and certificate. </p>\r
+<p>Creating a private key:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/local/etc/apache22<br># mkdir ssl.key ssl.crt<br># chmod 700 ssl.key ssl.crt<br><br># /usr/bin/openssl genrsa -out /usr/local/etc/apache22/server.key 1024</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p><br>\r
+Making a certificate from the created key:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># /usr/bin/openssl req -new -x509 -days 365 \<br> -key /usr/local/etc/apache22/server.key \<br> -out /usr/local/etc/apache22/server.crt<br><br>You are about to be asked to enter information that will be incorporated<br>into your certificate request.<br>What you are about to enter is what is called a Distinguished Name or a DN.<br>There are quite a few fields but you can leave some blank<br>For some fields there will be a default value,<br>If you enter '.', the field will be left blank.<br>-----<br>Country Name (2 letter code) [AU]:JP<br>State or Province Name (full name) [Some-State]:Saga<br>Locality Name (eg, city) []:Saga-city<br>Organization Name (eg, company) [Internet Widgits Pty Ltd]:Saga-university<br>Organizational Unit Name (eg, subsection) []:Opengate Management<br>Common Name (eg, YOUR name) []:opengate.og.saga-u.ac.jp<br>Email Address []:administrator@opengate.og.saga-u.ac.jp<br><br>Please enter the following 'extra' attributes<br>to be sent with your certificate request<br>A challenge password []:<br>An optional company name []:</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#apache0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 3 ************** --><a href="#apache3" name="apache3">E.3&nbsp;\r
+Setting up SSL</a></h4>\r
+<p>Edit "/usr/local/etc/apache22/extra/httpd-ssl.conf" as\r
+shown in the following example:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<p>ssl.conf </p>\r
+</td>\r
+</tr>\r
+<tr>\r
+<td>\r
+<pre>&lt;VirtualHost _default_:443&gt;<br> DocumentRoot "/usr/local/www/apache22/data"<br> ServerName opengate.og.saga-u.ac.jp:443<br> ServerAdmin administrator@opengate.og.saga-u.ac.jp<br> ErrorLog "|/usr/bin/logger -p local6.info"<br> CustomLog "|/usr/bin/logger -p local5.info" combined<br><br> SSLEngine on<br> SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL<br> SSLCertificateFile /usr/local/etc/apache22/server.crt<br> SSLCertificateKeyFile /usr/local/etc/apache22/server.key<br>&lt;/VirtualHost&gt;</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Since Apache2 has many settings,\r
+familiarize yourself with the Apache2 configuration options for\r
+adequate control.</p>\r
+<p align="right"><a href="#apache0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 4 ************** --><a href="#apache4" name="apache4">E.4&nbsp;Other\r
+Settings and Checking the Installation</a></h4>\r
+<p>Edit "/usr/local/etc/apache22/httpd.conf" as follows:</p>\r
+<p>Opengate should send back the\r
+authentication page in response to any kind of HTTP request. <br>\r
+To\r
+do so, add the following line to httpd.conf: <br>\r
+(the top page will\r
+be sent back on an HTTP_ERROR 404 [file not found] error).</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>ErrorDocument 404 /</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p><br>\r
+Add "ExecCGI" to allow executing CGI programs in the\r
+cgi-bin directory.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>&lt;Directory "/usr/local/www/cgi-bin"&gt;<br> ...<br> Options ExecCGI<br> ...<br>&lt;/Directory&gt;</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Remove the comment mark ("#") to\r
+enable the following setting: </p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>AddHandler cgi-script .cgi<br>AddHandler type-map .var</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Add "index.html.var" to\r
+DirectoryIndex: </p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>DirectoryIndex index.html.var index.html</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Include ssl conf file:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>Include etc/apache22/extra/httpd-ssl.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Set ServerName: </p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>ServerName opengate.og.saga-u.ac.jp</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Start Apache2 with "apachectl start"\r
+and check for errors. <br>\r
+If no errors are displayed, add the\r
+following lines to "/etc/rc.conf" to allow Apache to start\r
+on boot up:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>apache22_enable="YES"<br>apache22ssl_enable="YES"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>If the system shows "Failed to\r
+enable the 'httpready' Accept Filter", add the following to\r
+/boot/loader.conf :</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>accf_http_load="YES"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Should the certificate require a PASSPHRASE, Apache will ask\r
+for it during\r
+boot up.<br>\r
+If you do not enter the passphrase (reboot due to\r
+power outage, remote reboot, ,...), this will prevent <br>\r
+the server from starting Apache normally, i.e. leaving you with a\r
+possible "crippled" server.</p>\r
+<blockquote>\r
+<p>Easy fix:<br>\r
+1. create a simple script containing the following:<br>\r
+#!/bin/sh<br>\r
+echo "&lt;passphrase goes here&gt;"<br>\r
+<br>\r
+2. add the following to httpd.conf:<br>\r
+SSLPassPhraseDialog exec:/path/to/above/script\r
+</p>\r
+</blockquote>\r
+<p style="margin-bottom: 0in;" align="right"><a href="#apache0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<!-- Start:SQLite3 Installation -->\r
+<h3><a class="anchor" href="#sqlite0" name="sqlite0">F&nbsp;SQLite3 Installation</a></h3>\r
+<ul>\r
+<li class="list_num"><a href="#sqlite1">Inatallation</a></li>\r
+<li class="list_num"><a href="#sqlite2">Checking</a></li>\r
+</ul>\r
+<!-- ************ 1 ************** -->\r
+<h4><a class="anchor" href="#sqlite1" name="sqlite1">F.1&nbsp;Installation</a></h4>\r
+<p>Download archive file from SQLite site(www.sqlite.org).\r
+Install it as follows.</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># tar xzvf sqlite-amalgamation-3.xx.xx.tar.gz<br># cd sqlite-3.xx.xx<br># ./configure<br># make<br># make install<br></pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#sqlite0">back</a>&nbsp;<a href="#top">top</a></div>\r
+<!-- ************ 2 ************** -->\r
+<h4><a class="anchor" href="#sqlite2" name="sqlite2">F.2&nbsp;Checking</a></h4>\r
+<p>\r
+Check the normal execution.\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># sqlite3<br>SQLite version 3.xx.xx<br>Enter ".help" for instructions<br>Enter SQL statements terminated with a ";"<br>sqlite&gt; .quit<br>#<br></pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+</p>\r
+<div align="right"><a href="#sqlite0">back</a>&nbsp;<a href="#top">top</a></div>\r
+<hr>\r
+<h3><!-- Start:Opengate Install --><a href="#opengate0" name="opengate0">G&nbsp;Opengate\r
+Installation</a></h3>\r
+<ul>\r
+<li><a href="#opengate1">Opengate Package</a>\r
+</li>\r
+<li><a href="#opengate2">Installation</a> </li>\r
+<li><a href="#opengate3">Setting up Config File</a>\r
+</li>\r
+<li><a href="#opengate4">Setting up IPFW</a>\r
+</li>\r
+<li><a href="#opengate5">Setting up syslog</a>\r
+</li>\r
+<li><a href="#opengate6">Checking Behavior</a>\r
+</li>\r
+<li><a href="#opengate7">Modifying Pages</a>\r
+</li>\r
+<li><a href="#opengate8">Setting up SQLite3</a>\r
+</li>\r
+</ul>\r
+<h4><!-- ************1************* -->\r
+<a href="#opengate1" name="opengate1">G.1&nbsp;Opengate\r
+Package</a></h4>\r
+<p>Unpack the Opengate compressed file: </p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># tar xzvf opengatexxxx.tar.gz</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>It contains the following directories:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>doc: Documentation<br>conf: Configuration files and firewall control Perl script sample<br>javahtml: Client Programs and HTML files<br>opengatesrv: Server CGI programs<br>tools: Some related tools<br>ezxml: XML parser (Copyright Aaron Voisine)</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************2************* -->\r
+<a href="#opengate2" name="opengate2">G.2&nbsp;Installation</a></h4>\r
+<p>Check the settings in "opengatesrv/Makefile" and modify\r
+if needed:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>HTMLTOP = /usr/local/www/apache22<br>DOCDIR = /data<br>CGIDIR = /cgi-bin<br>OPENGATEDIR = /opengate<br>CONFIGPATH = /etc/opengate</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Compile and Install in opengatesrv directory:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># make clean<br># make install</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 3 ************** -->\r
+<a href="#opengate3" name="opengate3">G.3&nbsp;Setting\r
+up Config File</a></h4>\r
+<p>Copy the sample configuration file\r
+"/etc/opengate/opengatesrv.conf.sample" to\r
+"/etc/opengate/opengatesrv.conf" and modify it.&nbsp;</p>\r
+<p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>cd /etc/opengate<br>cp opengatesrv.conf.sample opengatesrv.conf<br>vi opengatesrv.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+</p>\r
+<p>The\r
+following settings must be changed:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre> &lt;OpengateServerName&gt;opengate.og.saga-u.ac.jp&lt;/OpengateServerName&gt;<br><br> &lt;AuthServer&gt;<br> &lt;Protocol&gt;pop3s&lt;/Protocol&gt;<br> &lt;Address&gt;192.168.0.2&lt;/Address&gt;<br> &lt;/AuthServer&gt;</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>In &lt;OpengateServerName&gt;, set the\r
+HOSTNAME(FQDN) or IP address of the opengate gateway server. If you\r
+want to use IPv6, you need to set the FQDN corresponding to both IPv4\r
+and IPv6 addresses.</p>\r
+<p>In &lt;AuthServer&gt;, set the\r
+information for the authentication server. Opengate supports various\r
+authentication protocols. See the config file for details. <br>\r
+To\r
+differentiate between erorrs caused by authentication server or those\r
+caused by the opengate server, try the following setting first. This\r
+means that any userid and password combination is accepted.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre> ****Do not use this setting in real service****<br> &lt;AuthServer&gt;<br> &lt;Protocol&gt;accept&lt;/Protocol&gt; <br> &lt;AuthServer&gt;</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>The config file is XML. "#" marks in\r
+the file do not represent the start of a comment. <br>\r
+Use\r
+XML-formatted comments like &lt;!-- Comment String --&gt; to\r
+disable\r
+a description.</p>\r
+<p>Opengate can pass authentication settings\r
+in the form of "userid@extid". <br>\r
+See the config file for\r
+more details. <br>\r
+By using this function, you can use different\r
+authentication servers for many sections or guests.</p>\r
+<p>When the primary authentication server\r
+does not reply, Opengate can resend the request to other\r
+authentication servers. See the config file for more details.</p>\r
+<p>Caution: Do not delete the IPv6 related\r
+settings in the config file! <br>\r
+The IPv6 access is executed when\r
+the FQDN for IPv6 is prepared.</p>\r
+<p align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 4 ************** -->\r
+<a href="#opengate4" name="opengate4">G.4&nbsp;Setting\r
+up IPFW</a></h4>\r
+<p>Write IPFW rules for Opengate. </p>\r
+<p>Both IPv4 and IPv6 packets are controlled by IPFW.</p>\r
+<p>A sample rule set for IPFW can be found in\r
+"/etc/opengate/rc.firewall.sample"</p>\r
+<p>Copy the script and modify to fit your needs. <br>\r
+If you are\r
+not familiar with Ipv6, set IPv6 addresses as localhost (*net6="0",\r
+*ip6="::1").</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /etc/opengate<br># cp rc.firewall.sample rc.firewall<br># vi rc.firewall</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Modify the firewall settings in /etc/rc.conf as follows:<br>\r
+Be\r
+careful not to lock yourself out of the system after reloading the\r
+firewall.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>firewall_enable="YES"<br>firewall_script="/etc/opengate/rc.firewall"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Familiarise yourself with the "ipfw" command. <br>\r
+The\r
+Opengate software sends out ipfw add/delete commands.</p>\r
+<p>The directory /etc/opengate includes another file:\r
+'ipfwctrl.pl.sample'. &nbsp;The file is an ipfw control perl script\r
+but is not used in default setting.</p>\r
+<p align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 5 ************** -->\r
+<a href="#opengate5" name="opengate5">G.5&nbsp;Setting\r
+up syslog</a></h4>\r
+<p>Edit /etc/syslog.conf to save log entries for Opengate.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre> | Separated by TAB code<br> V<br>local1.* /var/log/opengate.log</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Make the log file as follows: <br>\r
+Consider using log rotation to\r
+control the size of this log file.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># touch /var/log/opengate.log</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 6 ************** -->\r
+<a href="#opengate6" name="opengate6">G.6&nbsp;Checking\r
+Behavior</a></h4>\r
+<p>Reboot the PC to enable setting and connect a PC to the\r
+lower-side network\r
+and try to access a site in the upper-side network. <br>\r
+If it does\r
+not work properly, consult doc/progflow.html and doc/protocol.txt to\r
+better understand the procedure. Also check the log files for\r
+Opengate, httpd, system and others. To dump more information from\r
+Opengate, set the &lt;Debug&gt; switch to "2" in\r
+opengatesrv.conf. Also check the functions of related software. The\r
+error checking document (errcheck.html) and Q&amp;A documents\r
+(qa.html, recentqa.html on the web) can be used for problem solving.</p>\r
+<p align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 7 ************** -->\r
+<a href="#opengate7" name="opengate7">G.7&nbsp;Modifying\r
+Pages</a></h4>\r
+<p>If you want to modify the contents of the\r
+web pages, edit the html files in the Opengate directories. The\r
+relative path cannot be used in httpkeep.html. Use the full URL\r
+description. The descriptions such as %%XXX%% are variables replaced\r
+by their proper values during CGI runtime. </p>\r
+<p style="margin-bottom: 0in;" align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<!-- ************ 8 ************** -->\r
+<h4><a class="anchor" href="#opengate8" name="opengate8">G.8&nbsp;Setting up SQLite3</a></h4>\r
+<p>\r
+Opengate uses the SQLite3 database to hold session information. The\r
+path of the database file is indicated with &lt;SqliteDb&gt; in\r
+opengatesrv.conf.\r
+It is recommended to change the default value to the proper directory.\r
+WWW sholud have write permission for the directory.\r
+</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>Example:<br>-- opengatesrv.conf --<br>&lt;SqliteDb&gt;/home/sqlitedb/opengate.db&lt;/SqliteDb&gt;<br><br>-- shell commands --<br># mkdir /home/sqlitedb<br># chown www /home/sqlitedb<br></pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p> The file and database table are created automatically.\r
+</p>\r
+As the file size incleases steadily, you should periodically trim or\r
+remove the file with cron (or manually). Following is a sample script\r
+to delete 3 day old records.\r
+<p></p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#!/bin/sh<br>echo "delete from session where closeTime &lt; datetime('now','localtime','-3days');" | sqlite3 /tmp/opengate.db<br>exit 0<br></pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
+<hr>\r
+<h3><!-- Start:Install MRTG --><a href="#mrtg0" name="mrtg0">H&nbsp;MRTG Installion (Optional)</a></h3>\r
+<ul>\r
+<li><a href="#mrtg1">Ports Installation</a> </li>\r
+<li><a href="#mrtg2">Setting up MRTG</a> </li>\r
+<li><a href="#mrtg3">Confirming proper startup</a>\r
+</li>\r
+<li><a href="#mrtg4">Setting up crontab</a> </li>\r
+</ul>\r
+<h4><!-- ************ 1 ************** -->\r
+<a href="#mrtg1" name="mrtg1">H.1&nbsp;Ports\r
+Installation</a></h4>\r
+<p>This section is optional. <br>\r
+If you want to graphically\r
+monitor the state of Opengate, MRTG can be used but is not required.</p>\r
+<p><a href="http://people.ee.ethz.ch/%7Eoetiker/webtools/mrtg/" target="_blank">MRTG<span style="text-decoration: none;">\r
+</span></a>(Multi Router Traffic Grapher) is a system to\r
+monitor\r
+network traffic. MRTG produces graphic images and HTML files. </p>\r
+<p>You can install MRTG on the gateway\r
+server or another server. If you need to monitor multiple Opengate\r
+systems, it is advised to install MRTG on a separate server.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/ports/net-mgmt/mrtg/<br># make clean<br># make install clean ; rehash</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 2 ************** -->\r
+<a href="#mrtg2" name="mrtg2">H.2&nbsp;Setting\r
+up MRTG</a></h4>\r
+<p>MRTG creates\r
+"/usr/local/etc/mrtg/mrtg.cfg.sample" as the sample\r
+configuration file during installation. Copy mrtg.cfg.sample to\r
+opengate.cfg and edit the file:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>##################################################<br># opengate user counter<br><br>WorkDir: /usr/home/user/public_html/mrtg/opengate/<br><br>##### Options<br>Options[^]: growright,gauge,nopercent,integer<br><br>Target[opengate]:`/usr/home/user/bin/input.sh`<br>Title[opengate]: Opengate user counter<br><br>PageTop[opengate]: &lt;h1&gt;Opengate user counter&lt;/h1&gt;<br> &lt;p&gt;Show the number of people using Opengate&lt;/p&gt;<br><br># Max Number<br>MaxBytes[opengate]: 200<br><br># Title of Y axis<br>YLegend[opengate]: Opengate User<br># unit<br>ShortLegend[opengate]: s<br># Title of graph LegendI: first line LegendO: second line<br>LegendI[opengate]: IPv6 Users<br>LegendO[opengate]: Total Users</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Be sure to actually create the directory\r
+which you appointed in "WorkDir". MRTG creates its graphic\r
+images and HTML files in "WorkDir"</p>\r
+<p>"Target[opengate]" contains the\r
+path to the program that hands its data to MRTG. <br>\r
+(details\r
+explained below)</p>\r
+<h5>H.2.1&nbsp;Scenario 1: Running MRTG on the gateway server</h5>\r
+<p>Create the shell script "/usr/home/user/bin/input.sh"\r
+with the following contents:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#!/bin/sh<br><br>#######################################<br>##<br>## show opengate status for MRTG<br>##<br>## 1 line : IPv6 Users<br>## 2 line : Total Users<br>## 3 line : uptime<br>## 4 line : comment for data<br>##<br>#######################################<br><br>LANG=C<br>COLUMNS=256<br><br>export LANG<br>export COLUMNS<br><br>### IPv6 prefix<br>prefix="2001:2f8:22:801:"<br>###opengateprocessname<br>process="opengatesrv.cgi" <br><br>###tmp file name<br>tmp_all="/tmp/og_count_all.tmp"<br>tmp_6="/tmp/og_count_6.tmp"<br><br>######################################################<br>psax | grep $process &gt; $tmp_all<br>COUNT = `wc-l $tmp_all | awk '{print $1}'` <br>grep $prefix $tmp_all &gt; $tmp_6<br>COUNT6=`wc -l $tmp_6 | awk '{print $1}'`<br>UPTIME=`uptime | awk '{print $3$4}' | sed -e "s/,//g"`<br><br>rm $tmp_all<br>rm $tmp_6<br><br>echo "$COUNT6"<br>echo "$COUNT"<br>echo "$UPTIME"<br>echo "Opengate User Counter"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Run this shell script as standalone and confirm that you can\r
+acquire the following data:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>5<br>48<br>10days<br>Opengate User Counter</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<h5>H.2.2&nbsp;Scenario 2: Running MRTG on a separate server</h5>\r
+<p>Create the shell script "/usr/home/user/bin/input.sh" on\r
+a separate server.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#!/bin/sh<br><br>#######################################<br>##<br>## input data for MRTG<br>##<br>## 1 line : IPv6 Users<br>## 2 line : Total Users<br>## 3 line : uptime<br>## 4 line : comment for data<br>##<br>#######################################<br><br># tmp file name<br>file="/tmp/opengate.tmp"<br><br># URL of output.sh at opengate<br>url="http://opengate.saga-u.ac.jp/cgi-bin/output.sh"<br><br>fetch -o $file $url &amp;&gt; /dev/null<br><br>more $file</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p style="text-indent: 0in;">Create the shell script\r
+"/usr/local/apache2/cgi-bin/output.sh" on the Opengate\r
+(gateway) server, and set the URL to $url, as explained above.</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#!/bin/sh<br><br>#######################################<br>##<br>## show opengate status for MRTG<br>##<br>## 1 line : IPv6 Users<br>## 2 line : Total Users<br>## 3 line : uptime<br>## 4 line : comment for data<br>##<br>#######################################<br><br>LANG=C<br>COLUMNS=256<br><br>export LANG<br>export COLUMNS<br><br>### IPv6 prefix<br>prefix="2001:2f8:22:801:"<br>###opengateprocessname<br>process="opengatesrv.cgi" <br><br>###tmp file name<br>tmp_all="/tmp/og_count_all.tmp"<br>tmp_6="/tmp/og_count_6.tmp"<br><br>######################################################<br>psax | grep $process &gt; $tmp_all <br>COUNT = `wc-l $tmp_all | awk '{print $1}'` <br>grep $prefix $tmp_all &gt; $tmp_6<br>COUNT6=`wc -l $tmp_6 | awk '{print $1}'`<br>UPTIME=`uptime | awk '{print $3$4}' | sed -e "s/,//g"`<br>rm $tmp_all<br>rm $tmp_6<br><br>echo "Content-type: text/plain; charset=iso-8859-1"<br>echo<br><br>echo "$COUNT6"<br>echo "$COUNT"<br>echo "$UPTIME"<br>echo "Opengate User Counter"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Run "input.sh" on another server and confirm that you\r
+can acquire the following data:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>5<br>48<br>10days<br>Opengate User Counter</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 3 ************** -->\r
+<a href="#mrtg3" name="mrtg3">H.3&nbsp;Confirming\r
+MRTG Startup Operation:</a></h4>\r
+<p>Use the following command to confirm MRTG is working with your\r
+config:</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># /usr/local/bin/mrtg /usr/local/etc/mrtg/opengate.cfg</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p style="text-indent: 0in;">Various WARNING messages are\r
+output the\r
+first and second time, this is normal behavior <br>\r
+(as explained in\r
+the MRTG documentation)!<br>\r
+Some files are created in "WorkDir".</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>&gt; ls -l<br>-rw-r--r-- 1 root wheel 538 12 14 04:40 mrtg-l.png<br>-rw-r--r-- 1 root wheel 414 12 14 04:40 mrtg-m.png<br>-rw-r--r-- 1 root wheel 1759 12 14 04:40 mrtg-r.png<br>-rw-r--r-- 1 root wheel 2941 12 20 15:15 opengate-day.png<br>-rw-r--r-- 1 root wheel 2146 12 20 14:35 opengate-month.png<br>-rw-r--r-- 1 root wheel 2867 12 20 14:55 opengate-week.png<br>-rw-r--r-- 1 root wheel 1897 12 20 05:00 opengate-year.png<br>-rw-r--r-- 1 root wheel 5961 12 20 15:15 opengate.html<br>-rw-r--r-- 1 root wheel 48786 12 20 15:15 opengate.log<br>-rw-r--r-- 1 root wheel 48784 12 20 15:10 opengate.old</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<h4><!-- ************ 4 ************** -->\r
+<a href="#mrtg4" name="mrtg4">H.4&nbsp;Registering\r
+to Crontab</a></h4>\r
+<p>Add the following line to "/etc/crontab":</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>*/5 * * * * root /usr/local/bin/mrtg /usr/local/etc/mrtg/opengate.cfg</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></p>\r
+<hr>\r
+<h3><!-- Start:Install rulechk --><a href="#rulechk" name="rulechk">I&nbsp;rulechk\r
+Installation (Optional)</a></h3>\r
+<p>This section is optional. <br>\r
+When the\r
+Opengate process is not exited normally, superfluous rules might be\r
+left behind. <br>\r
+Though it is very rare, the tools/rulechk script is made to handle such\r
+situations. This script compares the Opengate process list and the\r
+firewall rule list, and deletes the obsolete rules.<br>\r
+This script is compatible with Opengate Ver1.3.1 or above. </p>\r
+<p style="margin-bottom: 0in;" align="right"><a href="#rulechk">back</a>&nbsp;<a href="#top">top</a></p>\r
+</body></html>
\ No newline at end of file
index 1df609f..f4ec57d 100644 (file)
-<html>\r
-<head>\r
-<title>Opegnate Install</title>\r
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="ja"><head><title>Opegnate Install</title>\r
+\r
 <meta http-equiv="content-type" content="text/html;charset=Shift_JIS">\r
 <link rel="stylesheet" type="text/css" media="screen" href="style.css">\r
 </head>\r
-\r
-\r
-<body bgcolor="#fafff0">\r
-\r
-<h2>Opengate \83C\83\93\83X\83g\81[\83\8b\8eè\8f\87<A class=anchor href="#top" name=top>\81õ</A></h2>\r
+<body style="background-color: rgb(250, 255, 240);">\r
+<h2>Opengate \83C\83\93\83X\83g\81[\83\8b\8eè\8f\87<a class="anchor" href="#top" name="top">\81õ</a></h2>\r
 <!-- Start:\96Ú\8e\9f -->\r
 <ul>\r
-       <li class="list_alpha"><A href="#outline0">\83C\83\93\83X\83g\81[\83\8b\8aT\97v</A>\r
-       <ul>\r
-               <li class="list_num"><A href="#outline1">\83V\83X\83e\83\80\8d\\90¬</A></li>\r
-               <li class="list_num"><A href="#outline2">\83C\83\93\83X\83g\81[\83\8b\8eè\8f\87</A></li>\r
-               <li class="list_num"><A href="#outline3">\83T\83|\81[\83g\83y\81[\83W</A></li>\r
-       </ul></li>\r
-       <li class="list_alpha"><A href="#freebsd0">FreeBSD \82Ì\83C\83\93\83X\83g\81[\83\8b</A>\r
-       <ul>\r
-               <li class="list_num"><A href="#freebsd1">\8aî\96{\83C\83\93\83X\83g\81[\83\8b</A></li>\r
-               <li class="list_num"><A href="#freebsd2">NAT\82Æ\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\92Ç\89Á</A></li>\r
-               <li class="list_num"><A href="#freebsd3">IPv6\82Ì\90Ý\92è</A></li>\r
-       </ul></li>\r
-       <li class="list_alpha"><A href="#bind0">BIND9\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)</A>\r
-       <ul>\r
-               <li class="list_num"><A href="#bind1">\83C\83\93\83X\83g\81[\83\8b\81iports\81j</A></li>\r
-               <li class="list_num"><A href="#bind2">\94F\8fØ\83L\81[\82Ì\8dì\90¬</A></li>\r
-               <li class="list_num"><A href="#bind3">named.conf\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#bind4">zone\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#bind5">\8bN\93®\8am\94F</A></li>\r
-       </ul></li>\r
-       <li class="list_alpha"><A href="#dhcp0">isc-dhcp3\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)</A>\r
-       <ul>\r
-               <li class="list_num"><A href="#dhcp1">\83C\83\93\83X\83g\81[\83\8b\81iports\81j</A></li>\r
-               <li class="list_num"><A href="#dhcp2">DHCP\82Ì\90Ý\92è</A></li>\r
-       </ul></li>\r
-       <li class="list_alpha"><A href="#apache0">Apache2\82Ì\83C\83\93\83X\83g\81[\83\8b</A>\r
-       <ul>\r
-               <li class="list_num"><A href="#apache1">\83C\83\93\83X\83g\81[\83\8b\81iports\81j</A></li>\r
-               <li class="list_num"><A href="#apache2">\94é\96§\8c®\81A\8fØ\96¾\8f\91\82Ì\8dì\90¬</A></li>\r
-               <li class="list_num"><A href="#apache3">\83o\81[\83`\83\83\83\8b\83z\83X\83g\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#apache4">\82»\82Ì\91¼\82Ì\90Ý\92è\82Æ\93®\8dì\8am\94F</A></li>\r
-       </ul></li>\r
-       <li class="list_alpha"><A href="#sqlite0">SQLite3\82Ì\83C\83\93\83X\83g\81[\83\8b</A>\r
-       <ul>\r
-               <li class="list_num"><A href="#sqlite1">\83C\83\93\83X\83g\81[\83\8b</A></li>\r
-               <li class="list_num"><A href="#sqlite2">\93®\8dì\8am\94F</A></li>\r
-       </ul></li>\r
-       <li class="list_alpha"><A href="#opengate0">Opengate \82Ì\83C\83\93\83X\83g\81[\83\8b</A>\r
-       <ul>\r
-               <li class="list_num"><A href="#opengate1">Opengate\83p\83b\83P\81[\83W</A></li>\r
-               <li class="list_num"><A href="#opengate2">\83C\83\93\83X\83g\81[\83\8b</A></li>\r
-               <li class="list_num"><A href="#opengate3">\90Ý\92è\83t\83@\83C\83\8b\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#opengate4">ipfw\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#opengate5">syslog\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#opengate6">\93®\8dì\8am\94F</A></li>\r
-               <li class="list_num"><A href="#opengate7">\83y\81[\83W\82Ì\8fC\90³</A></li>\r
-               <li class="list_num"><A href="#opengate8">sqlite3\82Ì\90Ý\92è</A></li>\r
-\r
-       </ul></li>\r
-       <li class="list_alpha"><A href="#mrtg0">MRTG\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)</A>\r
-       <ul>\r
-               <li class="list_num"><A href="#mrtg1">\83C\83\93\83X\83g\81[\83\8b\81iports\81j</A></li>\r
-               <li class="list_num"><A href="#mrtg2">MRTG\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#mrtg3">MRTG\82Ì\8bN\93®\8am\94F</A></li>\r
-               <li class="list_num"><A href="#mrtg4">crontab\82Ö\82Ì\93o\98^</A></li>\r
-       </ul></li>\r
-    <li class="list_alpha"><A href="#rulechk">rulechk\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)</A>\r
-       </li>\r
+<li class="list_alpha"><a href="#outline0">\83C\r
+\83\93\83X\83g\81[\83\8b\8aT\97v</a>\r
+<ul>\r
+<li class="list_num"><a href="#outline1">\83V\r
+\83X\83e\83\80\8d\\90¬</a></li>\r
+<li class="list_num"><a href="#outline2">\83C\r
+\83\93\83X\83g\81[\83\8b\8eè\8f\87</a></li>\r
+<li class="list_num"><a href="#outline3">\83T\r
+\83|\81[\83g\83y\81[\83W</a></li>\r
+</ul>\r
+</li>\r
+<li class="list_alpha"><a href="#freebsd0">FreeBSD\r
+\82Ì\83C\83\93\83X\83g\81[\83\8b</a>\r
+<ul>\r
+<li class="list_num"><a href="#freebsd1">\8aî\r
+\96{\83C\83\93\83X\83g\81[\83\8b</a></li>\r
+<li class="list_num"><a href="#freebsd2">NAT\r
+\82Æ\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\92Ç\89Á</a></li>\r
+<li class="list_num"><a href="#freebsd3">IPv6\r
+\82Ì\90Ý\92è</a></li>\r
+</ul>\r
+</li>\r
+<li class="list_alpha"><a href="#bind0">BIND9\r
+\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)</a>\r
+<ul>\r
+<li class="list_num"><a href="#bind1">\83C\83\93\r
+\83X\83g\81[\83\8b\81iports\81j</a></li>\r
+<li class="list_num"><a href="#bind2">\94F\8fØ\r
+\83L\81[\82Ì\8dì\90¬</a></li>\r
+<li class="list_num"><a href="#bind3">named.conf\r
+\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#bind4">zone\r
+\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#bind5">\8bN\93®\r
+\8am\94F</a></li>\r
+</ul>\r
+</li>\r
+<li class="list_alpha"><a href="#dhcp0">isc-dhcp3\r
+\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)</a>\r
+<ul>\r
+<li class="list_num"><a href="#dhcp1">\83C\83\93\r
+\83X\83g\81[\83\8b\81iports\81j</a></li>\r
+<li class="list_num"><a href="#dhcp2">DHCP\r
+\82Ì\90Ý\92è</a></li>\r
+</ul>\r
+</li>\r
+<li class="list_alpha"><a href="#apache0">Apache2\r
+\82Ì\83C\83\93\83X\83g\81[\83\8b</a>\r
+<ul>\r
+<li class="list_num"><a href="#apache1">\83C\r
+\83\93\83X\83g\81[\83\8b\81iports\81j</a></li>\r
+<li class="list_num"><a href="#apache2">\94é\r
+\96§\8c®\81A\8fØ\96¾\8f\91\82Ì\8dì\90¬</a></li>\r
+<li class="list_num"><a href="#apache3">\83o\81[\r
+\83`\83\83\83\8b\83z\83X\83g\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#apache4">\82»\r
+\82Ì\91¼\82Ì\90Ý\92è\82Æ\93®\8dì\8am\94F</a></li>\r
+</ul>\r
+</li>\r
+<li class="list_alpha"><a href="#sqlite0">SQLite3\r
+\82Ì\83C\83\93\83X\83g\81[\83\8b</a>\r
+<ul>\r
+<li class="list_num"><a href="#sqlite1">\83C\r
+\83\93\83X\83g\81[\83\8b</a></li>\r
+<li class="list_num"><a href="#sqlite2">\93®\r
+\8dì\8am\94F</a></li>\r
+</ul>\r
+</li>\r
+<li class="list_alpha"><a href="#opengate0">Opengate\r
+\82Ì\83C\83\93\83X\83g\81[\83\8b</a>\r
+<ul>\r
+<li class="list_num"><a href="#opengate1">Opengate\r
+\83p\83b\83P\81[\83W</a></li>\r
+<li class="list_num"><a href="#opengate2">\83C\r
+\83\93\83X\83g\81[\83\8b</a></li>\r
+<li class="list_num"><a href="#opengate3">\90Ý\r
+\92è\83t\83@\83C\83\8b\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#opengate4">ipfw\r
+\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#opengate5">syslog\r
+\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#opengate6">\93®\r
+\8dì\8am\94F</a></li>\r
+<li class="list_num"><a href="#opengate7">\83y\81[\r
+\83W\82Ì\8fC\90³</a></li>\r
+<li class="list_num"><a href="#opengate8">sqlite3\r
+\82Ì\90Ý\92è</a></li>\r
+</ul>\r
+</li>\r
+<li class="list_alpha"><a href="#mrtg0">MRTG\r
+\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)</a>\r
+<ul>\r
+<li class="list_num"><a href="#mrtg1">\83C\83\93\r
+\83X\83g\81[\83\8b\81iports\81j</a></li>\r
+<li class="list_num"><a href="#mrtg2">MRTG\r
+\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#mrtg3">MRTG\r
+\82Ì\8bN\93®\8am\94F</a></li>\r
+<li class="list_num"><a href="#mrtg4">crontab\r
+\82Ö\82Ì\93o\98^</a></li>\r
+</ul>\r
+</li>\r
+<li class="list_alpha"><a href="#rulechk">rulechk\r
+\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)</a> </li>\r
 </ul>\r
-\r
 <!-- End:\96Ú\8e\9f -->\r
-<hr>\r
-<!-- Start:\83C\83\93\83X\83g\81[\83\8b\8aT\97v -->\r
-<h3>A&nbsp;\83C\83\93\83X\83g\81[\83\8b\8aT\97v<A class=anchor href="#outline0" name=outline0>\81õ</A></h3>\r
-\r
-       <ul>\r
-               <li class="list_num"><A href="#outline1">\83V\83X\83e\83\80\8d\\90¬</A></li>\r
-               <li class="list_num"><A href="#outline2">\83C\83\93\83X\83g\81[\83\8b\8eè\8f\87</A></li>\r
-       </ul>\r
-       \r
+<hr><!-- Start:\83C\83\93\83X\83g\81[\83\8b\8aT\97v -->\r
+<h3>A&nbsp;\83C\83\93\83X\83g\81[\83\8b\8aT\97v<a class="anchor" href="#outline0" name="outline0">\81õ</a></h3>\r
+<ul>\r
+<li class="list_num"><a href="#outline1">\83V\83X\83e\r
+\83\80\8d\\90¬</a></li>\r
+<li class="list_num"><a href="#outline2">\83C\83\93\83X\r
+\83g\81[\83\8b\8eè\8f\87</a></li>\r
+</ul>\r
 <!-- ************1************* -->\r
-<h4>A.1&nbsp;\83V\83X\83e\83\80\8d\\90¬<A class=anchor href="#outline1" name=outline1>\81õ</A></h4>\r
-\r
+<h4>A.1&nbsp;\83V\83X\83e\83\80\8d\\90¬<a class="anchor" href="#outline1" name="outline1">\81õ</a></h4>\r
 <p>\83Q\81[\83g\83E\83F\83C\83}\83V\83\93\82Æ\82µ\82Ä\81ANIC\82ð\82Q\96\87\88È\8fã\8e\9d\82¿\81AFreeBSD\82ð\83C\83\93\83X\83g\81[\83\8b\82·\82é\82±\82Æ\82ª\89Â\94\\82È\82à\82Ì\82ð\97p\88Ó\82·\82é\81B</p>\r
-<p>\96{\95\8f\91\82Ì\90à\96¾\82Å\82Í\81A\89º\82É\8e¦\82·\8d\\90¬\82Ì\83V\83X\83e\83\80\82ð\89¼\92è\82µ\82Ä\82¢\82é\81B\82±\82±\82Å\92[\96\96\90Ú\91±\82Ì\83l\83b\83g\83\8f\81[\83N\82ð\89º\97¬\91¤\82Æ\8cÄ\82Ñ\81A\97\98\97p\82·\82éWeb\83T\81[\83o\81[\93\99\82ª\91\8dÝ\82·\82é\83l\83b\83g\83\8f\81[\83N\82ð\8fã\97¬\91¤\82Æ\8cÄ\82Ô\82±\82Æ\82É\82·\82é\81B</p>\r
-\r
-\r
-<table><tr><td><pre>\r
-\8fã\97¬\91¤\83l\83b\83g:192.168.0.0/24, 2001:1:2:3/64\r
-\83Q\81[\83g\83E\83F\83C\8fã\97¬\91¤\83C\83\93\83^\81[\83t\83F\81[\83X:fxp1, 192.168.0.124, 2001:1:2:3::4\r
-\83Q\81[\83g\83E\83F\83C\89º\97¬\91¤\83C\83\93\83^\81[\83t\83F\81[\83X:fxp0, 192.168.1.1, 2001:5:6:7::1\r
-\89º\97¬\91¤\83l\83b\83g:192.168.1.0/24, 2001:5:6:7/64\r
-</pre></td></tr></table>\r
-\r
-<p>Opengate\82Í\81AIPv4\82ÆIPv6\82Ì\97¼\83A\83h\83\8c\83X\82ð\94F\8e¯\82µ\82Ä\81A\82»\82ê\82¼\82ê\82É\91Î\82·\82é\83t\83@\83C\83A\83E\83H\81[\83\8b\82ð\90§\8cä\82·\82é\82ª\81AIPv4\82¾\82¯\82ð\90Ý\92è\82µ\82½FreeBSD\83V\83X\83e\83\80\82Å\82 \82Á\82Ä\82à\96â\91è\82È\82­\97\98\97p\82Å\82«\82é\81B</p>\r
-\r
-\r
-\r
-\r
+<p>\96{\95\8f\91\82Ì\90à\96¾\82Å\82Í\81A\89º\82É\8e¦\82·\8d\\90¬\82Ì\83V\83X\83e\83\80\82ð\89¼\92è\82µ\82Ä\82¢\82é\81B\82±\82±\82Å\92[\96\96\90Ú\91±\82Ì\83l\83b\83g\83\8f\81[\83N\82ð\89º\97¬\91¤\82Æ\8cÄ\82Ñ\81A\97\98\97p\82·\82éWeb\83T\81[\83o\81[\93\99\82ª\r
+\91\8dÝ\82·\82é\83l\83b\83g\83\8f\81[\83N\82ð\8fã\97¬\91¤\82Æ\8cÄ\82Ô\82±\82Æ\82É\82·\82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>\8fã\97¬\91¤\83l\83b\83g:192.168.0.0/24, 2001:1:2:3/64<br>\83Q\81[\83g\83E\83F\83C\8fã\97¬\91¤\83C\83\93\83^\81[\83t\83F\81[\83X:fxp1, 192.168.0.124, 2001:1:2:3::4<br>\83Q\81[\83g\83E\83F\83C\89º\97¬\91¤\83C\83\93\83^\81[\83t\83F\81[\83X:fxp0, 192.168.1.1, 2001:5:6:7::1<br>\89º\97¬\91¤\83l\83b\83g:192.168.1.0/24, 2001:5:6:7/64</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>Opengate\82Í\81AIPv4\82ÆIPv6\82Ì\97¼\83A\83h\83\8c\83X\82ð\94F\8e¯\82µ\82Ä\81A\82»\82ê\82¼\82ê\82É\91Î\82·\82é\83t\83@\83C\83A\83E\83H\81[\83\8b\82ð\90§\8cä\82·\82é\82ª\81AIPv4\82¾\82¯\82ð\90Ý\92è\r
+\82µ\82½FreeBSD\83V\83X\83e\83\80\82Å\82 \82Á\82Ä\82à\96â\91è\82È\82­\97\98\97p\82Å\82«\82é\81B</p>\r
 <!-- ***********2************** -->\r
-<h4>A.2&nbsp;\83C\83\93\83X\83g\81[\83\8b\8eè\8f\87<A class=anchor href="#outline2" name=outline2>\81õ</A></h4>\r
-\r
+<h4>A.2&nbsp;\83C\83\93\83X\83g\81[\83\8b\8eè\8f\87<a class="anchor" href="#outline2" name="outline2">\81õ</a></h4>\r
 <p>Opengate\82Ì\83C\83\93\83X\83g\81[\83\8b\8eè\8f\87\82ð\88È\89º\82É\8e¦\82·\81B\82½\82¾\82µ\81A\81¦\82Í\95K\90{\8d\80\96Ú\82ð\8e¦\82µ\81A\82»\82ê\88È\8aO\82Ì\8eè\8f\87\82Í\95K\97v\82É\89\9e\82\82Ä\8ds\82È\82¤\81B</p>\r
-\r
-<ul>  \r
-       <li class="list_num">FreeBSD(OS)\82Ì\83C\83\93\83X\83g\81[\83\8b&nbsp;\81¦ </li>\r
-       <li class="list_num">\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\92Ç\89Á&nbsp;\81¦ </li>\r
-       <li class="list_num">BIND9\82Ì\83C\83\93\83X\83g\81[\83\8b\81A\90Ý\92è</li>\r
-       <li class="list_num">DHCP\82Ì\83C\83\93\83X\83g\81[\83\8b\81A\90Ý\92è </li>\r
-       <li class="list_num">Apache2\82Ì\83C\83\93\83X\83g\81[\83\8b\81A\90Ý\92è&nbsp;\81¦ </li>\r
-       <li class="list_num">Opengate\82Ì\83C\83\93\83X\83g\81[\83\8b\81A\90Ý\92è&nbsp;\81¦ </li></ul>\r
-\r
-\r
+<ul>\r
+<li class="list_num">FreeBSD(OS)\82Ì\83C\83\93\83X\83g\81[\83\8b&nbsp;\81¦ </li>\r
+<li class="list_num">\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\92Ç\89Á&nbsp;\81¦ </li>\r
+<li class="list_num">BIND9\82Ì\83C\83\93\83X\83g\81[\83\8b\81A\90Ý\92è</li>\r
+<li class="list_num">DHCP\82Ì\83C\83\93\83X\83g\81[\83\8b\81A\90Ý\92è </li>\r
+<li class="list_num">Apache2\82Ì\83C\83\93\83X\83g\81[\83\8b\81A\90Ý\92è&nbsp;\81¦ </li>\r
+<li class="list_num">Opengate\82Ì\83C\83\93\83X\83g\81[\83\8b\81A\90Ý\92è&nbsp;\81¦ </li>\r
+</ul>\r
 <!-- ***********3************** -->\r
-<h4>A.2&nbsp;\83T\83|\81[\83g\83y\81[\83W<A class=anchor href="#outline3" name=outline3>\81õ</A></h4>\r
-\r
+<h4>A.2&nbsp;\83T\83|\81[\83g\83y\81[\83W<a class="anchor" href="#outline3" name="outline3">\81õ</a></h4>\r
 <p>\r
 Opengate\82Ì\8fî\95ñ\82ð\89º\8bL\82Ì\83y\81[\83W\82É\82Ü\82Æ\82ß\82Ä\82¢\82é\81B\r
-<table><tr><td><pre>\r
-  http://www.cc.saga-u.ac.jp/opengate/\r
-</pre></td></tr></table>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre> http://www.cc.saga-u.ac.jp/opengate/</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 </p>\r
-\r
-\r
-<div align="right"><A href="#outline0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<div align="right"><a href="#outline0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <hr>\r
 <!-- Start:FreeBSD\82Ì\83C\83\93\83X\83g\81[\83\8b -->\r
-<h3>B&nbsp;FreeBSD\82Ì\83C\83\93\83X\83g\81[\83\8b<A class=anchor href="#freebsd0" name=freebsd0>\81õ</A></h3>\r
-\r
-       <ul>\r
-               <li class="list_num"><A href="#freebsd1">\8aî\96{\83C\83\93\83X\83g\81[\83\8b</A></li>\r
-               <li class="list_num"><A href="#freebsd2">NAT\82Æ\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\92Ç\89Á</A></li>\r
-               <li class="list_num"><A href="#freebsd3">IPv6\82Ì\90Ý\92è</A></li>\r
-       </ul>\r
-       \r
+<h3>B&nbsp;FreeBSD\82Ì\83C\83\93\83X\83g\81[\83\8b<a class="anchor" href="#freebsd0" name="freebsd0">\81õ</a></h3>\r
+<ul>\r
+<li class="list_num"><a href="#freebsd1">\8aî\96{\83C\r
+\83\93\83X\83g\81[\83\8b</a></li>\r
+<li class="list_num"><a href="#freebsd2">NAT\r
+\82Æ\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\92Ç\89Á</a></li>\r
+<li class="list_num"><a href="#freebsd3">IPv6\r
+\82Ì\90Ý\92è</a></li>\r
+</ul>\r
 <!-- ************1************* -->\r
-<h4>B.1&nbsp;\8aî\96{\83C\83\93\83X\83g\81[\83\8b<A class=anchor href="#freebsd1" name=freebsd1>\81õ</A></h4>\r
-\r
-<p>FreeBSD6.1\88È\8d~\82Ì\82Ç\82ê\82©\82ð\83C\83\93\83X\83g\81[\83\8b\82·\82é\81B\8cã\82É\83J\81[\83l\83\8b\82ð\8dÄ\8d\\92z\82·\82é\95K\97v\82ª\82 \82é\82Ì\82Å\81A\83C\83\93\83X\83g\81[\83\8b\82·\82éDistributions\82ð\91I\91ð\82·\82é\8dÛ\82É\81ADeveloper(Full sources,binaries and doc)\82à\82µ\82­\82ÍAll\82ð\91I\91ð\82µ\82È\82¯\82ê\82Î\82È\82ç\82È\82¢\81B</p>\r
-\r
-<p>FreeBSD\82ð\83C\83\93\83X\83g\81[\83\8b\82µ\82½\8cã\82É\81A\83Q\81[\83g\83E\83F\83C\82Æ\82µ\82Ä\82Ì\8b@\94\\82ð\97L\8cø\82É\82·\82é\82½\82ß\82É\81A/etc/rc.conf\82É\8e\9f\82Ì\90Ý\92è\82ð\8bL\8fq\82·\82é\81B\82à\82µ\82­\82Í\81AFreeBSD\82ð\83C\83\93\83X\83g\81[\83\8b\82·\82é\8dÛ\82É\81A\83Q\81[\83g\83E\83F\83C\82Æ\82µ\82Ä\82Ì\8b@\94\\82ð\97L\8cø\82É\82·\82é\82©\94Û\82©\82ð\96â\82í\82ê\82é\82Ì\82Å\81A\82±\82±\82Å\83Q\81[\83g\83E\83F\83C\82Ì\8b@\94\\82ð\97L\8cø\82É\82µ\82Ä\82à\8d\\82í\82È\82¢\81B</p>\r
-\r
+<h4>B.1&nbsp;\8aî\96{\83C\83\93\83X\83g\81[\83\8b<a class="anchor" href="#freebsd1" name="freebsd1">\81õ</a></h4>\r
+<p>FreeBSD6.1\88È\8d~\82Ì\82Ç\82ê\82©\82ð\83C\83\93\83X\83g\81[\83\8b\82·\82é\81B\8cã\82É\83J\81[\83l\83\8b\82ð\8dÄ\8d\\92z\82·\82é\95K\97v\82ª\82 \82é\82Ì\82Å\81A\83C\83\93\83X\83g\81[\83\8b\82·\82é\r
+Distributions\82ð\91I\r
+\91ð\82·\82é\8dÛ\82É\81ADeveloper(Full sources,binaries and doc)\82à\82µ\82­\82ÍAll\82ð\91I\91ð\82µ\82È\82¯\82ê\82Î\82È\82ç\82È\82¢\81B</p>\r
+<p>FreeBSD\82ð\83C\83\93\83X\83g\81[\83\8b\82µ\82½\8cã\82É\81A\83Q\81[\83g\83E\83F\83C\82Æ\82µ\82Ä\82Ì\8b@\94\\82ð\97L\8cø\82É\82·\82é\82½\82ß\82É\81A/etc/rc.conf\82É\8e\9f\82Ì\90Ý\92è\82ð\8bL\8fq\82·\r
+\82é\81B\82à\82µ\82­\82Í\81A\r
+FreeBSD\82ð\83C\83\93\83X\83g\81[\83\8b\82·\82é\8dÛ\82É\81A\83Q\81[\83g\83E\83F\83C\82Æ\82µ\82Ä\82Ì\8b@\94\\82ð\97L\8cø\82É\82·\82é\82©\94Û\82©\82ð\96â\82í\82ê\82é\82Ì\82Å\81A\82±\82±\82Å\83Q\81[\83g\83E\83F\83C\82Ì\8b@\94\\82ð\97L\8cø\82É\82µ\82Ä\82à\8d\\82í\82È\82¢\81B</p>\r
 <table>\r
-  <TR>\r
-<td><code>gateway_enable="YES"</code></td></TR>\r
+<tbody>\r
+<tr>\r
+<td><code>gateway_enable="YES"</code></td>\r
+</tr>\r
+</tbody>\r
 </table>\r
-\r
-<div align="right"><A href="#freebsd0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
-\r
-\r
+<div align="right"><a href="#freebsd0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 2 ************** -->\r
-<h4>B.2&nbsp;NAT\82Æ\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\92Ç\89Á<A class=anchor href="#freebsd2" name=freebsd2>\81õ</A></h4>\r
-\r
+<h4>B.2&nbsp;NAT\82Æ\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\92Ç\89Á<a class="anchor" href="#freebsd2" name="freebsd2">\81õ</a></h4>\r
 <p>\r
-\83t\83@\83C\83A\83E\83H\81[\83\8b\81iipfw)\82ð\97\98\97p\82·\82é\82½\82ß\82É\82Í\81AFreeBSD\82Ì\83J\81[\83l\83\8b\82ð\8dÄ\8d\\92z\82·\82é\95K\97v\82ª\82 \82é\81BFreeBSD\83C\83\93\83X\83g\81[\83\8b\8e\9e\82É\83J\81[\83l\83\8b\93\99\82Ì\91S\82Ä\82Ì\83\\81[\83X\82ð\83C\83\93\83X\83g\81[\83\8b\82µ\82Ä\82¢\82È\82¯\82ê\82Î\82È\82ç\82È\82¢\81B</p>\r
-\r
-<p>\88È\89º\82Ì\83f\83B\83\8c\83N\83g\83\8a\82É\82¨\82¢\82Ä\81AOpengate\97p\82Ì\83J\81[\83l\83\8b\83I\83v\83V\83\87\83\93\82ð\8dì\90¬\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# cd /usr/src/sys/i386/conf\r
-# cp GENERIC MYKERNEL\r
-</pre></td></tr></table>\r
-\r
-<p>\83R\83s\81[\82µ\82½\83J\81[\83l\83\8b\83I\83v\83V\83\87\83\93\82É\81A\8e\9f\82Ì\83I\83v\83V\83\87\83\93\82ð\92Ç\89Á\82·\82é\81B</p>\r
-\r
-\r
-\r
-<table><tr><td><pre>\r
-options IPDIVERT\r
-\r
-options IPFIREWALL\r
-options IPFIREWALL_FORWARD\r
-options IPFIREWALL_VERBOSE\r
-options IPFIREWALL_VERBOSE_LIMIT=100\r
-\r
-options IPSEC\r
-device crypto\r
-</pre></td></tr></table>\r
-\r
-\r
-<p>\82±\82ê\82ç\82Ì\83I\83v\83V\83\87\83\93\82ð\92Ç\89Á\82µ\82½\8cã\82É\81A\83J\81[\83l\83\8b\82Ì\83R\83\93\83p\83C\83\8b\82Æ\83C\83\93\83X\83g\81[\83\8b\82ð\8ds\82È\82¤\81B</p>\r
-\r
-<TABLE CELLPADDING=2 CELLSPACING=2>\r
-<TR><TD>\r
-<PRE>#cd /usr/src\r
-#make buildkernel KERNCONF=MYKERNEL\r
-#make installkernel KERNCONF=MYKERNEL\r
-</PRE>\r
-</TD></TR>\r
-</TABLE>\r
-\r
+\83t\83@\83C\83A\83E\83H\81[\83\8b\81iipfw)\82ð\97\98\97p\82·\82é\82½\82ß\82É\82Í\81AFreeBSD\82Ì\83J\81[\83l\83\8b\82ð\8dÄ\8d\\92z\82·\82é\95K\97v\82ª\82 \82é\81BFreeBSD\83C\83\93\83X\83g\81[\83\8b\8e\9e\82É\83J\81[\83l\83\8b\93\99\82Ì\91S\82Ä\82Ì\r
+\83\\81[\83X\82ð\83C\83\93\83X\83g\81[\83\8b\82µ\82Ä\82¢\82È\82¯\82ê\82Î\82È\82ç\82È\82¢\81B</p>\r
+<p>\88È\89º\82Ì\83f\83B\83\8c\83N\83g\83\8a\82É\82¨\82¢\82Ä\81AOpengate\97p\82Ì\83J\81[\83l\83\8b\83I\83v\83V\83\87\83\93\82ð\8ew\92è\82·\82é\83t\83@\83C\83\8bMYKERNEL\82ð\8dì\90¬\82·\82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/src/sys/i386/conf<br># vi MYKERNEL</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>MYKERNEL\82Ì\93à\97e\82Í\8e\9f\82Ì\92Ê\82è\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>include GENERIC<br><br>ident MYKERNEL<br><br>options IPDIVERT<br><br>options IPFIREWALL<br>options IPFIREWALL_FORWARD<br>options IPFIREWALL_VERBOSE<br>options IPFIREWALL_VERBOSE_LIMIT=100<br><br>options IPSEC<br>device crypto</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>MYKERNEL\82ð\95Û\91\82µ\82½\8cã\82É\81A\83J\81[\83l\83\8b\82Ì\83R\83\93\83p\83C\83\8b\82Æ\83C\83\93\83X\83g\81[\83\8b\82ð\8ds\82È\82¤\81B</p>\r
+<table cellpadding="2" cellspacing="2">\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#cd /usr/src<br>#make buildkernel KERNCONF=MYKERNEL<br>#make installkernel KERNCONF=MYKERNEL</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\82±\82ê\82ª\8e¸\94s\82·\82é\82È\82ç\81A\8cÃ\82¢\95û\8e®\82ð\97\98\97p\82·\82é\81B\r
-<table><tr><td><pre># config MYKERNEL\r
-# cd ../compile/MYKERNEL\r
-# make depend\r
-# make\r
-# make install\r
-</pre></td></tr></table>\r
-\r
-<p>"make depend"\82ð\8eÀ\8ds\82·\82é\91O\82É\81A"make clean"\82ª\97v\8b\81\82³\82ê\82é\8fê\8d\87\82à\82 \82é\82Ì\82Å\81A\92\8d\88Ó\82·\82é\81B</p>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># config MYKERNEL<br># cd ../compile/MYKERNEL<br># make depend<br># make<br># make install</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+</p>\r
+<p>"make depend"\82ð\8eÀ\8ds\82·\82é\91O\82É\81A"make clean"\82ª\97v\8b\81\82³\82ê\82é\8fê\8d\87\82à\82 \82é\81B</p>\r
 <p>\r
 \8dÄ\8d\\92z\82µ\82½\83J\81[\83l\83\8b\82É\82æ\82Á\82Ä\81A\83t\83@\83C\83A\83E\83H\81[\83\8b\82ð\97L\8cø\82É\82·\82é\82½\82ß\82É/etc/rc.conf\82É\88È\89º\82Ì\83I\83v\83V\83\87\83\93\82ð\8bL\8fq\82·\82é\81B</p>\r
-\r
-\r
-<table><tr><td><pre>\r
-firewall_enable="YES"\r
-firewall_script="/etc/rc.firewall"\r
-firewall_type="open"\r
-\r
-natd_enable="YES"\r
-natd_interface="fxp1"\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>firewall_enable="YES"<br>firewall_script="/etc/rc.firewall"<br>firewall_type="open"<br><br>natd_enable="YES"<br>natd_interface="fxp1"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
-\82±\82±\82Å\82Í\81A\82±\82Ì\8cã\82Ì\83`\83F\83b\83N\82É\82¨\82¢\82Ä\95s\89Â\89ð\82È\96â\91è\82ð\8bN\82±\82³\82È\82¢\82æ\82¤\82É\81A\82Ð\82Æ\82Ü\82¸\91S\82Ä\82Ì\92Ê\90M\82ð\8b\96\89Â\82·\82é\90Ý\92è\82Æ\82·\82é\81B\82³\82ç\82ÉNAT\82ª\95K\97v\82Å\82 \82é\8fê\8d\87\82Í\81Anatd\82ð\97L\8cø\82É\82µ\81A\83A\83h\83\8c\83X\95Ï\8a·\82ð\8ds\82¤\83C\83\93\83^\83t\83F\81[\83X\81i\8fã\97¬\91¤\81j\82ÌID\82ð\8ew\92è\82·\82é\81B</p>\r
-\r
-\r
+\82±\82±\82Å\82Í\81A\82±\82Ì\8cã\82Ì\83`\83F\83b\83N\82É\82¨\82¢\82Ä\95s\89Â\89ð\82È\96â\91è\82ð\8bN\82±\82³\82È\82¢\82æ\82¤\82É\81A\82Ð\82Æ\82Ü\82¸\91S\82Ä\82Ì\92Ê\90M\82ð\8b\96\89Â\82·\82é\90Ý\92è\82Æ\82·\82é\81B\82³\82ç\82ÉNAT\82ª\95K\97v\82Å\82 \82é\8fê\8d\87\82Í\81A\r
+natd\82ð\97L\8cø\82É\82µ\81A\83A\83h\83\8c\83X\95Ï\8a·\82ð\8ds\82¤\83C\83\93\83^\83t\83F\81[\83X\81i\8fã\97¬\91¤\81j\82ÌID\82ð\8ew\92è\82·\82é\81B</p>\r
 <p>\89º\97¬\91¤\83l\83b\83g\83\8f\81[\83N\82ÉPC\82ð\82Â\82È\82¬\81AIPv4\82É\82¨\82¯\82é\83Q\81[\83g\83E\83F\83C\8b@\94\\82ð\96\9e\82½\82µ\82Ä\82¢\82é\82±\82Æ\82ð\8am\94F\82·\82é\81B</p>\r
 <p>\82Ü\82¾DHCP\82Í\90Ý\92è\82³\82ê\82Ä\82¢\82È\82¢\82Ì\82Å\81APC\82Ì\83l\83b\83g\83\8f\81[\83N\82Í\83}\83j\83\85\83A\83\8b\82Å\90Ý\92è\82µ\82È\82¯\82ê\82Î\82È\82ç\82È\82¢\81B</p>\r
-\r
-\r
-<div align="right"><A href="#freebsd0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<div align="right"><a href="#freebsd0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 3 ************** -->\r
-<h4>B.3&nbsp;IPv6\82Ì\90Ý\92è<A class=anchor href="#freebsd3" name=freebsd3>\81õ</A></h4>\r
-\r
-<p>IPv6\8b@\94\\82ð\8eg\82í\82È\82¢\8fê\8d\87\82É\82Í\81A\82±\82Ì\8d\80\82Í\95s\97v\82Å\82 \82é\81BIPv6\8b@\94\\82ð\8eg\82¤\8fê\8d\87\82É\82Í\91½\82­\82Ì\90Ý\92è\82ð/etc/rc.conf\82É\82·\82é\95K\97v\82ª\82 \82é\81B\95¡\8eG\82È\82½\82ß\82É\8fÚ\8d×\82Í\97ª\82·\82ª\81A\8fn\92m\82µ\82½\8fã\82Å\90Ý\92è\82·\82é\82±\82Æ\82ª\95K\97v\82Å\82 \82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-##ENABLE IPv6\r
-ipv6_enable="YES"\r
-ipv6_network_interfaces="gif0 fxp0"\r
-\r
-##TUNNELLING INTERFACE\r
-gif_interfaces="gif0"\r
-gifconfig_gif0="192.168.0.124 192.168.0.126"\r
-\r
-##IPv6 ADDRESS \r
-ipv6_prefix_fxp0="2001:5:6:7"\r
-ipv6_ifconfig_fxp0="2001:5:6:7::1 prefixlen 64"\r
-\r
-##ADVERTISE\r
-rtadvd_enable="YES"\r
-rtadvd_interfaces="fxp0"\r
-\r
-##DEFAULT GATEWAY\r
-ipv6_default_interface="gif0"\r
-ipv6_defaultrouter="fe80::a:b:c:d%gif0"\r
-\r
-##ROUTING(RIPv6)\r
-ipv6_gateway_enable="YES"\r
-ipv6_router_enable="YES"\r
-ipv6_router="/usr/sbin/route6d"\r
-ipv6_router_flags="-O 2001:5:6:7::/64,gif0"\r
-</pre></td></tr></table>\r
-\r
+<h4>B.3&nbsp;IPv6\82Ì\90Ý\92è(Optional(\94C\88Ó))<a class="anchor" href="#freebsd3" name="freebsd3">\81õ</a></h4>\r
+<p>IPv6\8b@\94\\82ð\8eg\82í\82È\82¢\8fê\8d\87\82É\82Í\81A\82±\82Ì\8d\80\82Í\95s\97v\82Å\82 \82é\81BIPv6\8b@\94\\82ð\8eg\82¤\8fê\8d\87\82É\82Í\91½\82­\82Ì\90Ý\92è\82ð/etc/rc.conf\82É\82·\82é\95K\97v\82ª\r
+\82 \82é\81B\95¡\8eG\82È\82½\82ß\82É\8fÚ\8d×\82Í\97ª\82·\82ª\81A\8fn\92m\82µ\82½\8fã\82Å\90Ý\92è\82·\82é\82±\82Æ\82ª\95K\97v\82Å\82 \82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>##ENABLE IPv6<br>ipv6_enable="YES"<br>ipv6_network_interfaces="gif0 fxp0"<br><br>##TUNNELLING INTERFACE<br>gif_interfaces="gif0"<br>gifconfig_gif0="192.168.0.124 192.168.0.126"<br><br>##IPv6 ADDRESS <br>ipv6_prefix_fxp0="2001:5:6:7"<br>ipv6_ifconfig_fxp0="2001:5:6:7::1 prefixlen 64"<br><br>##ADVERTISE<br>rtadvd_enable="YES"<br>rtadvd_interfaces="fxp0"<br><br>##DEFAULT GATEWAY<br>ipv6_default_interface="gif0"<br>ipv6_defaultrouter="fe80::a:b:c:d%gif0"<br><br>##ROUTING(RIPv6)<br>ipv6_gateway_enable="YES"<br>ipv6_router_enable="YES"<br>ipv6_router="/usr/sbin/route6d"<br>ipv6_router_flags="-O 2001:5:6:7::/64,gif0"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\89º\97¬\91¤\83l\83b\83g\83\8f\81[\83N\82ÉPC\82ð\82Â\82È\82¬\81AIPv6\82ª\97L\8cø\82Å\82 \82é\82±\82Æ\82ð\8am\94F\82·\82é\81B</p>\r
 <p>WindowsPC\82É\82¨\82¢\82ÄIPv6\82ð\97L\8cø\82É\82·\82é\82É\82Í\81A"ipv6 install"\82Æ\83R\83}\83\93\83h\82ð\93ü\82ê\82é\95K\97v\82ª\82 \82é\82©\82à\82µ\82ê\82È\82¢\81B</p>\r
-\r
-\r
-<div align="right"><A href="#ipfw0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<div align="right"><a href="#ipfw0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <hr>\r
-\r
-\r
 <!-- Start:BIND9\82Ì\83C\83\93\83X\83g\81[\83\8b -->\r
-<h3>C&nbsp;BIND9\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)<A class=anchor href="#bind0" name=bind0>\81õ</A></h3>\r
-\r
+<h3>C&nbsp;BIND9\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional(\94C\88Ó))<a class="anchor" href="#bind0" name="bind0">\81õ</a></h3>\r
 <ul>\r
-       <li class="list_num"><A href="#bind1">\83C\83\93\83X\83g\81[\83\8b\81iports\81j</A></li>\r
-       <li class="list_num"><A href="#bind2">\94F\8fØ\83L\81[\82Ì\8dì\90¬</A></li>\r
-       <li class="list_num"><A href="#bind3">named.conf\82Ì\90Ý\92è</A></li>\r
-       <li class="list_num"><A href="#bind4">zone\82Ì\90Ý\92è</A></li>\r
-       <li class="list_num"><A href="#bind5">\8bN\93®\8am\94F</A></li>\r
+<li class="list_num"><a href="#bind1">\83C\83\93\83X\83g\81[\83\8b\r
+\81iports\81j</a></li>\r
+<li class="list_num"><a href="#bind2">\94F\8fØ\83L\81[\82Ì\8dì\r
+\90¬</a></li>\r
+<li class="list_num"><a href="#bind3">named.conf\r
+\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#bind4">zone\82Ì\90Ý\r
+\92è</a></li>\r
+<li class="list_num"><a href="#bind5">\8bN\93®\8am\94F</a></li>\r
 </ul>\r
-\r
 <!-- ********** 1 *********** -->\r
-<h4>C.1&nbsp;\83C\83\93\83X\83g\81[\83\8b\81iports\81j<A class=anchor href="#bind1" name=bind1>\81õ</A></h4>\r
-\r
+<h4>C.1&nbsp;\83C\83\93\83X\83g\81[\83\8b\81iports\81j<a class="anchor" href="#bind1" name="bind1">\81õ</a></h4>\r
 <p>\r
-\r
-IPv6\8b@\94\\82ð\8eg\82¤\8fê\8d\87\82É\82Í\81AIPv4\82ÆIPv6\82Ì\97¼\83A\83h\83\8c\83X\82ª\93o\98^\82³\82ê\82½DNS\82ª\95K\97v\82Å\82 \82é\81BIPv6\8b@\94\\82ð\8eg\82í\82È\82¢\8fê\8d\87\82É\82Í\81ADNS\82ð\90Ý\92è\82¹\82¸\82ÉIP\83A\83h\83\8c\83X\82Å\90§\8cä\82·\82é\82±\82Æ\82à\89Â\94\\82Å\82 \82é\81B\8aù\91\82ÌDNS\82É\92Ç\89Á\82·\82é\82±\82Æ\82Å\82à\97Ç\82¢\81B\82±\82±\82Å\82Í\81ABIND9\82ð\83T\81[\83o\83}\83V\83\93\82É\83C\83\93\83X\83g\81[\83\8b\82·\82é\8eè\8f\87\82ð\8bL\82·\81B</p>\r
-\r
+IPv6\8b@\94\\82ð\8eg\82¤\8fê\8d\87\82É\82Í\81AIPv4\82ÆIPv6\82Ì\97¼\83A\83h\83\8c\83X\82ª\93o\98^\82³\82ê\82½DNS\82ª\95K\97v\82Å\82 \82é\81BIPv6\8b@\94\\82ð\8eg\82í\82È\82¢\8fê\8d\87\82É\82Í\81ADNS\82ð\90Ý\92è\82¹\82¸\82ÉIP\r
+\83A\83h\83\8c\83X\82Å\90§\8cä\82·\82é\82±\82Æ\82à\89Â\94\\82Å\82 \82é\81B\8aù\91\82ÌDNS\82É\92Ç\89Á\82·\82é\82±\82Æ\82Å\82à\97Ç\82¢\81B\82±\82±\82Å\82Í\81ABIND9\82ð\83T\81[\83o\83}\83V\83\93\82É\83C\83\93\83X\83g\81[\83\8b\82·\82é\8eè\8f\87\82ð\8bL\82·\81B</p>\r
 <p>\83C\83\93\83X\83g\81[\83\8b\82É\82Ísysinstall\83R\83}\83\93\83h\82ð\97p\82¢\82Ä\82à\97Ç\82¢\81Bports\82©\82ç\83C\83\93\83X\83g\81[\83\8b\82·\82é\82É\82Í\88È\89º\82Ì\83R\83}\83\93\83h\82ð\8eg\82¤\81B</p>\r
-<table><tr><td><pre>\r
-# cd /usr/ports/dns/bind9/\r
-# make clean\r
-# make install clean ; rehash\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/ports/dns/bind9/<br># make clean<br># make install clean ; rehash</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
-\83C\83\93\83X\83g\81[\83\8b\82ª\8a®\97¹\82·\82é\82Æ\81A/etc/namedb(/var/named/etc/namaedb)\88È\89º\82Ì\83f\83B\83\8c\83N\83g\83\8a\82É\8ae\8eí\90Ý\92è\83t\83@\83C\83\8b\82ª\90\90¬\82³\82ê\82é\81B</p>\r
-\r
-<div align="right"><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+\83C\83\93\83X\83g\81[\83\8b\82ª\8a®\97¹\82·\82é\82Æ\81A/etc/namedb(/var/named/etc/namaedb)\88È\89º\82Ì\83f\83B\83\8c\83N\83g\83\8a\82É\8ae\8eí\90Ý\92è\83t\83@\83C\83\8b\82ª\90\90¬\82³\82ê\r
+\82é\81B</p>\r
+<div align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ********** 2 ********** -->\r
-<h4>C.2&nbsp;\94F\8fØ\83L\81[\82Ì\8dì\90¬<A class=anchor href="#bind2" name=bind2>\81õ</A></h4>\r
-\r
+<h4>C.2&nbsp;\94F\8fØ\83L\81[\82Ì\8dì\90¬<a class="anchor" href="#bind2" name="bind2">\81õ</a></h4>\r
 <p>BIND9\82Å\82Í\81A\83Z\83L\83\85\83\8a\83e\83B\82ð\8am\95Û\82·\82é\82½\82ß\82É\94F\8fØ\83L\81[\82ð\90Ý\92è\82µ\81Arndc\83R\83}\83\93\83h\82ð\97p\82¢\82Änamed\82ð\90§\8cä\82·\82é\81B</p>\r
 <p>\82»\82±\82Å\81A\82Ü\82¸\94F\8fØ\83L\81[\82Ì\8dì\90¬\82ð\8ds\82¤\81B\94F\8fØ\83L\81[\82Ì\8dì\90¬\8eè\8f\87\82ð\88È\89º\82É\8e¦\82·\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# cd /etc/namebd/\r
-# rndc-confgen -b 512 > rndc.conf\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /etc/namebd/<br># rndc-confgen -b 512 &gt; rndc.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\88È\89º\82Ì\82æ\82¤\82É\83L\81[\82ð\8aÜ\82Þ\90Ý\92è\83t\83@\83C\83\8brndc.conf\82ª\8dì\90¬\82³\82ê\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# Start of rndc.conf\r
-key "rndc-key" {\r
-       algorithm hmac-md5;\r
-       secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";\r
-};\r
-\r
-options {\r
-       default-key "rndc-key";\r
-       default-server 127.0.0.1;\r
-       default-port 953;\r
-};\r
-# End of rndc.conf\r
-\r
-# Use with the following in named.conf, adjusting the allow list as needed:\r
-# key "rndc-key" {\r
-#      algorithm hmac-md5;\r
-#      secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";\r
-# };\r
-# \r
-# controls {\r
-#      inet 127.0.0.1 port 953\r
-#              allow { 127.0.0.1; } keys { "rndc-key"; };\r
-# };\r
-# End of named.conf\r
-</pre></td></tr></table>\r
-\r
-\r
-<div align="right"><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># Start of rndc.conf<br>key "rndc-key" {<br>      algorithm hmac-md5;<br> secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";<br>};<br><br>options {<br>   default-key "rndc-key";<br>     default-server 127.0.0.1;<br>   default-port 953;<br>};<br># End of rndc.conf<br><br># Use with the following in named.conf, adjusting the allow list as needed:<br># key "rndc-key" {<br># algorithm hmac-md5;<br># secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";<br># };<br># <br># controls {<br># inet 127.0.0.1 port 953<br># allow { 127.0.0.1; } keys { "rndc-key"; };<br># };<br># End of named.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ********* 3 ********* -->\r
-<h4>C.3&nbsp;named.conf\82Ì\90Ý\92è<A class=anchor href="#bind3" name=bind3>\81õ</A></h4>\r
-\r
+<h4>C.3&nbsp;named.conf\82Ì\90Ý\92è<a class="anchor" href="#bind3" name="bind3">\81õ</a></h4>\r
 <p>named\82Ì\8eå\82È\93®\8dì\82ð\90§\8cä\82·\82é\82½\82ß\82Ì\90Ý\92è\83t\83@\83C\83\8b/etc/namedb/named.conf\82Ì\90Ý\92è\82ð\8ds\82¤\81B</p>\r
 <p>\82Ü\82¸\81A\94F\8fØ\83L\81[\82Ì\90Ý\92è\82Ì\82½\82ß\82Ékey\83f\83B\83\8c\83N\83e\83B\83u\82Ì\90Ý\92è\82ª\95K\97v\82Å\82 \82é\81B\91O\8fq\82µ\82½rndc.conf\82Ì\r
 key\83f\83B\83\8c\83N\83e\83B\83u\82Æ\93¯\97l\82Ì\90Ý\92è\82ð\82µ\82È\82¯\82ê\82Î\82È\82ç\82È\82¢\81B\82»\82±\82Å\81Arndc.conf\82Ì\8cã\94¼\95\94\95ª\82ð\83R\83s\81[\82µ\82Ä\r
 \83R\83\81\83\93\83g\82ð\8aO\82·\81B\82³\82ç\82ÉIPv6\90Ý\92è\81i\95K\97v\82È\82ç\81j\82ð\89Á\82¦\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# Use with the following in named.conf, adjusting the allow list as needed:\r
-key "rndc-key" {\r
-       algorithm hmac-md5;\r
-       secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";\r
-};\r
-\r
-controls {\r
-       inet ::1 port 953 allow { ::1; } keys { "rndc-key"; };\r
-       inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };\r
-};\r
-# End of named.conf\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># Use with the following in named.conf, adjusting the allow list as needed:<br>key "rndc-key" {<br>       algorithm hmac-md5;<br> secret "wMpASEmnRVnD602MtEb+RqtMee5+n0RVgpaUrlAHvPpgH3SoK7f2nRZBUH7a0urvmyBuAg0dwtk/Otg9Ker3gA==";<br>};<br><br>controls {<br>  inet ::1 port 953 allow { ::1; } keys { "rndc-key"; };<br>      inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };<br>};<br># End of named.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\82È\82¨key\83f\83B\83\8c\83N\83e\83B\83u\82É\82Â\82¢\82Ä\82Í\95Ê\83t\83@\83C\83\8b\82É\8bL\8fq\82µ\81Anamed.conf\82Åinclude\r
 \82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\81B</p>\r
 <p>\8e\9f\82É\81Anamed.conf\92\86\82Ìoptions\83f\83B\83\8c\83N\83e\83B\83u\82Ì\90Ý\92è\82ð\8ds\82¤\81B</p>\r
-\r
-<table><tr><td><pre>\r
-options {\r
-        directory "/etc/namedb";\r
-        pid-file "/var/run/named/pid";\r
-        auth-nxdomain yes;\r
-        listen-on-v6 { any; };\r
-};\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>options {<br> directory "/etc/namedb";<br> pid-file "/var/run/named/pid";<br> auth-nxdomain yes;<br> listen-on-v6 { any; };<br>};</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>pid\83t\83@\83C\83\8b\82ð\92u\82­\83f\83B\83\8c\83N\83g\83\8a\82Í\93K\93\96\82É\8dì\90¬\82·\82é\95K\97v\82ª\82 \82é\81B</p>\r
-\r
-<div align="right"><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<div align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ******** 4 ********* -->\r
-<h4>C.4&nbsp;zone\82Ì\90Ý\92è<A class=anchor href="#bind4" name=bind4>\81õ</A></h4>\r
-\r
+<h4>C.4&nbsp;zone\82Ì\90Ý\92è<a class="anchor" href="#bind4" name="bind4">\81õ</a></h4>\r
 <p>\r
-\r
-Opengate\82Å\8aÇ\97\9d\82·\82é\83h\83\81\83C\83\93\82É\82Â\82¢\82Ä\90Ý\92è\82ð\8ds\82¤\81B\8ae\83h\83\81\83C\83\93\82Ínamed.conf\82Ìzone\83f\83B\83\8c\83N\83e\83B\83u\82É\82æ\82Á\82Ä\8aÇ\97\9d\82³\82ê\82é\81B\82Ü\82½\81ABIND9\82Å\82Íview\82Æ\82¢\82¤\83f\83B\83\8c\83N\83e\83B\83u\82ª\8eÀ\91\95\82³\82ê\82Ä\82¨\82è\81A\82±\82Ì\8eq\83f\83B\83\8c\83N\83e\83B\83u\82É\r
+Opengate\82Å\8aÇ\97\9d\82·\82é\83h\83\81\83C\83\93\82É\82Â\82¢\82Ä\90Ý\92è\82ð\8ds\82¤\81B\8ae\83h\83\81\83C\83\93\82Ínamed.conf\82Ìzone\83f\83B\83\8c\83N\83e\83B\83u\82É\82æ\82Á\82Ä\8aÇ\97\9d\82³\82ê\82é\81B\82Ü\82½\81A\r
+BIND9\82Å\82Íview\82Æ\82¢\82¤\83f\83B\83\8c\83N\83e\83B\83u\82ª\8eÀ\91\95\82³\82ê\82Ä\82¨\82è\81A\82±\82Ì\8eq\83f\83B\83\8c\83N\83e\83B\83u\82É\r
 zone\82Æ\82µ\82Ä\90Ý\92è\82·\82é\82±\82Æ\82É\82æ\82Á\82Ä\81ADNS\96â\82¢\8d\87\82í\82¹\8c³\82ÌIP\83A\83h\83\8c\83X\82â\83h\83\81\83C\83\93\82É\82æ\82Á\82Ä\95Ô\93\9a\82·\82ézone\82ð\95Ï\8dX\82·\82é\82±\82Æ\82ª\89Â\94\\82Æ\82È\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-view "og" {\r
-        match-clients\r
-        {\r
-        192.168.1.0/24;\r
-        };\r
-\r
-        recursion yes;\r
-\r
-        zone "." {\r
-                type hint;\r
-                file "named.root";\r
-        };\r
-\r
-        zone "og.saga-u.ac.jp" {\r
-                type master;\r
-                file "og.saga-u.ac.jp";\r
-        };\r
-\r
-        zone "0.0.127.IN-ADDR.ARPA" {\r
-                type master;\r
-                file "master/localhost.rev";\r
-        };\r
-\r
-        // RFC 3152\r
-        zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.\\r
-              0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {\r
-                type master;\r
-                file "master/localhost-v6.rev";\r
-        };\r
-\r
-        // RFC 1886 -- deprecated\r
-        zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.\\r
-              0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {\r
-                type master;\r
-                file "master/localhost-v6.rev";\r
-        };\r
-};\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>view "og" {<br> match-clients<br> {<br> 192.168.1.0/24;<br> };<br><br> recursion yes;<br><br> zone "." {<br> type hint;<br> file "named.root";<br> };<br><br> zone "og.saga-u.ac.jp" {<br> type master;<br> file "og.saga-u.ac.jp";<br> };<br><br> zone "0.0.127.IN-ADDR.ARPA" {<br> type master;<br> file "master/localhost.rev";<br> };<br><br> // RFC 3152<br> zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.\<br> 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {<br> type master;<br> file "master/localhost-v6.rev";<br> };<br><br> // RFC 1886 -- deprecated<br> zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.\<br> 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {<br> type master;<br> file "master/localhost-v6.rev";<br> };<br>};</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
-\88È\8fã\82Ì\90Ý\92è\82É\82¨\82¢\82Ä\81A"og.saga-u.ac.jp"\82Æ\82¢\82¤zone\82ð\90Ý\92è\82µ\82½\81B\82±\82Ì\90Ý\92è\82É\82¨\82¢\82Ä\81A\83h\83\81\83C\83\93"og.saga-u.ac.jp"\82É\91®\82·\82é\83z\83X\83g\82ð\90Ý\92è\82µ\82½og.saga-u.ac.jp\82Æ\82¢\82¤\83t\83@\83C\83\8b\82ð\93Ç\82Ý\8d\9e\82Þ\82æ\82¤\82É\90Ý\92è\82µ\82Ä\82¢\82é\81B\82»\82±\82Å\81Aog.saga-u.ac.jp\82Æ\82¢\82¤\96¼\82Ì\81A\8e\9f\82Ì\82æ\82¤\82È\83t\83@\83C\83\8b\82ð\97p\88Ó\82·\82é\81B\82È\82¨\81A\83h\83\81\83C\83\93\96¼\82ÆIP\83A\83h\83\8c\83X\82Í\81A\93K\90Ø\82É\90Ý\92è\82·\82é\95K\97v\82ª\82 \82é\81BIPv6\82ª\95s\97v\82È\82ç\81A"AAAA ...."\82Ì\8ds\82Í\8dí\8f\9c\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-$TTL    3600\r
-$ORIGIN og.saga-u.ac.jp.\r
-\r
-@       IN      SOA     ns.og.saga-u.ac.jp. postmaster (\r
-                        2005051702 ;\r
-                        3600\r
-                        1200\r
-                        2419200\r
-                        86400 )\r
-                IN      NS      ns.og.saga-u.ac.jp.\r
-                IN      A       192.168.1.1\r
-                IN      MX      10 opengate.og.saga-u.ac.jp.\r
-\r
-ns              IN      A       192.168.1.1\r
-\r
-opengate        IN      A       192.168.1.1\r
-                        AAAA    2001:5:6:7::1\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+\88È\8fã\82Ì\90Ý\92è\82É\82¨\82¢\82Ä\81A"og.saga-u.ac.jp"\82Æ\82¢\82¤zone\82ð\90Ý\92è\82µ\82½\81B\82±\82Ì\90Ý\92è\82É\82¨\82¢\82Ä\81A\83h\83\81\83C\83\93"og.saga-u.ac.jp"\82É\91®\r
+\82·\82é\83z\83X\83g\82ð\90Ý\92è\82µ\82½og.saga-u.ac.jp\82Æ\82¢\82¤\83t\83@\83C\83\8b\82ð\93Ç\82Ý\8d\9e\82Þ\82æ\82¤\82É\90Ý\92è\82µ\82Ä\82¢\82é\81B\82»\82±\82Å\81Aog.saga-u.ac.jp\82Æ\82¢\82¤\96¼\82Ì\81A\r
+\8e\9f\82Ì\82æ\82¤\82È\83t\83@\83C\83\8b\82ð\97p\88Ó\82·\82é\81B\82È\82¨\81A\83h\83\81\83C\83\93\96¼\82ÆIP\83A\83h\83\8c\83X\82Í\81A\93K\90Ø\82É\90Ý\92è\82·\82é\95K\97v\82ª\82 \82é\81BIPv6\82ª\95s\97v\82È\82ç\81A"AAAA\r
+...."\82Ì\8ds\82Í\8dí\8f\9c\82·\82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>$TTL 3600<br>$ORIGIN og.saga-u.ac.jp.<br><br>@ IN SOA ns.og.saga-u.ac.jp. postmaster (<br> 2005051702 ;<br> 3600<br> 1200<br> 2419200<br> 86400 )<br> IN NS ns.og.saga-u.ac.jp.<br> IN A 192.168.1.1<br> IN MX 10 opengate.og.saga-u.ac.jp.<br><br>ns IN A 192.168.1.1<br><br>opengate IN A 192.168.1.1<br> AAAA 2001:5:6:7::1</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ********* 5 ********* -->\r
-<h4>C.5&nbsp;\8bN\93®\8am\94F<A class=anchor href="#bind5" name=bind5>\81õ</A></h4>\r
-\r
+<h4>C.5&nbsp;\8bN\93®\8am\94F<a class="anchor" href="#bind5" name="bind5">\81õ</a></h4>\r
 <p>\88È\8fã\81A\91S\82Ä\82Ì\90Ý\92è\82ª\8a®\97¹\82µ\82½\8cã\82É\81A\8bN\93®\8am\94F\82ð\8ds\82¤\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# /usr/local/sbin/named -u bind -c /etc/namedb/named.conf\r
-</pre></td></tr></table>\r
-\r
-<p>\96â\91è\82È\82­named\82ª\8bN\93®\82µ\82Ä\82¢\82ê\82Î\90¬\8c÷\82Å\82 \82é\81B\96â\91è\82ª\82È\82¯\82ê\82Î\81A/etc/rc.conf\82É\88È\89º\82Ì\8d\80\96Ú\82ð\8bL\8fq\82µ\81A\8e©\93®\8bN\93®\82·\82é\82æ\82¤\82É\90Ý\92è\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>named_enable="YES"\r
-named_program="/usr/local/sbin/named"\r
-named_flags="-u bind -c /etc/namedb/named.conf"\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># /usr/local/sbin/named -u bind -c /etc/namedb/named.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>\96â\91è\82È\82­named\82ª\8bN\93®\82µ\82Ä\82¢\82ê\82Î\90¬\8c÷\82Å\82 \82é\81B\96â\91è\82ª\82È\82¯\82ê\82Î\81A/etc/rc.conf\82É\88È\89º\82Ì\8d\80\96Ú\82ð\8bL\8fq\82µ\81A\8e©\93®\8bN\93®\82·\82é\82æ\82¤\82É\r
+\90Ý\92è\82·\82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>named_enable="YES"<br>named_program="/usr/local/sbin/named"<br>named_flags="-u bind -c /etc/namedb/named.conf"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
 DNS\83T\81[\83o\82Í\8aÇ\97\9d\82ª\95¡\8eG\82Å\82 \82é\82½\82ß\81A\82±\82Ì\91¼\82Ì\8e\91\97¿\82à\8eQ\8dl\82É\82µ\81A\83}\83j\83\85\83A\83\8b\82ð\8fn\93Ç\82µ\82½\8fã\82Å\90Ý\92è\82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\81B</p>\r
-\r
-<div align="right"><A href="#bind0">back</A>&nbsp;<A href="#top">top</A></div>\r
+<div align="right"><a href="#bind0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <hr>\r
-\r
-\r
 <!-- Start:isc-dhcp3\82Ì\83C\83\93\83X\83g\81[\83\8b -->\r
-<h3>D&nbsp;isc-dhcp3\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)<A class=anchor href="#dhcp0" name=dhcp0>\81õ</A></h3>\r
-\r
+<h3>D&nbsp;isc-dhcp3\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional(\94C\88Ó))<a class="anchor" href="#dhcp0" name="dhcp0">\81õ</a></h3>\r
 <ul>\r
-       <li class="list_num"><A href="#dhcp1">\83C\83\93\83X\83g\81[\83\8b\81iports\81j</A></li>\r
-       <li class="list_num"><A href="#dhcp2">DHCP\82Ì\90Ý\92è</A></li>\r
+<li class="list_num"><a href="#dhcp1">\83C\83\93\83X\83g\81[\83\8b\r
+\81iports\81j</a></li>\r
+<li class="list_num"><a href="#dhcp2">DHCP\82Ì\90Ý\r
+\92è</a></li>\r
 </ul>\r
-\r
 <!-- *********** 1 ************* -->\r
-<h4>D.1&nbsp;\83C\83\93\83X\83g\81[\83\8b\81iports\81j<A class=anchor href="#dhcp1" name=dhcp1>\81õ</A></h4>\r
-\r
+<h4>D.1&nbsp;\83C\83\93\83X\83g\81[\83\8b\81iports\81j<a class="anchor" href="#dhcp1" name="dhcp1">\81õ</a></h4>\r
 <p>\r
-Opengate\82ð\93±\93ü\82·\82é\83l\83b\83g\83\8f\81[\83N\82Å\82Í\81A\97\98\97p\8eÒ\92[\96\96\82ª\95p\94É\82É\93ü\82ê\91Ö\82í\82é\82±\82Æ\82ª\97\\91ª\82Å\82«\82é\81B\82»\82±\82Å\81A\97l\81X\82È\97\98\97p\8eÒ\92[\96\96\82É\91Î\82µ\82Ä\8e©\93®\93I\82ÉIPv4\83A\83h\83\8c\83X\82ð\8a\84\82è\93\96\82Ä\82é\82±\82Æ\82ª\82Å\82«\82éDHCP\83T\81[\83o\82ð\93±\93ü\82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\81B</p>\r
+Opengate\82ð\93±\93ü\82·\82é\83l\83b\83g\83\8f\81[\83N\82Å\82Í\81A\97\98\97p\8eÒ\92[\96\96\82ª\95p\94É\82É\93ü\82ê\91Ö\82í\82é\82±\82Æ\82ª\97\\91ª\82Å\82«\82é\81B\82»\82±\82Å\81A\97l\81X\82È\97\98\97p\8eÒ\92[\96\96\82É\91Î\82µ\82Ä\8e©\93®\93I\82ÉIPv4\83A\83h\83\8c\r
+\83X\82ð\8a\84\82è\93\96\82Ä\82é\82±\82Æ\82ª\82Å\82«\82éDHCP\83T\81[\83o\82ð\93±\93ü\82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\81B</p>\r
 <p>\88È\89º\82Éisc-dhcp3\82Ì\83C\83\93\83X\83g\81[\83\8b\8eè\8f\87\82ð\8bL\82·\81B"sysinstall"\83R\83}\83\93\83h\82ð\97p\82¢\82Ä\82à\97Ç\82¢\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# cd /usr/ports/net/isc-dhcp3-server\r
-# make clean\r
-# make install clean ; rehash\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#dhcp0">back</A>&nbsp;<A href="#top">top</A></div>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/ports/net/isc-dhcp3-server<br># make clean<br># make install clean ; rehash</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#dhcp0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <hr>\r
-\r
 <!-- ************ 2 ************** -->\r
-<h4>D.2&nbsp;DHCP\82Ì\90Ý\92è<A class=anchor href="#dhcp2" name=dhcp2>\81õ</A></h4>\r
-\r
+<h4>D.2&nbsp;DHCP\82Ì\90Ý\92è<a class="anchor" href="#dhcp2" name="dhcp2">\81õ</a></h4>\r
 <p>\r
-\83C\83\93\83X\83g\81[\83\8b\8dì\8bÆ\82ª\8a®\97¹\82·\82é\82Æ\81A/usr/local/etc\88È\89º\82Édhcpd.conf.sample\82ª\90\90¬\82³\82ê\82Ä\82¢\82é\81B\93¯\83f\83B\83\8c\83N\83g\83\8a\82Édhcpd.conf\82Æ\82µ\82Ä\83R\83s\81[\82µ\8fC\90³\82·\82é\81B</p>\r
-<p>\88È\89º\82É\81A\90Ý\92è\97á\82ð\8e¦\82·\81B\83\8a\81[\83X\8e\9e\8aÔ\82Í\81A\8b\96\97e\8dÅ\91å\8e\9e\8aÔ\81iopengatesrv.conf\93à\82ÌDuration/Max\81j\82æ\82è\92·\82­\82·\82é\82±\82Æ\81B</p>\r
-\r
-<table><tr><td><pre>\r
-option domain-name "og.saga-u.ac.jp";\r
-option domain-name-servers 192.168.1.1;\r
-option subnet-mask 255.255.255.0;\r
-option broadcast-address 192.168.1.255;\r
-option routers 192.168.1.1;\r
-\r
-default-lease-time 86400;\r
-max-lease-time 604800;\r
-ddns-update-style none;\r
-log-facility local7;\r
-\r
-subnet 192.168.55.0 netmask 255.255.255.0 {\r
-  range 192.168.1.10 192.168.1.250;\r
-}\r
-</pre></td></tr></table>\r
-\r
+\83C\83\93\83X\83g\81[\83\8b\8dì\8bÆ\82ª\8a®\97¹\82·\82é\82Æ\81A/usr/local/etc\88È\89º\82Édhcpd.conf.sample\82ª\90\90¬\82³\82ê\82Ä\82¢\82é\81B\93¯\83f\83B\83\8c\83N\83g\83\8a\82É\r
+dhcpd.conf\82Æ\82µ\82Ä\83R\83s\81[\82µ\8fC\90³\82·\82é\81B</p>\r
+<p>\88È\89º\82É\81A\90Ý\92è\97á\82ð\8e¦\82·\81B\83\8a\81[\83X\8e\9e\8aÔ\82Í\81A\8b\96\97e\8dÅ\91å\8e\9e\8aÔ\81iopengatesrv.conf\93à\82ÌDuration/Max\81j\82æ\82è\92·\82­\82·\82é\82±\r
+\82Æ\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>option domain-name "og.saga-u.ac.jp";<br>option domain-name-servers 192.168.1.1;<br>option subnet-mask 255.255.255.0;<br>option broadcast-address 192.168.1.255;<br>option routers 192.168.1.1;<br><br>default-lease-time 86400;<br>max-lease-time 604800;<br>ddns-update-style none;<br>log-facility local7;<br><br>subnet 192.168.55.0 netmask 255.255.255.0 {<br> range 192.168.1.10 192.168.1.250;<br>}</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\82Ü\82½\81Adhcpd\82ð\8e©\93®\8bN\93®\82·\82é\82½\82ß\82É\81A/etc/rc.conf\82É\88È\89º\82Ì\8d\80\96Ú\82ð\8bL\8fq\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-dhcpd_enable="YES"\r
-dhcpd_ifaces="fxp0"\r
-dhcpd_conf="/usr/local/etc/dhcpd.conf"\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>dhcpd_enable="YES"<br>dhcpd_ifaces="fxp0"<br>dhcpd_conf="/usr/local/etc/dhcpd.conf"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>dhcpd_ifaces\82É\82Â\82¢\82Ä\82Í\81Adhcp\82ð\91\97\90M\82·\82é\83C\83\93\83^\83t\83F\81[\83XID\82ð\8bL\8fq\82·\82é\81B</p>\r
-\r
-<div align="right"><A href="#dhcp0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<div align="right"><a href="#dhcp0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <hr>\r
-\r
 <!-- Start:Apache2\82Ì\83C\83\93\83X\83g\81[\83\8b -->\r
-<h3>E&nbsp;Apache2\82Ì\83C\83\93\83X\83g\81[\83\8b<A class=anchor href="#apache0" name=apache0>\81õ</A></h3>\r
+<h3>E&nbsp;Apache2\82Ì\83C\83\93\83X\83g\81[\83\8b<a class="anchor" href="#apache0" name="apache0">\81õ</a></h3>\r
 <ul>\r
-       <li class="list_num"><A href="#apache1">\83C\83\93\83X\83g\81[\83\8b\81iports\81j</A></li>\r
-       <li class="list_num"><A href="#apache2">\94é\96§\8c®\81A\8fØ\96¾\8f\91\82Ì\8dì\90¬</A></li>\r
-       <li class="list_num"><A href="#apache3">SSL\82Ì\90Ý\92è</A></li>\r
-       <li class="list_num"><A href="#apache4">\82»\82Ì\91¼\82Ì\90Ý\92è\82Æ\93®\8dì\8am\94F</A></li>\r
+<li class="list_num"><a href="#apache1">\83C\83\93\83X\r
+\83g\81[\83\8b\81iports\81j</a></li>\r
+<li class="list_num"><a href="#apache2">\94é\96§\8c®\81A\r
+\8fØ\96¾\8f\91\82Ì\8dì\90¬</a></li>\r
+<li class="list_num"><a href="#apache3">SSL\82Ì\r
+\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#apache4">\82»\82Ì\91¼\82Ì\r
+\90Ý\92è\82Æ\93®\8dì\8am\94F</a></li>\r
 </ul>\r
-\r
 <!-- ************ 1 ************** -->\r
-<h4>E.1&nbsp;\83C\83\93\83X\83g\81[\83\8b\81iports\81j<A class=anchor href="#apache1" name=apache1>\81õ</A></h4>\r
-\r
+<h4>E.1&nbsp;\83C\83\93\83X\83g\81[\83\8b\81iports\81j<a class="anchor" href="#apache1" name="apache1">\81õ</a></h4>\r
 <p>IPv6\8b@\94\\82ð\8eg\82¤\8fê\8d\87\81AIPv6\82ð\83T\83|\81[\83g\82µ\82½Apache2\82ª\95K\97v\82Å\82 \82é\81B\82Ü\82½\81A\94F\8fØ\82ð\8ds\82¤\82±\82Æ\82©\82ç\r
 SSL\82ð\83T\83|\81[\83g\82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\81BApache2\82Í\95W\8f\80\82ÅSSL\82ð\83T\83|\81[\83g\82µ\82Ä\82¢\82é\82Ì\82Å\81Amod_ssl\r
 \82ð\95Ê\93r\83C\83\93\83X\83g\81[\83\8b\82·\82é\95K\97v\82Í\82È\82¢\81B</p>\r
-\r
 <p>\88È\89º\82É\81Aports\82ð\97\98\97p\82µ\82Ä\83C\83\93\83X\83g\81[\83\8b\82·\82é\8eè\8f\87\82ð\88È\89º\82É\8bL\82·\81B\83C\83\93\83X\83g\81[\83\8b\82Í"sysinstall"\83R\83}\83\93\83h\82ð\97p\82¢\82Ä\82à\97Ç\82¢\81B</p>\r
-\r
-<table><tr><td><pre># cd /usr/ports/www/apache22\r
-# make clean\r
-# make install clean ; rehash\r
-</pre></td></tr></table>\r
-\r
-\r
-<div align="right"><A href="#apache0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/ports/www/apache22<br># make clean<br># make install clean ; rehash</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#apache0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 2 ************** -->\r
-<h4>E.2&nbsp;\94é\96§\8c®\81A\8fØ\96¾\8f\91\82Ì\8dì\90¬<A class=anchor href="#apache2" name=apache2>\81õ</A></h4>\r
-\r
+<h4>E.2&nbsp;\94é\96§\8c®\81A\8fØ\96¾\8f\91\82Ì\8dì\90¬<a class="anchor" href="#apache2" name="apache2">\81õ</a></h4>\r
 <p>\r
-Apache2\82Å\81ASSL\82ð\97\98\97p\82·\82é\82½\82ß\82É\94é\96§\8c®\82Æ\8fØ\96¾\8f\91\82ð\97p\88Ó\82·\82é\95K\97v\82ª\82 \82é\81B\90³\8bK\82Ì\94F\8fØ\8bÇ\82©\82ç\94­\8ds\82³\82ê\82½\8fØ\96¾\8f\91\82ð\97p\88Ó\82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\82ª\81A\8e©\8cÈ\8f\90\96¼\82ð\8ds\82Á\82½\8fØ\96¾\8f\91\82Æ\94é\96§\8c®\82Å\82à\8dÅ\92á\8cÀ\82Ì\83Z\83L\83\85\83\8a\83e\83B\82ð\8am\95Û\82·\82é\82±\82Æ\82ª\89Â\94\\82Å\82 \82é\81B\88È\89º\82É\81A\94é\96§\8c®\82Æ\8fØ\96¾\8f\91\82ð\8dì\90¬\82·\82é\8eè\8f\87\82ð\8e¦\82·\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# cd /usr/local/etc/apache22\r
-# mkdir ssl.key ssl.crt\r
-# chmod 700 ssl.key ssl.crt\r
-\r
-# /usr/bin/openssl genrsa -out /usr/local/etc/apache22/server.key 1024\r
-</pre></td></tr></table>\r
-\r
+Apache2\82Å\81ASSL\82ð\97\98\97p\82·\82é\82½\82ß\82É\94é\96§\8c®\82Æ\8fØ\96¾\8f\91\82ð\97p\88Ó\82·\82é\95K\97v\82ª\82 \82é\81B\90³\8bK\82Ì\94F\8fØ\8bÇ\82©\82ç\94­\8ds\82³\82ê\82½\8fØ\96¾\8f\91\82ð\97p\88Ó\82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\82ª\81A\8e©\8cÈ\8f\90\96¼\r
+\82ð\8ds\82Á\82½\8fØ\96¾\8f\91\82Æ\94é\96§\8c®\82Å\82à\8dÅ\92á\8cÀ\82Ì\83Z\83L\83\85\83\8a\83e\83B\82ð\8am\95Û\82·\82é\82±\82Æ\82ª\89Â\94\\82Å\82 \82é\81B\88È\89º\82É\81A\94é\96§\8c®\82Æ\8fØ\96¾\8f\91\82ð\8dì\90¬\82·\82é\8eè\8f\87\82ð\8e¦\82·\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/local/etc/apache22<br># mkdir ssl.key ssl.crt<br># chmod 700 ssl.key ssl.crt<br><br># /usr/bin/openssl genrsa -out /usr/local/etc/apache22/server.key 1024</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\8fã\8bL\82É\82¨\82¢\82Ä\8dì\90¬\82µ\82½\94é\96§\8c®\82ð\97p\82¢\82Ä\8f\90\96¼\82µ\82½\8fØ\96¾\8f\91\82ð\8dì\90¬\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# /usr/bin/openssl req -new -x509 -days 365 \\r
-    -key /usr/local/etc/apache22/server.key \\r
-    -out /usr/local/etc/apache22/server.crt\r
-\r
-You are about to be asked to enter information that will be incorporated\r
-into your certificate request.\r
-What you are about to enter is what is called a Distinguished Name or a DN.\r
-There are quite a few fields but you can leave some blank\r
-For some fields there will be a default value,\r
-If you enter '.', the field will be left blank.\r
------\r
-Country Name (2 letter code) [AU]:JP\r
-State or Province Name (full name) [Some-State]:Saga\r
-Locality Name (eg, city) []:Saga-city\r
-Organization Name (eg, company) [Internet Widgits Pty Ltd]:Saga-university\r
-Organizational Unit Name (eg, subsection) []:Information Science\r
-Common Name (eg, YOUR name) []:opengate.og.saga-u.ac.jp\r
-Email Address []:administrator@opengate.og.saga-u.ac.jp\r
-\r
-Please enter the following 'extra' attributes\r
-to be sent with your certificate request\r
-A challenge password []:\r
-An optional company name []:\r
-\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#apache0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># /usr/bin/openssl req -new -x509 -days 365 \<br> -key /usr/local/etc/apache22/server.key \<br> -out /usr/local/etc/apache22/server.crt<br><br>You are about to be asked to enter information that will be incorporated<br>into your certificate request.<br>What you are about to enter is what is called a Distinguished Name or a DN.<br>There are quite a few fields but you can leave some blank<br>For some fields there will be a default value,<br>If you enter '.', the field will be left blank.<br>-----<br>Country Name (2 letter code) [AU]:JP<br>State or Province Name (full name) [Some-State]:Saga<br>Locality Name (eg, city) []:Saga-city<br>Organization Name (eg, company) [Internet Widgits Pty Ltd]:Saga-university<br>Organizational Unit Name (eg, subsection) []:Information Science<br>Common Name (eg, YOUR name) []:opengate.og.saga-u.ac.jp<br>Email Address []:administrator@opengate.og.saga-u.ac.jp<br><br>Please enter the following 'extra' attributes<br>to be sent with your certificate request<br>A challenge password []:<br>An optional company name []:<br></pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#apache0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 4 ************** -->\r
-<h4>E.4&nbsp SSL\82Ì\90Ý\92è<A class=anchor href="#apache3" name=apache3>\81õ</A></h4>\r
-\r
-\r
+<h4>E.4&nbsp; SSL\82Ì\90Ý\92è<a class="anchor" href="#apache3" name="apache3">\81õ</a></h4>\r
 <p>\88È\89º\82É/usr/local/etc/apache22/extra/httpd-ssl.conf\82É\82¨\82¯\82éSSL\90Ý\92è\97á\82ð\8e¦\82·\81B</p>\r
-\r
-<table><tr><td>ssl.conf\r
-</td></tr><tr><td><pre>\r
-&lt;VirtualHost _default_:443&gt;\r
-    DocumentRoot "/usr/local/www/apache22/data"\r
-    ServerName opengate.og.saga-u.ac.jp:443\r
-    ServerAdmin administrator@opengate.og.saga-u.ac.jp\r
-    ErrorLog "|/usr/bin/logger -p local6.info"\r
-    CustomLog "|/usr/bin/logger -p local5.info" combined\r
-\r
-    SSLEngine on\r
-    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL\r
-    SSLCertificateFile /usr/local/etc/apache22/server.crt\r
-    SSLCertificateKeyFile /usr/local/etc/apache22/server.key\r
-&lt;/VirtualHost&gt;\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>ssl.conf\r
+</td>\r
+</tr>\r
+<tr>\r
+<td>\r
+<pre>&lt;VirtualHost _default_:443&gt;<br> DocumentRoot "/usr/local/www/apache22/data"<br> ServerName opengate.og.saga-u.ac.jp:443<br> ServerAdmin administrator@opengate.og.saga-u.ac.jp<br> ErrorLog "|/usr/bin/logger -p local6.info"<br> CustomLog "|/usr/bin/logger -p local5.info" combined<br><br> SSLEngine on<br> SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL<br> SSLCertificateFile /usr/local/etc/apache22/server.crt<br> SSLCertificateKeyFile /usr/local/etc/apache22/server.key<br>&lt;/VirtualHost&gt;</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
-\r
-\8fã\8bL\82Ì\90Ý\92è\97á\82Í\81A\83o\81[\83`\83\83\83\8b\83z\83X\83g\82Ì\90Ý\92è\82Ì\82½\82ß\82Ì\83f\83B\83\8c\83N\83e\83B\83u\82Ì\82Ý\8bL\8fq\82µ\82Ä\82¢\82é\81B\82±\82Ì\91¼\82É\82à\91½\82­\82Ì\8d\80\96Ú\82ð\90Ý\92è\82µ\82È\82¯\82ê\82Î\82È\82ç\82È\82¢\82Ì\82Å\81AApache2\82Ì\90Ý\92è\82ð\8fn\92m\82µ\82½\8fã\82Å\90Ý\92è\82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\81B</p>\r
-\r
-<div align="right"><A href="#apache0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+\8fã\8bL\82Ì\90Ý\92è\97á\82Í\81A\83o\81[\83`\83\83\83\8b\83z\83X\83g\82Ì\90Ý\92è\82Ì\82½\82ß\82Ì\83f\83B\83\8c\83N\83e\83B\83u\82Ì\82Ý\8bL\8fq\82µ\82Ä\82¢\82é\81B\82±\82Ì\91¼\82É\82à\91½\82­\82Ì\8d\80\96Ú\82ð\90Ý\92è\82µ\82È\82¯\82ê\82Î\82È\82ç\82È\82¢\82Ì\82Å\81AApache2\82Ì\r
+\90Ý\92è\82ð\8fn\92m\82µ\82½\8fã\82Å\90Ý\92è\82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\81B</p>\r
+<div align="right"><a href="#apache0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 5 ************** -->\r
-<h4>E.5&nbsp;\82»\82Ì\91¼\82Ì\90Ý\92è\82Æ\93®\8dì\8am\94F<A class=anchor href="#apache4" name=apache4>\81õ</A></h4>\r
-\r
+<h4>E.5&nbsp;\82»\82Ì\91¼\82Ì\90Ý\92è\82Æ\93®\8dì\8am\94F<a class="anchor" href="#apache4" name="apache4">\81õ</a></h4>\r
 <p>\82»\82Ì\91¼\81A/usr/local/etc/apache22/httpd.conf\82É\82¨\82¢\82Ä\88È\89º\82Ì\90Ý\92è\82ð\82·\82é\81B</p>\r
-\r
-<p>Opengate\82Å\82Í\81A\97\98\97p\8eÒ\92[\96\96\82©\82ç\91\97\90M\82³\82ê\82Ä\82­\82éHTTP\83\8a\83N\83G\83X\83g\82ð\81AOpengate\82ª\8e\9d\82ÂWeb\83T\81[\83o\82É\93]\91\97\82·\82é\82±\82Æ\82É\82æ\82Á\82Ä\81A\94F\8fØ\83y\81[\83W\82ð\92ñ\8b\9f\82µ\82Ä\82¢\82é\81B\82±\82Ì\82½\82ß\81A\97\98\97p\8eÒ\92[\96\96\82©\82ç\91\97\90M\82³\82ê\82Ä\82­\82éHTTP\83\8a\83N\83G\83X\83g\82Í\97\\8aú\82·\82é\82±\82Æ\82ª\82Å\82«\82È\82¢\81B\82æ\82Á\82Ä\81A\91\8dÝ\82µ\82È\82¢\83t\83@\83C\83\8b\82É\91Î\82·\82éHTTP\83\8a\83N\83G\83X\83g\82É\91Î\82µ\82Ä\82à\81A\94F\8fØ\83y\81[\83W\82ð\95Ô\82·\82½\82ß\82É\81AHTTP_ERROR 404(File Not Found)\82ª\94­\90\82µ\82½\8fê\8d\87\82É\81ADocumentRoot\82ð\95Ô\82·\82æ\82¤\82É\90Ý\92è\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-ErrorDocument 404 /\r
-</pre></td></tr></table>\r
-\r
+<p>Opengate\82Å\82Í\81A\97\98\97p\8eÒ\92[\96\96\82©\82ç\91\97\90M\82³\82ê\82Ä\82­\82éHTTP\83\8a\83N\83G\83X\83g\82ð\81AOpengate\82ª\8e\9d\82ÂWeb\83T\81[\83o\82É\93]\91\97\82·\82é\82±\82Æ\82É\82æ\82Á\r
+\82Ä\81A\94F\8fØ\83y\81[\r
+\83W\82ð\92ñ\8b\9f\82µ\82Ä\82¢\82é\81B\82±\82Ì\82½\82ß\81A\97\98\97p\8eÒ\92[\96\96\82©\82ç\91\97\90M\82³\82ê\82Ä\82­\82éHTTP\83\8a\83N\83G\83X\83g\82Í\97\\8aú\82·\82é\82±\82Æ\82ª\82Å\82«\82È\82¢\81B\82æ\82Á\82Ä\81A\91\8dÝ\82µ\82È\82¢\83t\83@\83C\83\8b\82É\91Î\82·\82éHTTP\83\8a\r
+\83N\83G\83X\83g\82É\91Î\82µ\82Ä\82à\81A\94F\8fØ\83y\81[\83W\82ð\95Ô\82·\82½\82ß\82É\81AHTTP_ERROR 404(File Not\r
+Found)\82ª\94­\90\82µ\82½\8fê\8d\87\82É\81ADocumentRoot\82ð\95Ô\82·\82æ\82¤\82É\90Ý\92è\82·\82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>ErrorDocument 404 /</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
 \82Ü\82½\81ACGI\83v\83\8d\83O\83\89\83\80\82Ì\93®\8dì\82ð\8b\96\89Â\82·\82é\81B</p>\r
-<table><tr><td><pre>\r
-&lt;Directory "/usr/local/www/cgi-bin"&gt;\r
-    ...\r
-    Options ExecCGI\r
-    ...\r
-&lt;/Directory&gt;\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>&lt;Directory "/usr/local/www/cgi-bin"&gt;<br> ...<br> Options ExecCGI<br> ...<br>&lt;/Directory&gt;</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
 \89º\82Ì\90Ý\92è\82ð\97L\8cø\82É\82·\82é\81B\r
-<table><tr><td><pre>\r
-AddHandler cgi-script .cgi\r
-AddHandler type-map .var\r
-</pre></td></tr></table>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>AddHandler cgi-script .cgi<br>AddHandler type-map .var</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 </p>\r
-\r
-\r
 <p>\r
 index.html.var\82ðDirectoryIndex\82É\92Ç\89Á\82·\82é\81B\r
-<table><tr><td><pre>\r
-DirectoryIndex index.html.var index.html\r
-</pre></td></tr></table>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>DirectoryIndex index.html.var index.html</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 </p>\r
-\r
 <p>\r
 SSL\90Ý\92è\83t\83@\83C\83\8b\82ð\83C\83\93\83N\83\8b\81[\83h\82·\82é\81B\r
-<table><tr><td><pre>\r
-Include etc/apache22/extra/httpd-ssl.conf\r
-</pre></td></tr></table>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>Include etc/apache22/extra/httpd-ssl.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 </p>\r
-\r
 <p>\r
 \83T\81[\83o\96¼\82ð\90Ý\92è\82·\82é\81B\r
-<table><tr><td><pre>\r
-ServerName opengate.og.saga-u.ac.jp\r
-</pre></td></tr></table>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>ServerName opengate.og.saga-u.ac.jp</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 </p>\r
-\r
 <p>\r
 \93ú\96{\8cê\82ª\89»\82¯\82é\8fê\8d\87\82É\82Í\81A\95\8e\9a\83Z\83b\83g\82Ì\90Ý\92è\82ð\83R\83\81\83\93\83g\83A\83E\83g\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-#AddDefaultCharset ISO-8859-1\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#AddDefaultCharset ISO-8859-1</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\83C\83\93\83X\83g\81[\83\8b\8dì\8bÆ\82ª\8a®\97¹\82µ\82½\8cã\81A"apachectl start"\83R\83}\83\93\83h\82Å\8bN\93®\82µ\82Ä\93®\82­\8e\96\82ð\8am\94F\82·\82é\81B\r
 SSL\82Å\82Ì\83A\83N\83Z\83X\82â\91\8dÝ\82µ\82È\82¢\83t\83@\83C\83\8b\82Ì\97v\8b\81\82É\82à\91Î\89\9e\82Å\82«\82Ä\82¢\82é\82©\82à\8am\94F\82·\82é\81B\r
 \82»\82Ì\8cã\81AApache2\82Ì\8bN\93®\82ÆSSL\82ð\97L\8cø\82É\82·\82é\82½\82ß\82É\81A\88È\89º\82Ì\8d\80\96Ú\82ð/etc/rc.conf\82É\8bL\8fq\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-apache22_enable="YES"\r
-apache22ssl_enable="YES"\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>apache22_enable="YES"<br>apache22ssl_enable="YES"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
-\82à\82µ"Failed to enable the 'httpready' Accept Filter"\82Ì\83\81\83b\83Z\81[\83W\82ª\8fo\82½\8e\9e\82Í\81A/boot/loader.conf\82É\r
+\82à\82µ"Failed to enable the 'httpready' Accept\r
+Filter"\82Ì\83\81\83b\83Z\81[\83W\82ª\8fo\82½\8e\9e\82Í\81A/boot/loader.conf\82É\r
 \88È\89º\82ð\8bL\8fq\82·\82é\81B\r
-<table><tr><td><pre>\r
-accf_http_load="YES"\r
-</pre></td></tr></table>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>accf_http_load="YES"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 </p>\r
-\r
-<div align="right"><A href="#apache0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<div align="right"><a href="#apache0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <hr>\r
-\r
-\r
 <!-- Start:SQLite3\82Ì\83C\83\93\83X\83g\81[\83\8b -->\r
-<h3>F&nbsp;SQLite3\82Ì\83C\83\93\83X\83g\81[\83\8b<A class=anchor href="#sqlite0" name=sqlite0>\81õ</A></h3>\r
+<h3>F&nbsp;SQLite3\82Ì\83C\83\93\83X\83g\81[\83\8b<a class="anchor" href="#sqlite0" name="sqlite0">\81õ</a></h3>\r
 <ul>\r
-       <li class="list_num"><A href="#sqlite1">\83C\83\93\83X\83g\81[\83\8b</A></li>\r
-       <li class="list_num"><A href="#sqlite2">\93®\8dì\8am\94F</A></li>\r
+<li class="list_num"><a href="#sqlite1">\83C\83\93\83X\r
+\83g\81[\83\8b</a></li>\r
+<li class="list_num"><a href="#sqlite2">\93®\8dì\8am\94F</a></li>\r
 </ul>\r
-\r
 <!-- ************ 1 ************** -->\r
-<h4>F.1&nbsp;\83C\83\93\83X\83g\81[\83\8b<A class=anchor href="#sqlite1" name=sqlite1>\81õ</A></h4>\r
-\r
-\r
+<h4>F.1&nbsp;\83C\83\93\83X\83g\81[\83\8b<a class="anchor" href="#sqlite1" name="sqlite1">\81õ</a></h4>\r
 <p>SQLite\82Ì\83T\83C\83g\82©\82ç\83_\83E\83\93\83\8d\81[\83h\82µ\82½\83A\81[\83J\83C\83u\82ð\89ð\93\80\82µ\81A\83C\83\93\83X\83g\81[\83\8b\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# tar xzvf sqlite-amalgamation-3.xx.xx.tar.gz\r
-# cd sqlite-3.xx.xx\r
-# ./configure\r
-# make\r
-# make install\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#sqlite0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># tar xzvf sqlite-amalgamation-3.xx.xx.tar.gz<br># cd sqlite-3.xx.xx<br># ./configure<br># make<br># make install</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#sqlite0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 2 ************** -->\r
-<h4>F.2&nbsp;\93®\8dì\8am\94F<A class=anchor href="#sqlite2" name=sqlite2>\81õ</A></h4>\r
-\r
+<h4>F.2&nbsp;\93®\8dì\8am\94F<a class="anchor" href="#sqlite2" name="sqlite2">\81õ</a></h4>\r
 <p>\r
 \88È\89º\82Ì\83R\83}\83\93\83h\82Å\83C\83\93\83X\83g\81[\83\8b\82ð\8am\94F\82·\82é\81B\r
-\r
-<table><tr><td><pre>\r
-# sqlite3\r
-SQLite version 3.xx.xx\r
-Enter ".help" for instructions\r
-Enter SQL statements terminated with a ";"\r
-sqlite&gt; .quit\r
-#\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#sqlite0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># sqlite3<br>SQLite version 3.xx.xx<br>Enter ".help" for instructions<br>Enter SQL statements terminated with a ";"<br>sqlite&gt; .quit<br>#</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+</p>\r
+<div align="right"><a href="#sqlite0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <hr>\r
-\r
 <!-- Start:Opengate\82Ì\83C\83\93\83X\83g\81[\83\8b -->\r
-<h3>G&nbsp;Opengate\82Ì\83C\83\93\83X\83g\81[\83\8b<A class=anchor href="#opengate0" name=opengate0>\81õ</A></h3>\r
-\r
-       <ul>\r
-               <li class="list_num"><A href="#opengate1">Opengate\83p\83b\83P\81[\83W</A></li>\r
-               <li class="list_num"><A href="#opengate2">\83C\83\93\83X\83g\81[\83\8b</A></li>\r
-               <li class="list_num"><A href="#opengate3">\90Ý\92è\83t\83@\83C\83\8b\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#opengate4">ipfw\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#opengate5">syslog\82Ì\90Ý\92è</A></li>\r
-               <li class="list_num"><A href="#opengate6">\93®\8dì\8am\94F</A></li>     \r
-               <li class="list_num"><A href="#opengate7">\83y\81[\83W\82Ì\8fC\90³</A></li>\r
-               <li class="list_num"><A href="#opengate8">sqlite3\82Ì\90Ý\92è</A></li>\r
+<h3>G&nbsp;Opengate\82Ì\83C\83\93\83X\83g\81[\83\8b<a class="anchor" href="#opengate0" name="opengate0">\81õ</a></h3>\r
+<ul>\r
+<li class="list_num"><a href="#opengate1">Opengate\r
+\83p\83b\83P\81[\83W</a></li>\r
+<li class="list_num"><a href="#opengate2">\83C\83\93\r
+\83X\83g\81[\83\8b</a></li>\r
+<li class="list_num"><a href="#opengate3">\90Ý\92è\r
+\83t\83@\83C\83\8b\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#opengate4">ipfw\r
+\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#opengate5">syslog\r
+\82Ì\90Ý\92è</a></li>\r
+<li class="list_num"><a href="#opengate6">\93®\8dì\r
+\8am\94F</a></li>\r
+<li class="list_num"><a href="#opengate7">\83y\81[\r
+\83W\82Ì\8fC\90³</a></li>\r
+<li class="list_num"><a href="#opengate8">sqlite3\r
+\82Ì\90Ý\92è</a></li>\r
 </ul>\r
-       \r
 <!-- ************1************* -->\r
-<h4>G.1&nbsp;Opengate\83p\83b\83P\81[\83W<A class=anchor href="#opengate1" name=opengate1>\81õ</A></h4>\r
-\r
+<h4>G.1&nbsp;Opengate\83p\83b\83P\81[\83W<a class="anchor" href="#opengate1" name="opengate1">\81õ</a></h4>\r
 <p>Opengate\82Ì\83p\83b\83P\81[\83W\82ð\93K\93\96\82È\83f\83B\83\8c\83N\83g\83\8a\82É\93W\8aJ\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# tar xzvf opengatexxxx.tar.gz\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># tar xzvf opengatexxxx.tar.gz</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\83p\83b\83P\81[\83W\82É\82Í\88È\89º\82Ì\83f\83B\83\8c\83N\83g\83\8a\82ª\8aÜ\82Ü\82ê\82é\81B</p>\r
-\r
 <table>\r
-<tr><td><pre>\r
-doc\81F\8ae\8eí\95\8f\91\r
-conf\81F\90Ý\92è\83t\83@\83C\83\8b\81A\83t\83@\83C\83A\83E\83H\81[\83\8b\83X\83N\83\8a\83v\83g\r
-javahtml\81F\83N\83\89\83C\83A\83\93\83g\83v\83\8d\83O\83\89\83\80\81AHTML\83t\83@\83C\83\8b\r
-opengatesrv\81F\83T\81[\83oCGI\83v\83\8d\83O\83\89\83\80\r
-tools: \95t\89Á\83c\81[\83\8b\r
-ezxml: XML\83p\81[\83T (copyright Aaron Voisine)\r
-</pre>\r
-</td></tr>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>doc\81F\8ae\8eí\95\8f\91<br>conf\81F\90Ý\92è\83t\83@\83C\83\8b\81A\83t\83@\83C\83A\83E\83H\81[\83\8b\83X\83N\83\8a\83v\83g<br>javahtml\81F\83N\83\89\83C\83A\83\93\83g\83v\83\8d\83O\83\89\83\80\81AHTML\83t\83@\83C\83\8b<br>opengatesrv\81F\83T\81[\83oCGI\83v\83\8d\83O\83\89\83\80<br>tools: \95t\89Á\83c\81[\83\8b<br>ezxml: XML\83p\81[\83T (copyright Aaron Voisine)</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
 </table>\r
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
-<h4>G.2&nbsp;\83R\83\93\83p\83C\83\8b<A class=anchor href="#opengate2" name=opengate2>\81õ</A></h4>\r
-\r
-<p>\r
-\r
-opengatesrv/Makefile\82ð\8am\94F\82·\82é\81B\82à\82µ\88È\89º\82Ì\83f\83B\83\8c\83N\83g\83\8a\82ª\88Ù\82È\82Á\82Ä\82¢\82ê\82Î\95Ï\8dX\82·\82é\81B</p>\r
-\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
+<h4>G.2&nbsp;\83R\83\93\83p\83C\83\8b<a class="anchor" href="#opengate2" name="opengate2">\81õ</a></h4>\r
+<p>\93W\8aJ\82µ\82½\83t\83@\83C\83\8b\82Ì\92\86\82Ìopengatesrv/Makefile\82ð\8am\94F\82·\82é\81B\82à\82µ\88È\89º\82Ì\83f\83B\83\8c\83N\83g\83\8a\82ª\88Ù\82È\82Á\82Ä\82¢\82ê\82Î\95Ï\8dX\82·\82é\81B</p>\r
 <table>\r
-<tr><td><pre>\r
-HTMLTOP = /usr/local/www/apache22\r
-DOCDIR = /data\r
-CGIDIR = /cgi-bin\r
-OPENGATEDIR = /opengate\r
-CONFIGPATH = /etc/opengate\r
-</pre>\r
-</td></tr>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>HTMLTOP = /usr/local/www/apache22<br>DOCDIR = /data<br>CGIDIR = /cgi-bin<br>OPENGATEDIR = /opengate<br>CONFIGPATH = /etc/opengate</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
 </table>\r
-\r
-\83R\83\93\83p\83C\83\8b\82Æ\83C\83\93\83X\83g\81[\83\8b\82ð\8ds\82¤\81B\r
-\r
-<table><tr><td><pre>\r
-# make clean\r
-# make install\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+\83R\83\93\83p\83C\83\8b\82Æ\83C\83\93\83X\83g\81[\83\8b\82ðopengatesrv\83f\83B\83\8c\83N\83g\83\8a\82É\82¨\82¢\82Ä\8ds\82¤\81B\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># make clean<br># make install</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 3 ************** -->\r
-<h4>G.3&nbsp;\90Ý\92è\83t\83@\83C\83\8b\82Ì\90Ý\92è<A class=anchor href="#opengate3" name=opengate3>\81õ</A></h4>\r
-\r
-<p>\90Ý\92è\83t\83@\83C\83\8b/etc/opengate/opengatesrv.conf.sample\82ª\8dì\90¬\82³\82ê\82Ä\82¢\82é\82Ì\82Å\81A\82±\82ê\82ð/etc/opengate/opengtesrv.conf\82É\83R\83s\81[\82µ\82Ä\95Ï\8dX\82ð\89Á\82¦\82é\81B\95K\90{\95Ï\8dX\89Ó\8f\8a\82Í\88È\89º\82Ì\92Ê\82è\82Å\82 \82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-       &lt;OpengateServerName&gt;opengate.og.saga-u.ac.jp&lt;/OpengateServerName&gt;\r
-\r
-       &lt;AuthServer&gt;\r
-               &lt;Protocol&gt;pop3s&lt;/Protocol&gt;\r
-               &lt;Address&gt;192.168.0.2&lt;/Address&gt;\r
-       &lt;/AuthServer&gt;\r
-</pre></td></tr></table>\r
-\r
-<p>&lt;OpengateServerName&gt;\82É\82Í\81A\83T\81[\83o\82ÌHOSTNAME(FQDN)\82à\82µ\82­\82ÍIP\83A\83h\83\8c\83X\82ð\8bL\82·\81BIPv6\8b@\94\\82ð\8eg\82¤\82Æ\82«\82É\82Í\81AIPv4\82ÆIPv6\82Ì\97¼\95û\82ª\93o\98^\82³\82ê\82½FQDN\82Æ\82·\82é\95K\97v\82ª\82 \82é\81B</p>\r
-<p>&lt;AuthServer&gt;\82É\82Í\81A\94F\8fØ\83T\81[\83o\82Ì\90Ý\92è\82ð\8bL\82·\81B\8ae\8eí\83v\83\8d\83g\83R\83\8b\82ð\83T\83|\81[\83g\82µ\82Ä\82¢\82é\82ª\81A\8fÚ\8d×\82Í\90Ý\92è\83t\83@\83C\83\8b\82ð\8eQ\8fÆ\82Ì\82±\82Æ\81BOpengate\83T\81[\83o\82Æ\94F\8fØ\83T\81[\83o\82Ì\96â\91è\82ð\90Ø\82è\95ª\82¯\82é\82½\82ß\82É\81A\8dÅ\8f\89\82Í\88È\89º\82Ì\81u\91S\82Ä\8b\96\89Â\81v\82ð\8e\8e\8ds\82·\82é\82Æ\95ª\82©\82è\82â\82·\82¢\81B</p>\r
-\r
-<table><tr><td><pre>\r
- ****\89^\97p\82Å\82Í\97p\82¢\82È\82¢\82±\82Æ****\r
-       &lt;AuthServer&gt;\r
-               &lt;Protocol&gt;accept&lt;/Protocol&gt; \r
-       &lt;/AuthServer&gt;\r
-</pre></td></tr></table>\r
-\r
-<p>\90Ý\92è\83t\83@\83C\83\8b\82ÍXML\8c`\8e®\82Å\82 \82é\81B\83R\83\81\83\93\83g\82Í&lt;!-- Comment String --&gt;\82Æ\8f\91\82­\81B#\83}\81[\83N\82Í\83R\83\81\83\93\83g\82ð\88Ó\96¡\82µ\82È\82¢\82Ì\82Å\81A\83R\83\81\83\93\83g\83A\83E\83g\8e\9e\82É\82Í\92\8d\88Ó\82·\82é\82±\82Æ\81B</p>\r
-\r
-<p>Opengate\82Í"userid@extid"\82Ì\83p\83^\81[\83\93\82É\82æ\82Á\82Ä\94F\8fØ\82ð\90Ø\82è\91Ö\82¦\82é\82±\82Æ\82ª\82Å\82«\82é\81B\82±\82ê\82É\82æ\82è\81A\95\94\96å\95Ê\83\86\81[\83U\82â\8aO\95\94\83\86\81[\83U\82É\91Î\82·\82é\94F\8fØ\82ð\95ª\97£\82Å\82«\82é\81B\8fÚ\8d×\82Í\90Ý\92è\83t\83@\83C\83\8b\82ð\8eQ\8fÆ\82Ì\8e\96\81B</p>\r
-\r
+<h4>G.3&nbsp;\90Ý\92è\83t\83@\83C\83\8b\82Ì\90Ý\92è<a class="anchor" href="#opengate3" name="opengate3">\81õ</a></h4>\r
+<p>\90Ý\92è\83t\83@\83C\83\8b/etc/opengate/opengatesrv.conf.sample\82ª\8dì\90¬\82³\82ê\82Ä\82¢\82é\82Ì\82Å\81A\82±\82ê\82ð\r
+/etc/opengate/opengtesrv.conf\82É\83R\83s\81[\82µ\82Ä\95Ï\8dX\82ð\89Á\82¦\82é\81B</p>\r
+<p><table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>cd /etc/opengate<br>cp opengatesrv.conf.sample opengatesrv.conf<br>vi opengatesrv.conf</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+</p>\r
+<p>\95K\90{\95Ï\8dX\89Ó\8f\8a\82Í\88È\89º\82Ì\95\94\95ª\82Å\82 \82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>  &lt;OpengateServerName&gt;opengate.og.saga-u.ac.jp&lt;/OpengateServerName&gt;<br><br>   &lt;AuthServer&gt;<br>  &lt;Protocol&gt;pop3s&lt;/Protocol&gt;<br>      &lt;Address&gt;192.168.0.2&lt;/Address&gt;<br>  &lt;/AuthServer&gt;</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>&lt;OpengateServerName&gt;\82É\82Í\81A\83T\81[\83o\82ÌHOSTNAME(FQDN)\82à\82µ\82­\82ÍIP\83A\83h\r
+\83\8c\83X\82ð\8bL\82·\81BIPv6\8b@\94\\82ð\8eg\82¤\82Æ\82«\82É\82Í\81AIPv4\82ÆIPv6\82Ì\97¼\95û\82ª\93o\98^\82³\82ê\82½FQDN\82Æ\82·\82é\95K\97v\82ª\82 \82é\81B</p>\r
+<p>&lt;AuthServer&gt;\82É\82Í\81A\94F\8fØ\83T\81[\83o\82Ì\90Ý\92è\82ð\8bL\82·\81B\8ae\8eí\83v\83\8d\83g\83R\83\8b\82ð\83T\83|\81[\83g\82µ\82Ä\82¢\82é\82ª\81A\8fÚ\8d×\82Í\90Ý\r
+\92è\83t\83@\83C\83\8b\82ð\8eQ\8fÆ\82Ì\82±\82Æ\81BOpengate\83T\81[\83o\82Æ\94F\8fØ\83T\81[\83o\82Ì\96â\91è\82ð\90Ø\82è\95ª\82¯\82é\82½\82ß\82É\81A\8dÅ\8f\89\82Í\88È\89º\82Ì\81u\91S\82Ä\8b\96\89Â\81v\82ð\8e\8e\8ds\82·\82é\82Æ\95ª\82©\82è\82â\82·\82¢\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre> ****\89^\97p\82Å\82Í\97p\82¢\82È\82¢\82±\82Æ****<br> &lt;AuthServer&gt;<br>  &lt;Protocol&gt;accept&lt;/Protocol&gt; <br>    &lt;/AuthServer&gt;</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>\90Ý\92è\83t\83@\83C\83\8b\82ÍXML\8c`\8e®\82Å\82 \82é\81B\83R\83\81\83\93\83g\82Í&lt;!-- Comment String\r
+--&gt;\82Æ\8f\91\82­\81B#\83}\81[\83N\82Í\83R\83\81\83\93\83g\82ð\88Ó\96¡\82µ\82È\82¢\82Ì\82Å\81A\83R\83\81\83\93\83g\83A\83E\83g\8e\9e\82É\82Í\92\8d\88Ó\82·\82é\82±\82Æ\81B</p>\r
+<p>Opengate\82Í"userid@extid"\82Ì\83p\83^\81[\83\93\82É\82æ\82Á\82Ä\94F\8fØ\82ð\90Ø\82è\91Ö\82¦\82é\82±\82Æ\82ª\82Å\82«\82é\81B\82±\82ê\82É\82æ\82è\81A\95\94\96å\95Ê\83\86\81[\83U\82â\8aO\95\94\r
+\83\86\81[\83U\82É\91Î\82·\82é\94F\8fØ\82ð\95ª\97£\82Å\82«\82é\81B\8fÚ\8d×\82Í\90Ý\92è\83t\83@\83C\83\8b\82ð\8eQ\8fÆ\82Ì\8e\96\81B</p>\r
 <p>Opengate\82Í\81A\8dÅ\8f\89\82Ì\94F\8fØ\83T\81[\83o\82ª\95Ô\93\9a\82µ\82È\82¢\8e\9e\81A\8e\9f\82Ì\83T\81[\83o\82Ö\96â\82¢\8d\87\82í\82¹\82é\90Ý\92è\82ª\82Å\82«\82é\81B\8fÚ\8d×\82Í\90Ý\92è\83t\83@\83C\83\8b\82ð\8eQ\8fÆ\82Ì\8e\96\81B</p>\r
-\r
-\r
-<p>\92\8d\88Ó\81F\95s\97v\82Ì\8fê\8d\87\82àIPv6\8aÖ\98A\82Ì\90Ý\92è\82ð\8dí\8f\9c\82µ\82È\82¢\82±\82Æ\81BIPv6\83A\83h\83\8c\83X\82Å\82Ì\83A\83N\83Z\83X\82Í\81AIPv6\82É\91Î\89\9e\82µ\82½FQDN\82ª\90Ý\92è\82³\82ê\82½\82Æ\82«\82É\8eÀ\8ds\82³\82ê\82é\81B</p>\r
-\r
-       \r
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<p>\92\8d\88Ó\81F\95s\97v\82Ì\8fê\8d\87\82àIPv6\8aÖ\98A\82Ì\90Ý\92è\82ð\8dí\8f\9c\82µ\82È\82¢\82±\82Æ\81BIPv6\83A\83h\83\8c\83X\82Å\82Ì\83A\83N\83Z\83X\82Í\81AIPv6\82É\91Î\89\9e\82µ\82½FQDN\82ª\90Ý\92è\82³\82ê\82½\82Æ\r
+\82«\82É\8eÀ\8ds\82³\82ê\82é\81B</p>\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 4 ************** -->\r
-<h4>G.4&nbsp;ipfw\82Ì\90Ý\92è<A class=anchor href="#opengate4" name=opengate4>\81õ</A></h4>\r
-\r
+<h4>G.4&nbsp;ipfw\82Ì\90Ý\92è<a class="anchor" href="#opengate4" name="opengate4">\81õ</a></h4>\r
 <p>\r
 Opengate\82Ì\93®\8dì\82Ì\82½\82ß\82É\93K\90Ø\82É\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\83\8b\81[\83\8b\82ð\8bL\8fq\82µ\82È\82¯\82ê\82Î\82È\82ç\82È\82¢\81B</p>\r
-\r
 <p>IPv4/IPv6\82Ì\97¼\8eÒ\82ðipfw\83V\83X\83e\83\80\82Å\90§\8cä\82·\82é\81B\82»\82Ì\83t\83@\83C\83A\83E\83H\81[\83\8b\82Ì\83\8b\81[\83\8b\90Ý\92è\82Ì\83X\83N\83\8a\83v\83g\97á\82ð\81A\r
 "/etc/opengate/rc.firewall.sample"\82É\97p\88Ó\82µ\82Ä\82¢\82é\81B</p>\r
-<p>\82±\82ê\82ð"/etc/opengate/rc.firewall"\82É\83R\83s\81[\82µ\82Ä\81AIP\83A\83h\83\8c\83X\93\99\82ð\8fC\90³\82·\82é\81BIPv6\82ð\8eg\82í\82È\82¢\8fê\8d\87\81AIPv6\83A\83h\83\8c\83X\82É\82Ílocalhost(*net6="0", *ip6="::1")\82ð\90Ý\92è\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# cd /etc/opengate\r
-# cp rc.firewall.sample rc.firewall\r
-# vi rc.firewall\r
-</pre></td></tr></table>\r
-\r
-<p>/erc/rc.conf\93à\82Ì\83t\83@\83C\83A\83E\83H\81[\83\8b\90Ý\92è\82ð\88È\89º\82Ì\82æ\82¤\82É\95Ï\8dX\82·\82é\81B\82±\82Ì\90Ý\92è\8cã\82Í\81A\83t\83@\83C\83A\83E\83H\81[\83\8b\82ª\8c´\91¥\95Â\8d½\82É\82È\82é\82Ì\82Å\92\8d\88Ó\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-firewall_enable="YES"\r
-firewall_script="/etc/opengate/rc.firewall"\r
-</pre></td></tr></table>\r
-\r
-\r
-<p>\8eÀ\8dÛ\82ÉOpengate\82ð\93±\93ü\82·\82é\8dÛ\82É\82Í\81Aipfw\82Ì\93®\8dì\82ð\8fn\92m\82µ\82½\8fã\81A\8ae\8eí\83l\83b\83g\83\8f\81[\83N\82É\93K\82µ\82½\83t\83@\83C\83A\83E\83H\81[\83\8b\82ð\90Ý\92u\82·\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\81B</p>\r
-\r
+<p>\82±\82ê\82ð"/etc/opengate/rc.firewall"\82É\83R\83s\81[\82µ\82Ä\81AIP\83A\83h\83\8c\83X\93\99\82ð\8fC\90³\82·\82é\81BIPv6\82ð\8eg\82í\82È\82¢\8fê\8d\87\81A\r
+IPv6\83A\83h\83\8c\83X\82É\82Ílocalhost(*net6="0", *ip6="::1")\82ð\90Ý\92è\82·\82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /etc/opengate<br># cp rc.firewall.sample rc.firewall<br># vi rc.firewall</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>/erc/rc.conf\93à\82Ì\83t\83@\83C\83A\83E\83H\81[\83\8b\90Ý\92è\82ð\88È\89º\82Ì\82æ\82¤\82É\95Ï\8dX\82·\82é\81B\82±\82Ì\90Ý\92è\8cã\82Í\81A\83t\83@\83C\83A\83E\83H\81[\83\8b\82ª\8c´\91¥\95Â\8d½\82É\82È\82é\82Ì\82Å\92\8d\88Ó\r
+\82·\82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>firewall_enable="YES"<br>firewall_script="/etc/opengate/rc.firewall"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>\8eÀ\8dÛ\82ÉOpengate\82ð\93±\93ü\82·\82é\8dÛ\82É\82Í\81Aipfw\82Ì\93®\8dì\82ð\8fn\92m\82µ\82½\8fã\81A\8ae\8eí\83l\83b\83g\83\8f\81[\83N\82É\93K\82µ\82½\83t\83@\83C\83A\83E\83H\81[\83\8b\82ð\90Ý\92u\82·\82é\82±\82Æ\82ª\96]\r
+\82Ü\82µ\82¢\81B</p>\r
 <p>\r
-Opengate\82Í\81A\94F\8fØ\82ð\92Ê\89ß\82µ\82½\92[\96\96\82É\91Î\82µ\82Ä\81A\8b\96\89Â\83\8b\81[\83\8b(\94Ô\8d\86\81F10000-40000)\82ð\92Ç\89Á\81^\8dí\8f\9c\82·\82é\81B\82Ü\82½\81A\8dÅ\8f\89\82©\82ç\97D\90æ\8f\87\88Ê\82Ì\92á\82¢\88Ê\92u(\94Ô\8d\86\81F60000)\82É\81A\83t\83H\83\8f\81[\83h\83\8b\81[\83\8b\82ª\90Ý\92è\82³\82ê\82Ä\82¢\82é\81B\82æ\82Á\82Ä\81A\8b\96\89Â\92[\96\96\82Ì\83p\83P\83b\83g\82Í\83Q\81[\83g\83E\83F\83C\82ð\92Ê\89ß\82µ\81A\82»\82ê\88È\8aO\82Ì\92[\96\96\82ÌWeb\83A\83N\83Z\83X\82Å\82Í\94F\8fØ\83y\81[\83W\82ª\95\\8e¦\82³\82ê\82é\81B\r
+Opengate\82Í\81A\94F\8fØ\82ð\92Ê\89ß\82µ\82½\92[\96\96\82É\91Î\82µ\82Ä\81A\8b\96\89Â\83\8b\81[\83\8b(\94Ô\8d\86\81F10000-40000)\82ð\92Ç\89Á\81^\8dí\8f\9c\82·\82é\81B\82Ü\82½\81A\8dÅ\8f\89\82©\82ç\97D\90æ\8f\87\88Ê\82Ì\92á\82¢\88Ê\92u(\94Ô\r
+\8d\86\81F60000)\82É\81A\83t\83H\83\8f\81[\83h\83\8b\81[\83\8b\82ª\90Ý\92è\82³\82ê\82Ä\82¢\82é\81B\82æ\82Á\82Ä\81A\8b\96\89Â\92[\96\96\82Ì\83p\83P\83b\83g\82Í\83Q\81[\83g\83E\83F\83C\82ð\92Ê\89ß\82µ\81A\82»\82ê\88È\8aO\82Ì\92[\96\96\82ÌWeb\83A\83N\83Z\83X\82Å\82Í\94F\8fØ\r
+\83y\81[\83W\82ª\95\\8e¦\82³\82ê\82é\81B</p>\r
+<p>/etc/opengate\82É\82Í\81A\82à\82¤\88ê\82Âipfwctrl.pl.sample\82ª\82 \82é\81B\82±\82ê\82Íipfw\90§\8cä\82Ìperl\83X\83N\83\8a\83v\83g\82Å\82 \r
+\82é\82ªdefault\82Å\82Í\8eg\97p\82µ\82È\82¢\81B\r
 </p>\r
-\r
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
-\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 5 ************** -->\r
-<h4>G.5&nbsp;syslog\82Ì\90Ý\92è<A class=anchor href="#opengate5" name=opengate5>\81õ</A></h4>\r
-\r
+<h4>G.5&nbsp;syslog\82Ì\90Ý\92è<a class="anchor" href="#opengate5" name="opengate5">\81õ</a></h4>\r
 <p>SYSLOG\82É\82æ\82é\83\8d\83O\8bL\98^\82ð\97L\8cø\82É\82·\82é\82½\82ß\82É\81A/etc/syslog.conf\82É\88È\89º\82Ì\90Ý\92è\82ð\8ds\82¤\81B</p>\r
-\r
-<table><tr><td><pre>\r
-local1.*  /var/log/opengate.log\r
-        \81ª \82±\82±\82ÍTAB\82Å\8bæ\90Ø\82é\82±\82Æ\81B\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>local1.* /var/log/opengate.log<br> \81ª \82±\82±\82ÍTAB\82Å\8bæ\90Ø\82é\82±\82Æ\81B</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\90Ý\92è\82Æ\91Î\89\9e\82µ\82½\83\8d\83O\83t\83@\83C\83\8b\82ð\8dì\82é\81B\82±\82Ì\83t\83@\83C\83\8b\82Í\97\98\97p\82Æ\82Æ\82à\82É\91å\82«\82­\82È\82é\82Ì\82Å\93K\90Ø\82È\83\8d\83O\8dX\90V\82ð\90Ý\92è\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# touch /var/log/opengate.log\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># touch /var/log/opengate.log</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 6 ************** -->\r
-<h4>G.6&nbsp;\93®\8dì\8am\94F<A class=anchor href="#opengate6" name=opengate6>\81õ</A></h4>\r
-\r
-<p>\89º\97¬\91¤\83l\83b\83g\83\8f\81[\83N\82ÉPC\82ð\82Â\82È\82¢\82Å\81A\8fã\97¬\91¤\82ÌWeb\83T\83C\83g\82ð\83A\83N\83Z\83X\82·\82é\81B\93K\90Ø\82É\93®\8dì\82µ\82È\82¢\8fê\8d\87\81A\82Ü\82¸\82Í\81Adoc/progflow.html,doc/protocol.txt\82ð\8c©\82Ä\81A\93®\8dì\82Ì\8aÖ\98A\82ð\97\9d\89ð\82·\82é\82Æ\82Æ\82à\82É\81A\83\8d\83O\83t\83@\83C\83\8b(Opengate, httpd, \83V\83X\83e\83\80\82È\82Ç\81j\82ð\8eQ\8fÆ\82µ\82Ä\97~\82µ\82¢\81B\8fÚ\8d×\82È\83\8d\83O\82ð\8fo\82·\82É\82Í\81Aopengatesrv.conf\93à\82Ì&lt;Debug&gt;\82ð2\82É\90Ý\92è\82·\82é\81B\82Ü\82½\81A\8aÖ\98A\83\\83t\83g\83E\83F\83A\82ª\93Æ\97§\82Å\93®\8dì\82·\82é\82©\82ð\8am\82©\82ß\82Ä\97~\82µ\82¢\81B\82Ü\82½\81A\83G\83\89\81[\83`\83F\83b\83N\83h\83L\83\85\83\81\83\93\83gerrcheck.html\81A\8e¿\96â\89ñ\93\9aqa.html\81AWeb\8fã\82Ìrecentqa.html\82à\8eQ\8dl\82É\82È\82é\82¾\82ë\82¤\81B</p>\r
-\r
-\r
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<h4>G.6&nbsp;\93®\8dì\8am\94F<a class="anchor" href="#opengate6" name="opengate6">\81õ</a></h4>\r
+<p>\90Ý\92è\82ð\90\82©\82·\82½\82ß\82É\83\8a\83u\81[\83g\82ð\8ds\82¢\81A\89º\97¬\91¤\83l\83b\83g\83\8f\81[\83N\82ÉPC\82ð\82Â\82È\82¢\82Å\81A\8fã\97¬\91¤\82ÌWeb\83T\83C\83g\82ð\83A\83N\83Z\83X\82·\82é\81B\93K\90Ø\82É\93®\8dì\82µ\82È\82¢\8fê\r
+\8d\87\81A\82Ü\82¸\82Í\81Adoc/progflow.html,\r
+doc/protocol.txt\82ð\8c©\82Ä\81A\93®\8dì\82Ì\8aÖ\98A\82ð\97\9d\89ð\82·\82é\82Æ\82Æ\82à\82É\81A\83\8d\83O\83t\83@\83C\83\8b(Opengate, httpd,\r
+\83V\83X\83e\83\80\82È\82Ç\81j\82ð\8eQ\8fÆ\82µ\82Ä\97~\82µ\82¢\81B\8fÚ\8d×\82È\83\8d\83O\82ð\8fo\82·\82É\82Í\81Aopengatesrv.conf\93à\82Ì&lt;Debug&gt;\82ð2\82É\90Ý\92è\82·\r
+\82é\81B\82Ü\82½\81A\8aÖ\98A\83\\r
+\83t\83g\83E\83F\83A\82ª\93Æ\97§\82Å\93®\8dì\82·\82é\82©\82ð\8am\82©\82ß\82Ä\97~\82µ\82¢\81B\82Ü\82½\81A\83G\83\89\81[\83`\83F\83b\83N\83h\83L\83\85\83\81\83\93\83gerrcheck.html\81A\8e¿\96â\89ñ\93\9aqa.html\81AWeb\8fã\82Ì\r
+recentqa.html\82à\8eQ\8dl\82É\82È\82é\82¾\82ë\82¤\81B</p>\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 7 ************** -->\r
-<h4>G.7&nbsp;\83y\81[\83W\82Ì\8fC\90³<A class=anchor href="#opengate7" name=opengate7>\81õ</A></h4>\r
-\r
-<p>\95\\8e¦\83y\81[\83W\82Ì\93à\97e\82ð\95Ï\8dX\82·\82é\82Æ\82«\82É\82Í\81AHTML\83h\83L\83\85\83\81\83\93\83g\83f\83B\83\8c\83N\83g\83\8a\92\86\82Ì\8aY\93\96HTML\83t\83@\83C\83\8b\82ð\8fC\90³\82·\82é\81B\82±\82ê\82ç\82Ì\83t\83@\83C\83\8b\82ÍCGI\82ð\8co\97R\82µ\82Ä\83u\83\89\83E\83U\82É\91\97\82ç\82ê\82é\81B\82È\82¨\81Ahttpkeep.html\93à\82ÌURL\82É\82Í\91\8a\91Î\83p\83X\82Í\8eg\82¦\82È\82¢\81B\83t\83\8b\83p\83X\82Å\8ew\92è\82·\82é\82±\82Æ\82ª\95K\97v\82Å\82 \82é\81B%%XXX%%\82Ì\82æ\82¤\82È\8bL\8fq\82Í\95Ï\90\94\82Å\82 \82è\81ACGI\82É\82¨\82¢\82Ä\93K\90Ø\82È\92l\82É\92u\82«\8a·\82¦\82ç\82ê\82é\81B</p>\r
-\r
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<h4>G.7&nbsp;\83y\81[\83W\82Ì\8fC\90³<a class="anchor" href="#opengate7" name="opengate7">\81õ</a></h4>\r
+<p>\95\\8e¦\83y\81[\83W\82Ì\93à\97e\82ð\95Ï\8dX\82·\82é\82Æ\82«\82É\82Í\81AHTML\83h\83L\83\85\83\81\83\93\83g\83f\83B\83\8c\83N\83g\83\8a\92\86\82Ì\8aY\93\96HTML\83t\83@\83C\83\8b\82ð\8fC\90³\82·\82é\81B\82±\82ê\82ç\82Ì\83t\83@\83C\83\8b\82Í\r
+CGI\82ð\8co\97R\82µ\82Ä\r
+\83u\83\89\83E\83U\82É\91\97\82ç\82ê\82é\81B\82È\82¨\81Ahttpkeep.html\93à\82ÌURL\82É\82Í\91\8a\91Î\83p\83X\82Í\8eg\82¦\82È\82¢\81B\83t\83\8b\83p\83X\82Å\8ew\92è\82·\82é\82±\82Æ\82ª\95K\97v\82Å\82 \82é\81B%%XXX%%\82Ì\82æ\82¤\82È\r
+\8bL\8fq\82Í\95Ï\90\94\82Å\82 \82è\81ACGI\82É\82¨\82¢\82Ä\93K\90Ø\82È\92l\82É\92u\82«\8a·\82¦\82ç\82ê\82é\81B</p>\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 8 ************** -->\r
-<h4>G.8&nbsp;SQLite3\82Ì\90Ý\92è<A class=anchor href="#opengate8" name=opengate8>\81õ</A></h4>\r
-\r
-<p>\r
-  Opengate\82Í\83Z\83b\83V\83\87\83\93\8fî\95ñ\82ð\95Û\8e\9d\82·\82é\82½\82ß\82ÉSQLite3\83f\81[\83^\83x\81[\83X\82ð\97\98\97p\82·\82é\81B\r
+<h4>G.8&nbsp;SQLite3\82Ì\90Ý\92è<a class="anchor" href="#opengate8" name="opengate8">\81õ</a></h4>\r
+<p> Opengate\82Í\83Z\83b\83V\83\87\83\93\8fî\95ñ\82ð\95Û\8e\9d\82·\82é\82½\82ß\82ÉSQLite3\83f\81[\83^\83x\81[\83X\82ð\97\98\97p\82·\82é\81B\r
 \83f\81[\83^\83x\81[\83X\83t\83@\83C\83\8b\82Ì\88Ê\92u\82Í\81Aopengatesrv.conf\92\86\82Ì\81A&lt;SqliteDb&gt;\82Å\8ew\92è\82·\82é\81B\r
 default\92l\82©\82ç\81A\82æ\82è\93K\90Ø\82È\83f\83B\83\8c\83N\83g\83\8a\93à\82É\95Ï\82¦\82é\82±\82Æ\82ª\96]\82Ü\82µ\82¢\81B\r
 \82È\82¨\81A\82»\82Ì\83f\83B\83\8c\83N\83g\83\8a\82É\82Í\81A\89º\8bL\82Ì\97á\82Ì\82æ\82¤\82ÉWWW\82©\82ç\82Ì\8f\91\82«\8d\9e\82Ý\8b\96\89Â\82ð\97^\82¦\82é\95K\97v\82ª\82 \82é\81B\r
 </p>\r
-<table><tr><td><pre>\r
-Example:\r
--- opengatesrv.conf --\r
-&lt;SqliteDb&gt;/home/sqlitedb/opengate.db&lt;/SqliteDb&gt;\r
--- shell commands --\r
-# mkdir /home/sqlitedb\r
-# chown www /home/sqlitedb\r
-</pre></td></tr></table>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>Example:<br>-- opengatesrv.conf --<br>&lt;SqliteDb&gt;/home/sqlitedb/opengate.db&lt;/SqliteDb&gt;<br>-- shell commands --<br># mkdir /home/sqlitedb<br># chown www /home/sqlitedb</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
 \83f\81[\83^\83x\81[\83X\83t\83@\83C\83\8b\82¨\82æ\82Ñ\83e\81[\83u\83\8b\82Ì\8dì\90¬\82Í\8e©\93®\93I\82É\8ds\82í\82ê\82é\81B\r
 </p>\r
-\r
 <p>\r
-\90Ú\91±\82Ì\82½\82Ñ\82É\83t\83@\83C\83\8b\97e\97Ê\82ª\8f\99\81X\82É\91\9d\89Á\82·\82é\82½\82ß\81Acron\81i\82à\82µ\82­\82Í\8eè\8dì\8bÆ\81j\82Å\83t\83@\83C\83\8b\88³\8fk\81i\82à\82µ\82­\82Í\8dí\8f\9c\81j\82ð\92è\8aú\93I\82É\8ds\82¤\95K\97v\82ª\82 \82é\81B\88È\89º\82Í\95Â\8d½\82©\82ç\82R\93ú\88È\8fã\8co\89ß\82µ\82½\83\8c\83R\81[\83h\82ð\8dí\8f\9c\82·\82é\83X\83N\83\8a\83v\83g\82Ì\97á\82Å\82 \82é\81B\r
+\90Ú\91±\82Ì\82½\82Ñ\82É\83t\83@\83C\83\8b\97e\97Ê\82ª\8f\99\81X\82É\91\9d\89Á\82·\82é\82½\82ß\81Acron\81i\82à\82µ\82­\82Í\8eè\8dì\8bÆ\81j\82Å\83t\83@\83C\83\8b\88³\8fk\81i\82à\82µ\82­\82Í\8dí\8f\9c\81j\82ð\92è\8aú\93I\82É\8ds\82¤\95K\97v\82ª\82 \82é\81B\88È\89º\82Í\95Â\8d½\82©\82ç\82R\r
+\93ú\88È\8fã\8co\89ß\82µ\82½\83\8c\83R\81[\83h\82ð\8dí\8f\9c\82·\82é\83X\83N\83\8a\83v\83g\82Ì\97á\82Å\82 \82é\81B\r
 </p>\r
-\r
 <table>\r
-<tr><td><pre>\r
-#!/bin/sh\r
-echo "delete from session where closeTime &lt; datetime('now','localtime','-3days');" | sqlite3 /tmp/opengate.db\r
-exit 0\r
-</pre></td></tr>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#!/bin/sh<br>echo "delete from session where closeTime &lt; datetime('now','localtime','-3days');" | sqlite3 /tmp/opengate.db<br>exit 0</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
 </table>\r
-\r
-\r
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <hr>\r
-\r
 <!-- Start:MRTG\82Ì\83C\83\93\83X\83g\81[\83\8b -->\r
-<h3>H&nbsp;MRTG\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)<A class=anchor href="#mrtg0" name=mrtg0>\81õ</A></h3>\r
-\r
+<h3>H&nbsp;MRTG\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional(\94C\88Ó))<a class="anchor" href="#mrtg0" name="mrtg0">\81õ</a></h3>\r
 <ul>\r
-       <li class="list_num"><A href="#mrtg1">\83C\83\93\83X\83g\81[\83\8b\81iports\81j</A></li>\r
-       <li class="list_num"><A href="#mrtg2">MRTG\82Ì\90Ý\92è</A></li>\r
-       <li class="list_num"><A href="#mrtg3">MRTG\82Ì\8bN\93®\8am\94F</A></li>\r
-       <li class="list_num"><A href="#mrtg4">crontab\82Ö\82Ì\93o\98^</A></li>\r
+<li class="list_num"><a href="#mrtg1">\83C\83\93\83X\83g\81[\83\8b\r
+\81iports\81j</a></li>\r
+<li class="list_num"><a href="#mrtg2">MRTG\82Ì\90Ý\r
+\92è</a></li>\r
+<li class="list_num"><a href="#mrtg3">MRTG\82Ì\8bN\r
+\93®\8am\94F</a></li>\r
+<li class="list_num"><a href="#mrtg4">crontab\r
+\82Ö\82Ì\93o\98^</a></li>\r
 </ul>\r
-\r
-<div align="right"><A href="#opengate0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<div align="right"><a href="#opengate0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 1 ************** -->\r
-\r
-<h4>H.1&nbsp;MRTG\82Ì\83C\83\93\83X\83g\81[\83\8b<A class=anchor href="#mrtg1" name=mrtg1>\81õ</A></h4>\r
-\r
-<p>\82±\82Ì\83C\83\93\83X\83g\81[\83\8b\82Í\94C\88Ó\82Å\82 \82é\81BOpengate \82Ì\97\98\97p\8fó\8bµ\82ð\8aÄ\8e\8b\82·\82é\82½\82ß\82É\81AMRTG\82ð\97p\82¢\82é\82±\82Æ\82ª\89Â\94\\82Å\82 \82é\81B\95K\97v\82É\82È\82Á\82Ä\82©\82ç\83C\83\93\83X\83g\81[\83\8b\82·\82é\82±\82Æ\81B\97\98\97p\8fó\8bµ\82Ì\8aÄ\8e\8b\82ð\8ds\82È\82í\82È\82¢\8fê\8d\87\82Í\81AMRTG\82Ì\83C\83\93\83X\83g\81[\83\8b\82Í\95s\97v\82Å\82 \82é\81B</p>\r
-\r
+<h4>H.1&nbsp;MRTG\82Ì\83C\83\93\83X\83g\81[\83\8b<a class="anchor" href="#mrtg1" name="mrtg1">\81õ</a></h4>\r
+<p>\82±\82Ì\83C\83\93\83X\83g\81[\83\8b\82Í\94C\88Ó\82Å\82 \82é\81BOpengate\r
+\82Ì\97\98\97p\8fó\8bµ\82ð\8aÄ\8e\8b\82·\82é\82½\82ß\82É\81AMRTG\82ð\97p\82¢\82é\82±\82Æ\82ª\89Â\94\\82Å\82 \82é\81B\95K\97v\82É\82È\82Á\82Ä\82©\82ç\83C\83\93\83X\83g\81[\83\8b\82·\82é\82±\82Æ\81B\97\98\97p\8fó\8bµ\82Ì\8aÄ\8e\8b\82ð\8ds\82È\82í\82È\82¢\8fê\8d\87\82Í\81AMRTG\82Ì\r
+\83C\83\93\83X\83g\81[\83\8b\82Í\95s\97v\82Å\82 \82é\81B</p>\r
 <p>MRTG(Multi Router Traffic Grapher)\82Æ\82Í\81A\96{\97\88\83l\83b\83g\83\8f\81[\83N\82Ì\95\89\89×\82ð\8aÄ\8e\8b\82·\82é\83c\81[\83\8b\82Å\82 \82é\81B\r
 SNMP\83G\81[\83W\83F\83\93\83g\82æ\82è\83g\83\89\83t\83B\83b\83N\82Ì\92l\82ð\8eæ\93¾\82µ\81A\83O\83\89\83t\83B\83b\83N\83C\83\81\81[\83W\82ð\8aÜ\82ÞHTML\83y\81[\83W\82ð\90\90¬\82·\82é\81B\r
 <a href="http://www.mrtg.jp/" target="_blank">\8fÚ\8d×</a></p>\r
-\r
 <p>MRTG\82ð\97p\82¢\82Ä\81AOpengate\82Ì\97\98\97p\8fó\8bµ\82ð\8aÄ\8e\8b\82·\82é\82É\82 \82½\82Á\82Ä\82Í\81AOpengate\82ð\93±\93ü\82µ\82½\83Q\81[\83g\83E\83F\83C\82É\82¨\82¢\82Ä\r
 MRTG\82ð\83C\83\93\83X\83g\81[\83\8b\82µ\82Ä\82à\8d\\82í\82È\82¢\82ª\81A\8aÄ\8e\8b\97p\82Ì\95Ê\82Ì\83T\81[\83o\82É\83C\83\93\83X\83g\81[\83\8b\82µ\82Ä\82à\8d\\82í\82È\82¢\81B\82Ü\82½\81A\r
-Opengate\82ð\95ª\8eU\94z\92u\82·\82é\82æ\82¤\82É\90Ý\8cv\82³\82ê\82Ä\82¢\82é\82½\82ß\81A\95¡\90\94\82ÌOpengate\82ð\8aÇ\97\9d\82·\82é\82É\82 \82½\82Á\82Ä\82Í\8aÄ\8e\8b\97p\82Ì\83T\81[\83o\82É\82¨\82¢\82ÄMRTG\82ð\83C\83\93\83X\83g\81[\83\8b\82·\82é\82±\82Æ\82ð\90\84\8f§\82·\82é\81B</p>\r
-\r
+Opengate\82ð\95ª\8eU\94z\92u\82·\82é\82æ\82¤\82É\90Ý\8cv\82³\82ê\82Ä\82¢\82é\82½\82ß\81A\95¡\90\94\82ÌOpengate\82ð\8aÇ\97\9d\82·\82é\82É\82 \82½\82Á\82Ä\82Í\8aÄ\8e\8b\97p\82Ì\83T\81[\83o\82É\82¨\82¢\82ÄMRTG\82ð\83C\83\93\83X\83g\81[\83\8b\r
+\82·\82é\82±\82Æ\82ð\90\84\8f§\82·\82é\81B</p>\r
 <p>\88È\89º\82É\81AMRTG\82ðports\82ð\97p\82¢\82Ä\83C\83\93\83X\83g\81[\83\8b\82·\82é\8eè\8f\87\82ð\8e¦\82·\81B</p>\r
-\r
-<table><tr><td><pre># cd /usr/ports/net-mgmt/mrtg/\r
-# make clean\r
-# make install clean ; rehash\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># cd /usr/ports/net-mgmt/mrtg/<br># make clean<br># make install clean ; rehash</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 2 ************** -->\r
-<h4>H.2&nbsp;MRTG\82Ì\90Ý\92è<A class=anchor href="#mrtg2" name=mrtg2>\81õ</A></h4>\r
-\r
+<h4>H.2&nbsp;MRTG\82Ì\90Ý\92è<a class="anchor" href="#mrtg2" name="mrtg2">\81õ</a></h4>\r
 <p>\r
-MRTG\82Ì\83C\83\93\83X\83g\81[\83\8b\82ª\8a®\97¹\82·\82é\82Æ\81A/usr/local/etc/mrtg/\88È\89º\82É\90Ý\92è\83t\83@\83C\83\8b\82ª\97p\88Ó\82³\82ê\82Ä\82¢\82é\81B\93¯\83f\83B\83\8c\83N\83g\83\8a\82É\81Aopengate.cfg\82Æ\82µ\82Ä\90V\82½\82É\90Ý\92è\83t\83@\83C\83\8b\82ð\97p\88Ó\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-##################################################\r
-#  opengate user counter\r
-\r
-WorkDir: /usr/home/user/public_html/mrtg/opengate/\r
-Language: euc-jp\r
-\r
-##### \83I\83v\83V\83\87\83\93\r
-# growright: X\8e²\82Ì\8c´\93_\82ð\8d\82É integer: \90®\90\94\95\\8e¦ info: 3,4\94Ô\96Ú\82Ì\8fo\97Í\82Ì\94ñ\95\\8e¦\r
-# gauge: \8c»\8dÝ\82Ì\92l=\93ü\97Í\92l-\91O\89ñ\82Ì\93ü\97Í\92l\82ð\82µ\82È\82¢ nopercent: \83p\81[\83Z\83\93\83g\94ñ\95\\8e¦\r
-Options[^]: growright,gauge,nopercent,integer\r
-\r
-Target[opengate]:`/usr/home/user/bin/input.sh`\r
-Title[opengate]: Opengate user counter\r
-\r
-PageTop[opengate]: &lt;h1&gt;Opengate user counter&lt;/h1&gt;\r
- &lt;p&gt;Opengate12 \82ð\97\98\97p\82µ\82Ä\82¢\82é\90l\90\94\82ð\95\\8e¦\82µ\82Ä\82¢\82Ü\82·\81B&lt;/p&gt;\r
-\r
-# \92l\82Ì\8fã\8cÀ\r
-MaxBytes[opengate]: 200\r
-# \8ae\83O\83\89\83t\82É\82¨\82¢\82Ä\81A\83O\83\89\83t\82Ì\8fã\8cÀ\82ð\92l\82Ì\8dÅ\91å\92l\82Å\82È\82­\92l\82Ì\8fã\8cÀ\82É\82·\82é\r
-#Unscaled[opengate]: ymwd\r
-\r
-# \83O\83\89\83t\82ÌY\8e²\82É\82Â\82­\83^\83C\83g\83\8b\r
-YLegend[opengate]: Opengate User\r
-# \92l\82Ì\92P\88Ê\r
-ShortLegend[opengate]: \90l\r
-# \92l\82Ì\83^\83C\83g\83\8b LegendI: 1\94Ô\96Ú LegendO: 2\94Ô\96Ú\r
-LegendI[opengate]: IPv6 Users\r
-LegendO[opengate]: Total Users\r
-</pre></td></tr></table>\r
-\r
-<p>WorkDir\82É\8ew\92è\82µ\82½\83f\83B\83\8c\83N\83g\83\8a\82ð\8dì\90¬\82·\82é\81B\93¯\83f\83B\83\8c\83N\83g\83\8a\82É\81AMRTG\82ª\8ae\8eíHTML\83t\83@\83C\83\8b\82Æ\83O\83\89\83t\83B\83b\83N\83C\83\81\81[\83W\82ð\8dì\90¬\82·\82é\81B</p>\r
-\r
+MRTG\82Ì\83C\83\93\83X\83g\81[\83\8b\82ª\8a®\97¹\82·\82é\82Æ\81A/usr/local/etc/mrtg/\88È\89º\82É\90Ý\92è\83t\83@\83C\83\8b\82ª\97p\88Ó\82³\82ê\82Ä\82¢\82é\81B\93¯\83f\83B\83\8c\83N\83g\83\8a\82É\81A\r
+opengate.cfg\82Æ\82µ\82Ä\90V\82½\82É\90Ý\92è\83t\83@\83C\83\8b\82ð\97p\88Ó\82·\82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>##################################################<br># opengate user counter<br><br>WorkDir: /usr/home/user/public_html/mrtg/opengate/<br>Language: euc-jp<br><br>##### \83I\83v\83V\83\87\83\93<br># growright: X\8e²\82Ì\8c´\93_\82ð\8d\82É integer: \90®\90\94\95\\8e¦ info: 3,4\94Ô\96Ú\82Ì\8fo\97Í\82Ì\94ñ\95\\8e¦<br># gauge: \8c»\8dÝ\82Ì\92l=\93ü\97Í\92l-\91O\89ñ\82Ì\93ü\97Í\92l\82ð\82µ\82È\82¢ nopercent: \83p\81[\83Z\83\93\83g\94ñ\95\\8e¦<br>Options[^]: growright,gauge,nopercent,integer<br><br>Target[opengate]:`/usr/home/user/bin/input.sh`<br>Title[opengate]: Opengate user counter<br><br>PageTop[opengate]: &lt;h1&gt;Opengate user counter&lt;/h1&gt;<br> &lt;p&gt;Opengate12 \82ð\97\98\97p\82µ\82Ä\82¢\82é\90l\90\94\82ð\95\\8e¦\82µ\82Ä\82¢\82Ü\82·\81B&lt;/p&gt;<br><br># \92l\82Ì\8fã\8cÀ<br>MaxBytes[opengate]: 200<br># \8ae\83O\83\89\83t\82É\82¨\82¢\82Ä\81A\83O\83\89\83t\82Ì\8fã\8cÀ\82ð\92l\82Ì\8dÅ\91å\92l\82Å\82È\82­\92l\82Ì\8fã\8cÀ\82É\82·\82é<br>#Unscaled[opengate]: ymwd<br><br># \83O\83\89\83t\82ÌY\8e²\82É\82Â\82­\83^\83C\83g\83\8b<br>YLegend[opengate]: Opengate User<br># \92l\82Ì\92P\88Ê<br>ShortLegend[opengate]: \90l<br># \92l\82Ì\83^\83C\83g\83\8b LegendI: 1\94Ô\96Ú LegendO: 2\94Ô\96Ú<br>LegendI[opengate]: IPv6 Users<br>LegendO[opengate]: Total Users</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<p>WorkDir\82É\8ew\92è\82µ\82½\83f\83B\83\8c\83N\83g\83\8a\82ð\8dì\90¬\82·\82é\81B\93¯\83f\83B\83\8c\83N\83g\83\8a\82É\81AMRTG\82ª\8ae\8eíHTML\83t\83@\83C\83\8b\82Æ\83O\83\89\83t\83B\83b\83N\83C\83\81\81[\83W\82ð\8dì\90¬\82·\r
+\82é\81B</p>\r
 <p>Target[opengate]\82É\82Í\81AMRTG\82É\83f\81[\83^\82ð\93n\82·\82½\82ß\82Ì\83v\83\8d\83O\83\89\83\80\82ð\90Ý\92u\82·\82é\81B\88È\89º\82É\8fÚ\8d×\82ð\90à\96¾\82·\82é\81B</p>\r
-\r
-<div align="right"><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
-\r
-<h5>H.2.1&nbsp;Opengate\83T\81[\83o\82Å\8aÄ\8e\8b\82·\82é\8fê\8d\87<A class=anchor href="#mrtg21" name=mrtg21>\81õ</A></h5>\r
-\r
+<div align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></div>\r
+<h5>H.2.1&nbsp;Opengate\83T\81[\83o\82Å\8aÄ\8e\8b\82·\82é\8fê\8d\87<a class="anchor" href="#mrtg21" name="mrtg21">\81õ</a></h5>\r
 <p>\88È\89º\82ÉOpengate\82ð\93±\93ü\82µ\82½\83Q\81[\83g\83E\83F\83C\82É\82¨\82¢\82Ä\97\98\97p\8fó\8bµ\82ð\8aÄ\8e\8b\82·\82é\8fê\8d\87\82Ì\83V\83F\83\8b\83X\83N\83\8a\83v\83g\82ð\8bL\82·\81B</p>\r
-\r
-<table><tr><td><pre>\r
-#!/bin/sh\r
-\r
-#######################################\r
-##\r
-## show opengate status for MRTG\r
-##\r
-##   1 line : IPv6 Users\r
-##   2 line : Total Users\r
-##   3 line : uptime\r
-##   4 line : comment for data\r
-##\r
-#######################################\r
-\r
-LANG=C\r
-COLUMNS=256\r
-\r
-export LANG\r
-export COLUMNS\r
-\r
-### IPv6 prefix\r
-prefix="2001:2f8:22:801:"\r
-\r
-###opengateprocessname\r
-process="opengatesrv.cgi"\r
-\r
-###tmp file name\r
-tmp_all="/tmp/og_count_all.tmp"\r
-tmp_6="/tmp/og_count_6.tmp"\r
-\r
-######################################################\r
-ps ax | grep $process &gt; $tmp_all \r
-COUNT = `wc-l $tmp_all | awk '{print $1}'`\r
-grep $prefix $tmp_all &gt;  $tmp_6\r
-COUNT6=`wc -l $tmp_6 | awk '{print $1}'`\r
-UPTIME=`uptime | awk '{print $3$4}' | sed -e "s/,//g"`\r
-\r
-rm $tmp_all\r
-rm $tmp_6\r
-\r
-echo "$COUNT6"\r
-echo "$COUNT"\r
-echo "$UPTIME"\r
-echo "Opengate User Counter"\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#!/bin/sh<br><br>#######################################<br>##<br>## show opengate status for MRTG<br>##<br>## 1 line : IPv6 Users<br>## 2 line : Total Users<br>## 3 line : uptime<br>## 4 line : comment for data<br>##<br>#######################################<br><br>LANG=C<br>COLUMNS=256<br><br>export LANG<br>export COLUMNS<br><br>### IPv6 prefix<br>prefix="2001:2f8:22:801:"<br><br>###opengateprocessname<br>process="opengatesrv.cgi"<br><br>###tmp file name<br>tmp_all="/tmp/og_count_all.tmp"<br>tmp_6="/tmp/og_count_6.tmp"<br><br>######################################################<br>ps ax | grep $process &gt; $tmp_all <br>COUNT = `wc-l $tmp_all | awk '{print $1}'`<br>grep $prefix $tmp_all &gt; $tmp_6<br>COUNT6=`wc -l $tmp_6 | awk '{print $1}'`<br>UPTIME=`uptime | awk '{print $3$4}' | sed -e "s/,//g"`<br><br>rm $tmp_all<br>rm $tmp_6<br><br>echo "$COUNT6"<br>echo "$COUNT"<br>echo "$UPTIME"<br>echo "Opengate User Counter"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\82³\82ç\82É\81A\82±\82Ì\83V\83F\83\8b\83X\83N\83\8a\83v\83g\82ð\92P\93Æ\82Å\8eÀ\8ds\82µ\81A\88È\89º\82Ì\82æ\82¤\82È\83f\81[\83^\82ª\8eæ\93¾\82Å\82«\82Ä\82¢\82é\82±\82Æ\82ð\8am\94F\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-5\r
-48\r
-10days\r
-Opengate User Counter\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
-<h5>H.2.2&nbsp;\8aO\95\94\83T\81[\83o\82Å\8aÄ\8e\8b\82·\82é\8fê\8d\87<A class=anchor href="#mrtg22" name=mrtg22>\81õ</A></h5>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>5<br>48<br>10days<br>Opengate User Counter</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></div>\r
+<h5>H.2.2&nbsp;\8aO\95\94\83T\81[\83o\82Å\8aÄ\8e\8b\82·\82é\8fê\8d\87<a class="anchor" href="#mrtg22" name="mrtg22">\81õ</a></h5>\r
 <p>\88È\89º\82É\8aO\95\94\83T\81[\83o\82É\82¨\82¢\82Ä\97\98\97p\8fó\8bµ\82ð\8aÄ\8e\8b\82·\82é\8fê\8d\87\82Ì\83V\83F\83\8b\83X\83N\83\8a\83v\83g\82ð\8e¦\82·\81B</p>\r
-\r
-<table><tr><td><pre>\r
-#!/bin/sh\r
-\r
-#######################################\r
-##\r
-## input data for MRTG\r
-##\r
-##   1 line : IPv6 Users\r
-##   2 line : Total Users\r
-##   3 line : uptime\r
-##   4 line : comment for data\r
-##\r
-#######################################\r
-\r
-# tmp file name\r
-file="/tmp/opengate.tmp"\r
-\r
-# URL of output.sh at opengate\r
-url="http://opengate.saga-u.ac.jp/cgi-bin/output.sh"\r
-\r
-fetch -o $file $url &amp;&gt; /dev/null\r
-\r
-more $file\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#!/bin/sh<br><br>#######################################<br>##<br>## input data for MRTG<br>##<br>## 1 line : IPv6 Users<br>## 2 line : Total Users<br>## 3 line : uptime<br>## 4 line : comment for data<br>##<br>#######################################<br><br># tmp file name<br>file="/tmp/opengate.tmp"<br><br># URL of output.sh at opengate<br>url="http://opengate.saga-u.ac.jp/cgi-bin/output.sh"<br><br>fetch -o $file $url &amp;&gt; /dev/null<br><br>more $file</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\r
-\82³\82ç\82É\81A\8aÄ\8e\8b\82·\82éOpengate\83T\81[\83o\82É\82¨\82¢\82Ä\81ACGI\82ª\8eÀ\8ds\89Â\94\\82È\83f\83B\83\8c\83N\83g\83\8a\82É\8e\9f\82Ì\82æ\82¤\82È\83V\83F\83\8b\83X\83N\83\8a\83v\83g\82ð\97p\88Ó\82·\82é\81B\82±\82ê\82ð\81A\8fã\8bL\82Ì\83V\83F\83\8b\83X\83N\83\8a\83v\83g\82Ì"url"\82É\8ew\92è\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-#!/bin/sh\r
-\r
-#######################################\r
-##\r
-## show opengate status for MRTG\r
-##\r
-##   1 line : IPv6 Users\r
-##   2 line : Total Users\r
-##   3 line : uptime\r
-##   4 line : comment for data\r
-##\r
-#######################################\r
-\r
-LANG=C\r
-COLUMNS=256\r
-\r
-export LANG\r
-export COLUMNS\r
-\r
-### IPv6 prefix\r
-prefix="2001:2f8:22:801:"\r
-\r
-###opengate process name\r
-process="opengatesrv.cgi" \r
-\r
-###tmp file name\r
-tmp_all="/tmp/og_count_all.tmp"\r
-tmp_6="/tmp/og_count_6.tmp"\r
-\r
-######################################################\r
-\r
-ps ax | grep $process &gt; $tmp_all\r
-COUNT =`wc-l $tmp_all | awk '{print $1}'`\r
-grep $prefix $tmp_all &gt;  $tmp_6\r
-COUNT6=`wc -l $tmp_6 | awk '{print $1}'`\r
-UPTIME=`uptime | awk '{print $3$4}' | sed -e "s/,//g"`\r
-rm $tmp_all\r
-rm $tmp_6\r
-\r
-echo "Content-type: text/plain; charset=iso-8859-1"\r
-echo\r
-\r
-echo "$COUNT6"\r
-echo "$COUNT"\r
-echo "$UPTIME"\r
-echo "Opengate User Counter"\r
-</pre></td></tr></table>\r
-\r
+\82³\82ç\82É\81A\8aÄ\8e\8b\82·\82éOpengate\83T\81[\83o\82É\82¨\82¢\82Ä\81ACGI\82ª\8eÀ\8ds\89Â\94\\82È\83f\83B\83\8c\83N\83g\83\8a\82É\8e\9f\82Ì\82æ\82¤\82È\83V\83F\83\8b\83X\83N\83\8a\83v\83g\82ð\97p\88Ó\82·\82é\81B\82±\82ê\82ð\81A\8fã\8bL\82Ì\83V\83F\83\8b\83X\83N\83\8a\r
+\83v\83g\82Ì"url"\82É\8ew\92è\82·\82é\81B</p>\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>#!/bin/sh<br><br>#######################################<br>##<br>## show opengate status for MRTG<br>##<br>## 1 line : IPv6 Users<br>## 2 line : Total Users<br>## 3 line : uptime<br>## 4 line : comment for data<br>##<br>#######################################<br><br>LANG=C<br>COLUMNS=256<br><br>export LANG<br>export COLUMNS<br><br>### IPv6 prefix<br>prefix="2001:2f8:22:801:"<br><br>###opengate process name<br>process="opengatesrv.cgi" <br><br>###tmp file name<br>tmp_all="/tmp/og_count_all.tmp"<br>tmp_6="/tmp/og_count_6.tmp"<br><br>######################################################<br><br>ps ax | grep $process &gt; $tmp_all<br>COUNT =`wc-l $tmp_all | awk '{print $1}'`<br>grep $prefix $tmp_all &gt; $tmp_6<br>COUNT6=`wc -l $tmp_6 | awk '{print $1}'`<br>UPTIME=`uptime | awk '{print $3$4}' | sed -e "s/,//g"`<br>rm $tmp_all<br>rm $tmp_6<br><br>echo "Content-type: text/plain; charset=iso-8859-1"<br>echo<br><br>echo "$COUNT6"<br>echo "$COUNT"<br>echo "$UPTIME"<br>echo "Opengate User Counter"</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>Opengate\83T\81[\83o\82É\81A\88È\8fã\82Ì\83V\83F\83\8b\83X\83N\83\8a\83v\83g\82ð\97p\88Ó\82µ\82½\8cã\82É\81A\8aÄ\8e\8b\97p\82Ì\8aO\95\94\83T\81[\83o\82É\82¨\82¢\82Ä\81A\r
 input.sh\82ð\92P\93Æ\82Å\8eÀ\8ds\82µ\82½\8dÛ\82É\81A\88È\89º\82Ì\82æ\82¤\82È\83f\81[\83^\82ª\8eæ\93¾\82Å\82«\82Ä\82¢\82é\82±\82Æ\82ð\8am\94F\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>5\r
-48\r
-10days\r
-Opengate User Counter\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>5<br>48<br>10days<br>Opengate User Counter</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 3 ************** -->\r
-<h4>H.3&nbsp;MRTG\82Ì\8bN\93®\8am\94F<A class=anchor href="#mrtg3" name=mrtg3>\81õ</A></h4>\r
-\r
+<h4>H.3&nbsp;MRTG\82Ì\8bN\93®\8am\94F<a class="anchor" href="#mrtg3" name="mrtg3">\81õ</a></h4>\r
 <p>\88È\8fã\82Ì\90Ý\92è\82ª\8a®\97¹\82µ\82½\8cã\82É\81Amrtg\82ð\8eÀ\8ds\82·\82é\82±\82Æ\82ª\89Â\94\\82©\8am\94F\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-# /usr/local/bin/mrtg /usr/local/etc/mrtg/opengate.cfg\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre># /usr/local/bin/mrtg /usr/local/etc/mrtg/opengate.cfg</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\88È\8fã\82ð\8eÀ\8ds\82·\82é\82Æ\81A\82P\89ñ\96Ú\82Æ\82Q\89ñ\96Ú\82Í\97l\81X\82ÈWARNING\82ª\8fo\97Í\82³\82ê\82é\81B</p>\r
-\r
 <p>mrtg\82ð\95¡\90\94\89ñ\8eÀ\8ds\82µ\8cã\82É\81AWorkDir\82É\8ew\92è\82µ\82½\83f\83B\83\8c\83N\83g\83\8a\82É\88È\89º\82Ì\83t\83@\83C\83\8b\82ª\90\90¬\82³\82ê\82Ä\82¢\82ê\82Î\90¬\8c÷\82Å\82 \82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-&gt; ls -l\r
--rw-r--r--  1 root  wheel    538 12 14 04:40 mrtg-l.png\r
--rw-r--r--  1 root  wheel    414 12 14 04:40 mrtg-m.png\r
--rw-r--r--  1 root  wheel   1759 12 14 04:40 mrtg-r.png\r
--rw-r--r--  1 root  wheel   2941 12 20 15:15 opengate-day.png\r
--rw-r--r--  1 root  wheel   2146 12 20 14:35 opengate-month.png\r
--rw-r--r--  1 root  wheel   2867 12 20 14:55 opengate-week.png\r
--rw-r--r--  1 root  wheel   1897 12 20 05:00 opengate-year.png\r
--rw-r--r--  1 root  wheel   5961 12 20 15:15 opengate.html\r
--rw-r--r--  1 root  wheel  48786 12 20 15:15 opengate.log\r
--rw-r--r--  1 root  wheel  48784 12 20 15:10 opengate.old\r
-</pre></td></tr></table>\r
-\r
-<div align="right"><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>&gt; ls -l<br>-rw-r--r-- 1 root wheel 538 12 14 04:40 mrtg-l.png<br>-rw-r--r-- 1 root wheel 414 12 14 04:40 mrtg-m.png<br>-rw-r--r-- 1 root wheel 1759 12 14 04:40 mrtg-r.png<br>-rw-r--r-- 1 root wheel 2941 12 20 15:15 opengate-day.png<br>-rw-r--r-- 1 root wheel 2146 12 20 14:35 opengate-month.png<br>-rw-r--r-- 1 root wheel 2867 12 20 14:55 opengate-week.png<br>-rw-r--r-- 1 root wheel 1897 12 20 05:00 opengate-year.png<br>-rw-r--r-- 1 root wheel 5961 12 20 15:15 opengate.html<br>-rw-r--r-- 1 root wheel 48786 12 20 15:15 opengate.log<br>-rw-r--r-- 1 root wheel 48784 12 20 15:10 opengate.old</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
+<div align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <!-- ************ 4 ************** -->\r
-<h4>H.4&nbsp;crontab\82Ö\82Ì\93o\98^<A class=anchor href="#mrtg4" name=mrtg4>\81õ</A></h4>\r
-\r
+<h4>H.4&nbsp;crontab\82Ö\82Ì\93o\98^<a class="anchor" href="#mrtg4" name="mrtg4">\81õ</a></h4>\r
 <p>\88È\8fã\82Ì\90Ý\92è\82ª\8a®\97¹\82µ\82½\82Ì\82¿\82É\81Amrtg\82ðcrontab\82É\82æ\82Á\82Ä\92è\8aú\93I\82É\8eÀ\8ds\82·\82é\81B</p>\r
-\r
 <p>/etc/crontab\82É\8e\9f\82Ì\8ds\82ð\92Ç\89Á\82·\82é\81B</p>\r
-\r
-<table><tr><td><pre>\r
-*/5 * * * * root /usr/local/bin/mrtg /usr/local/etc/mrtg/opengate.cfg\r
-</pre></td></tr></table>\r
-\r
+<table>\r
+<tbody>\r
+<tr>\r
+<td>\r
+<pre>*/5 * * * * root /usr/local/bin/mrtg /usr/local/etc/mrtg/opengate.cfg</pre>\r
+</td>\r
+</tr>\r
+</tbody>\r
+</table>\r
 <p>\8aO\95\94\83T\81[\83o\82É\82¨\82¢\82Ä\81A\95¡\90\94\82ÌOpengate\82ð\8aÇ\97\9d\82·\82é\8fê\8d\87\82Í\81A\90Ý\92è\83t\83@\83C\83\8b\82ð\90V\82½\82É\8dì\90¬\82·\82é\89ß\92ö\82©\82ç\8ds\82È\82¤\81B</p>\r
-\r
-<div align="right"><A href="#mrtg0">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
+<div align="right"><a href="#mrtg0">back</a>&nbsp;<a href="#top">top</a></div>\r
 <hr>\r
-\r
 <!-- Start:rulechk\82Ì\83C\83\93\83X\83g\81[\83\8b -->\r
-<h3>I.&nbsp;rulechk\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)<A class=anchor href="#rulechk" name=rulechk>\81õ</A></h3>\r
-\r
-<p>\82±\82Ì\83C\83\93\83X\83g\81[\83\8b\82Í\94C\88Ó\82Å\82 \82é\81BOpengate\82Ì\83v\83\8d\83Z\83X\82ª\88Ù\8fí\8fI\97¹\82µ\82½\82Æ\82«\81A\8bÉ\82ß\82Ä\8bH\82É\82Å\82Í\82 \82é\82ª\81A\83t\83@\83C\83A\83E\83H\81[\83\8b\83\8b\81[\83\8b\82ª\8fÁ\82³\82ê\82¸\82É\8ec\82é\82±\82Æ\82ª\82 \82é\81B\r
+<h3>I.&nbsp;rulechk\82Ì\83C\83\93\83X\83g\81[\83\8b(Optional)<a class="anchor" href="#rulechk" name="rulechk">\81õ</a></h3>\r
+<p>\82±\82Ì\83C\83\93\83X\83g\81[\83\8b\82Í\94C\88Ó\82Å\82 \82é\81BOpengate\82Ì\83v\83\8d\83Z\83X\82ª\88Ù\8fí\8fI\97¹\82µ\82½\82Æ\82«\81A\8bÉ\82ß\82Ä\8bH\82É\82Å\82Í\82 \82é\82ª\81A\83t\83@\83C\83A\83E\83H\81[\83\8b\83\8b\81[\83\8b\82ª\8fÁ\82³\r
+\82ê\82¸\82É\8ec\82é\82±\82Æ\82ª\82 \82é\81B\r
 \82»\82Ì\82æ\82¤\82È\8fó\8bµ\82É\91Î\89\9e\82·\82é\83X\83N\83\8a\83v\83g\82ð\81Atools/rulechk\82É\97p\88Ó\82µ\82½\81BOpengateVer.1.3.1\88È\8d~\82Ì\83t\83H\81[\83}\83b\83g\82É\82Ì\82Ý\91Î\89\9e\82·\82é\81B\r
 \82±\82Ì\83c\81[\83\8b\82Í\81Aps\83R\83}\83\93\83h\82©\82ç\93¾\82ç\82ê\82éOpengate\83v\83\8d\83Z\83X\88ê\97\97\82Æ\81A\83t\83@\83C\83A\83E\83H\81[\83\8b\82©\82ç\93¾\82ç\82ê\82é\8b\96\89Â\83\8b\81[\83\8b\88ê\97\97\82ð\94ä\8ar\82µ\82Ä\81A\r
 \97]\95ª\82È\83\8b\81[\83\8b\82ð\8dí\8f\9c\82·\82é\83X\83N\83\8a\83v\83g\82Å\82 \82é\81B\r
 \83R\83\93\83\\81[\83\8b\82©\82ç\8eÀ\8ds\82·\82é\82©\81A\82à\82µ\82­\82Í\8fã\8bL\82Æ\93¯\97l\82Écron\8eÀ\8ds\82·\82é\81B</p>\r
-\r
-<div align="right"><A href="#rulechk">back</A>&nbsp;<A href="#top">top</A></div>\r
-\r
-\r
-</body>\r
-</html>\r
+<div align="right"><a href="#rulechk">back</a>&nbsp;<a href="#top">top</a></div>\r
+</body></html>
\ No newline at end of file
index 9036fc9..9c8be97 100644 (file)
@@ -50,6 +50,8 @@ int authLdap(char *userid, char *passwd)
   LDAPMessage *entry;
   char *dn;
   int ret;
+  struct berval cred = { strlen(passwd), passwd };
+  struct berval *msgidp=NULL;
 
   /* get LDAP server URI */
   uri=GetConfValue("AuthServer/Uri");
@@ -60,7 +62,7 @@ int authLdap(char *userid, char *passwd)
   if(isNull(baseDn)) baseDn=NULL; /* set in uri */
   
   /* get handle */
-  if((ld=(LDAP*)ldap_init(0, 0)) == NULL){
+  if(ldap_initialize(&ld, uri)!=LDAP_SUCCESS) { 
     err_msg("ERR at %s#%d: Can not initialize the LDAP server",
            __FILE__,__LINE__);
     return DENY;
@@ -88,8 +90,9 @@ int authLdap(char *userid, char *passwd)
   strncat(filter, ")", BUFFMAXLN);
   
   /* search LDAP entry */
-  if((ldap_search_s(ld,baseDn,LDAP_SCOPE_SUBTREE,filter,NULL,0,&result))
-     !=LDAP_SUCCESS){
+  ret = ldap_search_ext_s(ld,baseDn,LDAP_SCOPE_SUBTREE,
+                 filter,NULL,0,NULL,NULL,NULL,0,&result);
+  if (ret !=LDAP_SUCCESS) {
     err_msg("ERR at %s#%d: error in LDAP search",
            __FILE__,__LINE__);
     return DENY;
@@ -107,10 +110,10 @@ int authLdap(char *userid, char *passwd)
   dn=ldap_get_dn(ld, entry);
   
   /* authenticate by binding */
-  ret=ldap_simple_bind_s(ld,dn,passwd);
+  ret=ldap_sasl_bind_s(ld,dn,NULL,&cred,NULL,NULL,&msgidp);
   
   /* unbinding */
-  ldap_unbind_s(ld);
+  ldap_unbind_ext_s(ld,NULL,NULL);
 
   /* return the auth result */
   if(ret==LDAP_SUCCESS){
index 7c48562..5f2b7f3 100644 (file)
@@ -52,7 +52,7 @@ int  main(int argc, char **argv)
   /* get extraid, userid and password */
   /*
   printf("Enter extraID=");
-  scanf("%s\n", extraID);
+  scanf("%s", extraID);
   */
   printf("Enter userID=");
   scanf("%s", userID);