IPV6 Fire-enabled
Service Ip6tables Start
Set boot up
Chkconfig--level 2345 Ip6tables on
Check the default gateway address:
Ip-6 Route
2001:288:82b2:1:209:fff:fe85:f71e
Network Related Settings
Vi/etc/hosts
2001:288:82b2:1::77 w2.ipv6.shsps.kh.edu.tw W2.ipv6
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Ipv6init=yes
Ipv6addr=2001:288:82b2:1::77/64
Vi/etc/hosts.allow
all:[::1]/128
All:163.32.244.0/255.255.255.0:allow
All:192.168.5.0/255.255.255.0:allow
All:192.168.1.0/255.255.255.0:allow
All:192.168.2.0/255.255.255.0:allow
Sshd:ALL:allow
Vsftpd:ALL:allow
Sendmail:ALL:allow
Httpd:ALL:allow
Vi/etc/resolv.conf
; Generated By/sbin/dhclient-script
Search shsps.kh.edu.tw
NameServer 163.32.244.1
NameServer 163.28.136.2
NameServer 163.28.136.10
NameServer 163.28.136.14
NameServer 140.117.11.1
NameServer 168.95.1.1
Vi/etc/sysconfig/network
Networking_ipv6=yes
Ipv6_autoconf=no
Ipv6_defaultgw=2001:288:82b2:1:209:fff:fe85:f71e%eth0
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Ipv6init=yes
Ipv6addr=2001:288:82b2:1::77/64
Test, IPV6 on the internet has no access: www.111cn.net
Ping6 www.ipv6.hinet.net
Web Settings IPV6
Check to see if the HTTP service also supports Ipv4/ipv6
Netstat-an | Grep:80
Host (site) has a phpMyAdmin kit to manage MySQL repositories
Vi/etc/httpd/conf.d/phpmyadmin.conf
<directory "/usr/share/phpmyadmin" >
Order Deny,allow
Deny from all
Allow from 127.0.0.1
Allow from 163.32.119.128/25
Allow from:: 1/128
Allow from 2001:288:82B2:3::/64
Allow from 2001:288:82B2:2::/64
</Directory>
After the correction is complete, remember to restart the HTTP serive to apply the new setting parameters:
# Service httpd Restart