Giter VIP home page Giter VIP logo

vyatta-cjdns's Issues

feature: use nat66 on tun interface for ethernet interface with dhcp6/radvd

hello,

it dawned on me that since EdgeRouter has the kernel/netfilter module ip6table_nat it is then possible to configure an interface with NAT6 -- It could have address fd00::/64 and masquerade between interface tun0 for addresses in fc00::/8

This feature never made it into openwrt / meshbox simply because it is bad security practice and it depends on kernel modules not typically selected / built for each target cpu.

What is the best way to go about doing this? Would a script suffice? eg
/opt/vyatta/sbin/vyatta-nat66-cjdns enable

I can test it and report back if you or anyone are interested in this feature, cheers.
-w

Failing to list peers and identity, cjdns v 19.1

kris@ubnt:$ show interfaces cjdns tun0 peers
Traceback (most recent call last):
File "/opt/vyatta/sbin/vyatta-cjdns-readconf", line 9, in
data = json.load(data_file)
File "/usr/lib/python2.7/json/init.py", line 278, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 24 column 21 (char 669)
Traceback (most recent call last):
File "/opt/vyatta/sbin/vyatta-cjdns-readconf", line 9, in
data = json.load(data_file)
File "/usr/lib/python2.7/json/init.py", line 278, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 24 column 21 (char 669)
Traceback (most recent call last):
File "/opt/vyatta/sbin/vyatta-cjdns-peerstats", line 69, in
cjdns = connecttoadmin(bindaddress[0], bindaddress[1], bindpassword)
IndexError: list index out of range
kris@ubnt:
$ show interfaces cjdns tun0 identity
Traceback (most recent call last):
File "/opt/vyatta/sbin/vyatta-cjdns-readconf", line 9, in
data = json.load(data_file)
File "/usr/lib/python2.7/json/init.py", line 278, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 24 column 21 (char 669)
kris@ubnt:~$ configure
[edit]
kris@ubnt# set interfaces cjdns tun0 admin-bind-address 127.0.0.1:64901
[edit]
kris@ubnt# set interfaces cjdns tun0 admin-password puf6ukkfzsrvgf06sll4tm4w34zzyqj
[edit]
kris@ubnt# commit
[ interfaces cjdns tun0 admin-bind-address 127.0.0.1:64901 ]
Traceback (most recent call last):
File "/opt/vyatta/sbin/vyatta-cjdns-updateconf", line 9, in
data = json.load(data_file)
File "/usr/lib/python2.7/json/init.py", line 278, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 24 column 21 (char 669)

[ interfaces cjdns tun0 admin-password puf6ukkfzsrvgf06sll4tm4w34zzyqj ]
Traceback (most recent call last):
File "/opt/vyatta/sbin/vyatta-cjdns-updateconf", line 9, in
data = json.load(data_file)
File "/usr/lib/python2.7/json/init.py", line 278, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 24 column 21 (char 669)

Commit failed
[edit]
kris@ubnt#

vyos 1.2.x

Hi,
I was wondering if 1.2.x is supported. If not what would have to be done to support it?

Greetings Jonas

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.