IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
irc:openbsd:ipv6 [2019/11/13 07:06]
jrmu
irc:openbsd:ipv6 [2020/07/14 13:07] (current)
jrmu
Line 60: Line 60:
  
 The first one sets the device to use the static IPv6 address 2001:0db8:: with a /48 subnet, and the second one creates another IPv6 address 2001:​0db8:​0000:​0000:​9b1d:​3511:​387e:​143a with a /48 subnet, aliased to the first IPv6 address. In this way, you can create dozens of unique IPv6 addresses so that each user on a shell account or bouncer can get a unique IPv6 address. The first one sets the device to use the static IPv6 address 2001:0db8:: with a /48 subnet, and the second one creates another IPv6 address 2001:​0db8:​0000:​0000:​9b1d:​3511:​387e:​143a with a /48 subnet, aliased to the first IPv6 address. In this way, you can create dozens of unique IPv6 addresses so that each user on a shell account or bouncer can get a unique IPv6 address.
 +
 +You will also need to specify the default gateway in /​etc/​mygate:​
 +
 +<​code>​
 +192.168.1.1
 +2001:​0db8:​0000:​0000::​1
 +</​code>​
  
 Sometimes, to restart networking, I will run: Sometimes, to restart networking, I will run:
Line 70: Line 77:
  
 Watch out! Iked, without the -6 flag, will block all IPv6 traffic. Watch out! Iked, without the -6 flag, will block all IPv6 traffic.
 +
 +If you later decide you want to add a new ipv6 address, use ifconfig:
 +
 +<​code>​
 +$ doas ifconfig if0 inet6 2001:​0db8::/​64
 +</​code>​
 +
 +To delete the IPv6 address:
 +
 +<​code>​
 +$ doas ifconfig if0 inet6 2001:​0db8::/​64 delete
 +</​code>​
 +
 +Replace if0 with your specific interface.
 +
 +----
 +
 +To test if an IPv6 address is working, you can use netcat to connect to an IRC network that supports IPv6:
 +
 +<​code>​
 +$ nc -s 2001:0db8:: ipv6.ircnow.org 6667
 +nick newnick
 +user newuser * * :newuser
 +PING :12345
 +PONG :12345
 +</​code>​
 +
 +If that loads a message, then you configured the IPv6 address 2001:0db8:: correctly.