IPv6: configurare si utilizare: Diferență între versiuni

De la Wiki.lug.ro
Salt la: navigare, căutare
(RDS experiment)
(Setari OpenWRT)
Linia 29: Linia 29:
 
# ddclient are nevoie de un patch: [http://sourceforge.net/mailarchive/message.php?msg_id=28076327 discutie] <del>[http://sourceforge.net/tracker/?func=detail&atid=676131&aid=3407066&group_id=116817 link original]</del> (probabil ca acum necesita login/ group membership) [http://dl.dropbox.com/u/10557274/Patches/ddclient/ddclient_ipv6.patch.gz link nou - dropbox] si de optiunea "usev6=if, if=eth0" ("usev6=if, if=ppp0", in cazul in care nu se folosesc dhcp si radvd, iar adresa ipv6 e alocata direct interfetei ppp)
 
# ddclient are nevoie de un patch: [http://sourceforge.net/mailarchive/message.php?msg_id=28076327 discutie] <del>[http://sourceforge.net/tracker/?func=detail&atid=676131&aid=3407066&group_id=116817 link original]</del> (probabil ca acum necesita login/ group membership) [http://dl.dropbox.com/u/10557274/Patches/ddclient/ddclient_ipv6.patch.gz link nou - dropbox] si de optiunea "usev6=if, if=eth0" ("usev6=if, if=ppp0", in cazul in care nu se folosesc dhcp si radvd, iar adresa ipv6 e alocata direct interfetei ppp)
  
=== Setari OpenWRT ===
+
It's worked for me.Most of the blogs I spam have bloekcd my IP quite effectivelyBut seriously, the IP's I've needed to block have never again posted anything on my site. Then again, I haven't had much of a problem with blog spam. Just a few here and there.
Backfire 10.03.1
 
* /etc/config/network
 
 
 
...
 
config 'interface' 'wan'
 
    option 'ifname' 'eth1'
 
    option 'proto' 'pppoe'
 
    option 'username' '.....'
 
    option 'password' '.....'
 
    option 'ipv6' '1'
 
* /etc/config/dhcp6c
 
config 'dhcp6c' 'basic'
 
    option 'enabled' '1'                  # 1 = enabled; 0 = disabled
 
    option 'interface' 'wan'            # This is the interface the DHCPv6 client will run on
 
    option 'dns' 'dnsmasq'                # Which DNS server you run (only dnsmasq currently supported)
 
    option 'debug' '0'                  # 1 = enable debugging; 0 = disable debugging
 
    # Send options (1 = send; 0 = do not send)
 
    option 'pd' '1'                      # Prefix Delegation
 
    option 'na' '0'                      # Non-Temporary Address
 
    option 'rapid_commit' '1'            # Rapid Commit
 
    # Request options (1 = request; 0 = do not request)
 
    option 'domain_name_servers' '1'
 
...
 
# Define one or more interfaces on which prefixes should be assigned
 
config 'interface' 'loopback'
 
    option 'enabled' '0'                  # 1 = enabled; 0 = disabled
 
    option 'sla_id' '0'                  # Site level aggregator identifier specified in decimal (subnet)
 
    option 'sla_len' '0'                  # Site level aggregator length (64 - size of prefix being delegated)
 
                                          # e.g. /60 from ISP -> 64 - 60 = 4
 
config 'interface' 'lan'
 
    option 'enabled' '1'
 
    option 'sla_id' '1'
 
    option 'sla_len' '0'
 
 
 
* /etc/config/radvd
 
  config interface
 
    option interface  'lan'
 
    option AdvSendAdvert      1
 
    option AdvManagedFlag      0
 
    option AdvOtherConfigFlag 0
 
    list client                <nowiki>''</nowiki>
 
    option AdvLinkMTU      1452
 
    option ignore              0
 
 
config prefix
 
    option interface  'lan'
 
    # If not specified, a non-link-local prefix of the interface is used
 
    list prefix                <nowiki>''</nowiki>
 
    option AdvOnLink  1
 
    option AdvAutonomous      1
 
    option AdvRouterAddr      0
 
    option ignore              0
 
 
 
*  /etc/config/firewall '''pentru Backfire 10.03.1-RC6 și anterioare''':
 
 
 
(altfel dupa ifdown wan/ifup wan, dhcp6c nu mai primeste reply)
 
config 'rule'
 
        option 'target' 'ACCEPT'
 
        option 'src' 'wan'
 
        option 'proto' 'udp'
 
        option 'src_port' '547'
 
        option 'dest_port' '546'
 
        option 'family' 'ipv6'
 
 
 
* Iar pe calculatoarele din LAN:
 
net.ipv6.conf.all.accept_ra = 1
 
net.ipv6.conf.default.accept_ra = 1
 
net.ipv6.conf.eth0.use_tempaddr=2
 
net.ipv6.conf.default.use_tempaddr=2
 
 
 
 
 
----
 
 
 
 
 
'''Pentru imagini testate pe RCS-RDS dual stack cu routere compatibile OpenWRT - http://www.ip6.ro/firmware (exista si rootfs unde se pot inspecta fisierele de configurare)'''
 
 
 
Routere suportate de firmware-ul customizat:
 
 
 
tp-link wr740n (v1,v2.x,v3,v4.x) , wr740nd, wr741n, wr741nd
 
 
 
tp-link wr1043nd
 
 
 
tp-link mr3420
 
 
 
tp-link 703n
 
 
 
dlink dir-825 (care are si firmware oficial dlink cu suport pentru IPv6 + PD)
 
 
 
 
 
'''Va puteti testa viteza via IPv4 si IPv6 la http://www.ipv6-test.com/speedtest (selectand mai ales serverul din Romania al RCS-RDS Pitesti)'''
 
 
 
[[Imagine:B9651b917c58ff4918124ef29ed83367.png‎]]
 

Versiunea de la data 18 iulie 2012 03:08

Pentru activarea ipv6 pe o instalare Debian implicita se folosesc urmatoarele comenzi din shell:

ip link set eth0 down
ip link set eth0 up
echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_ra
dhclient eth0

Pentru a testa: lftp ftpv6.lug.ro sau se acceseaza din browser un site web care foloseste ipv6 (de ex. http://ipv6.google.com, http://www.ripe.net, http://www.whatismyipv6.net/).

Metoda a fost testata la Atelierul RLUG din ianuarie 2011.


RDS experiment

Incepand cu 10 octombrie 2011, RDS ofera ca serviciu experimental clientilor home-user cate o clasa /64 peste PPPoE. Pana la un tutorial complet, cativa pasi la care trebuie avut grija:

  1. In primul rand, activat serviciul de IPv6 din interfata web Digicare ( Servicii -> Internet -> IPv6 Test )
  2. Se configureaza pppd:
    • rp-pppoe cu plugin rp-pppoe.so: se adauga la parametrii pppd-ului rp_pppoe_service ipv6test +ipv6
    • rp-pppoe standard: se adauga linia "+ipv6" in /etc/ppp/options si "ipv6test" la "SERVICENAME" in /etc/ppp/pppoe.conf
    • Ubuntu: daca pppoe nu e deja setat, se ruleaza pppoeconf; se adauga liniile "rp_pppoe_service ipv6test" si "+ipv6" in /etc/ppp/peers/dsl-provider si se restarteaza pppd ruland poff si apoi pon dsl-provider
  3. se instaleaza un client de DHCPv6 care stie Prefix Delegation (wide-dhcpv6-client de la ISC stie).
    • daca e nevoie de retea interna, trebuie setat dhcp6c.conf sa faca disable la reteaua 'loopback' si lasata doar cea de lan, daca nu, trebuie doar cea loopback
    • la reteaua care ramane se seteaza sla_len = 0
  4. pentru advertisingul noii clase in reteaua interna, e necesara instalarea radvd (probabil configul implicit functioneaza)
  5. ddclient are nevoie de un patch: discutie link original (probabil ca acum necesita login/ group membership) link nou - dropbox si de optiunea "usev6=if, if=eth0" ("usev6=if, if=ppp0", in cazul in care nu se folosesc dhcp si radvd, iar adresa ipv6 e alocata direct interfetei ppp)

It's worked for me.Most of the blogs I spam have bloekcd my IP quite effectively. But seriously, the IP's I've needed to block have never again posted anything on my site. Then again, I haven't had much of a problem with blog spam. Just a few here and there.