The method of IPV6 configuration and opening under CentOS

Source: Internet
Author: User
Tags centos nameserver phpmyadmin

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.