Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

tiddles.org 5.6KB

  1. Intelligence

1.a. What we know.

1.b. Devices

Workstation
Cheap ISP Router
SERVER
Clients
  1. SITUATION

Uncooperative hardware talks on IPV4.

  1. MISSION

Make Server tunnel 6to4 traffic translation from SERVER towards Workstation, and link both extremes of the hardware via IPV6

  1. Logistics

Crap HP Computer. Crap Openwrt converted Telecom ex-dsl modem. Stallman Signed IBM T40. Internet's all knowing databases. Debian repos and documentation. Lennart Poettering hatred. Mate and Cigarettes.

  1. Objectives.

1) Recreate a scenario in which those settings would happen. 2) Script that scenario and make it portable and usable according to the wishes of Captain Ahab.

SIGNED

J2/A/20 - 260920JUL20 - 012018ELP

End of preparatory order. --------------------------------

RESOLUTION

HP COMPUTER WILL BE CLIENT - 192.168.0.166

OPENWRT BOX WILL BE COMCAST CRIPPLED IPV4 ROUTER

STALLMAN WILL BE SERVER - 192.168.0.204

Snoopy will be witness.

STEPS I'll TAKE

1) DISABLE WIRELESS ON ALL DEVICES 2) DISABLE IPV6 on OpenWRT - PROVIDES WIFI

RESOURCE FOR IPv6 CONVERSION https://6to4.version6.ru/debian/

TRIAL ONE - THE SERVER TUNNEL

1st step

On Debian, a stanza in /etc/network/interfaces of the form

auto 6to4 iface 6to4 inet6 6to4 local YOUR-IPv4-ADDRESS-HERE

2nd step

IBM% sudo apt install iproute2 ipv6calc radvd

● radvd.service - Router advertisement daemon for IPv6 Loaded: loaded (/lib/systemd/system/radvd.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2020-07-28 14:56:51 -03; 42ms ago Docs: man:radvd(8) Process: 1710 ExecStartPre=/usr/sbin/radvd --logmethod stderr_clean --configtest (cod

Then run...

https://github.com/barak/auto6to4/blob/master/auto6to4

IBM% sudo ./6to4.sh -i 192.168.0.204 -I enp2s1 start IBM% net 127.0.0.1 192.168.0.204 192.168.0.255 0.0.0.0 0.0.0.0 192.168.0.204 0.0.0.0 192.168.0.204 IBM% ping6 www.google.com PING www.google.com(2800:3f0:4002:80b::2004 (2800:3f0:4002:80b::2004)) 56 data bytes ^C --- www.google.com ping statistics --- 47 packets transmitted, 0 received, 100% packet loss, time 156ms

AFTER REBOOT

IBM% ip a 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp2s1: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:09:6b:53:be:01 brd ff:ff:ff:ff:ff:ff inet 192.168.0.204/24 brd 192.168.0.255 scope global dynamic enp2s1 valid_lft 41470sec preferred_lft 41470sec inet6 fe80::209:6bff:fe53:be01/64 scope link valid_lft forever preferred_lft forever 3: sit0@NONE: mtu 1480 qdisc noop state DOWN group default qlen 1000 link/sit 0.0.0.0 brd 0.0.0.0 4: 6to4@NONE: mtu 1480 qdisc noqueue state UNKNOWN group default qlen 1000 link/sit 192.168.0.204 brd 0.0.0.0 inet6 2002:c0a8:cc::1/16 scope global valid_lft forever preferred_lft forever inet6 ::192.168.0.204/96 scope global valid_lft forever preferred_lft forever

NO PING NO LUCK

ANOTHER REBOOT

IBM% sudo ifup 6to4 ifup: interface 6to4 already configured

IBM% sudo emacs -nw /etc/radvd.conf

interface LAN { AdvSendAdvert on; MinRtrAdvInterval 3; MaxRtrAdvInterval 10; prefix ::/64 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; };

ANOTHER REBOOT

<<<<<<< HEAD sys-devices-virtual-net-6to4.device loaded active plugged /sys/devices/virtual/net/6to4 sys-devices-virtual-net-sit0.device loaded active plugged /sys/devices/virtual/net/sit0 sys-subsystem-net-devices-6to4.device loaded active plugged /sys/subsystem/net/devices/6to4 sys-subsystem-net-devices-enp2s1.device loaded active plugged 82540EP Gigabit Ethernet Controller (Mobile) (Thinkpad) sys-subsystem-net-devices-sit0.device loaded active plugged /sys/subsystem/net/devices/sit0

======= >>>>>>> c25b3760a7

<<<<<<< HEAD I actually don't need to touch the client since I'm on V4 on it... All I care is for the server to have 6 and get coms with that.

======= >>>>>>> c25b3760a7