Git Product home page Git Product logo

nat64's People

Contributors

cvmiller avatar jh3141 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nat64's Issues

Autodetection of IP6 addresses not working

The section of the script that detects IPv6 addresses isn't working for me. There seem to be two distinct problems. The first is pretty simple:

WAN_IP6=$(ip addr show dev eth0.2 | grep "inet6" | grep global | head -1| awk '
{print $2}' | cut  -f 1 -d '/')

I don't have an eth0.2 device, so this isn't working for me. I presume this should be $WAN instead.

The other problem is the detection of LAN_IP6, which isn't producing any results for me. Running through the commands in the pipeline, I get results up as far as grep noprefixroute, but the only result there is this one:

inet6 fdcf:101c:d870::1/60 scope global noprefixroute

which is obviously filtered by the following grep -v 'inet6 fd'.

I'm not sure if removing this filter works for me or not -- when I do so I successfully get the network to start, but the ping test at the end of the script is failing. Whether this is caused by some other error or this address issue, I don't know.

Not working on Latest OpenWRT Trunk

It gives out an error saying that the LAN interface doesn't have a GUA Adress, witch it has, and after analyzing the script it will check for a valid WAN6 IPv6 Adress, I have to recommend you to remove that, because for example, my ISP (MEO, Portugal ) doesn't give out IP adresses to the WAN, only a Prefix Pelegation Prefix, and it will give out an error in those cases.

Hope you can help me! :D

PS's:
After I remove the IPv6 checks it gives out these errors:

root@OpenWrt:~# /root/nat64_start.sh -w eth0.12 -6 eth0.12
=== Check that WAN interface is present and up
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
=== Collected address info:
=== WAN4 81.193.95.230
=== WAN6
=== LAN6
=== NAT64 Prefix 64:ff9b::/96
iptables: Bad rule (does a matching rule exist in that chain?).
ip6tables: Bad rule (does a matching rule exist in that chain?).
killall: tayga: no process killed
mv: can't rename '/etc/tayga.conf': No such file or directory
=== Making tun device: nat64
Incorrect number of arguments on line 4
Device "nat64" does not exist.
Cannot find device "nat64"
rm: can't remove '/tmp/db/tayga/dynamic.map': No such file or directory
Cannot find device "nat64"
Error: any valid address is expected rather than "dev".
Cannot find device "nat64"
Cannot find device "nat64"
=== Testing tayga
PING 64:ff9b::8.8.4.4 (64:ff9b::808:404): 56 data bytes

--- 64:ff9b::8.8.4.4 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
Pau!

Before I removed this happened:

root@OpenWrt:~# /root/nat64_start.sh -w eth0.12 -6 eth0.12
=== Check that WAN interface is present and up
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
=== Collected address info:
=== WAN4 81.193.95.230
=== WAN6
=== LAN6
=== NAT64 Prefix 64:ff9b::/96
LAN GUA IPv6 not detected. NAT64 requires end to end IPv6 connectivity

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.