Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to jool version 4.x #2

Open
christf opened this issue Sep 15, 2019 · 6 comments
Open

upgrade to jool version 4.x #2

christf opened this issue Sep 15, 2019 · 6 comments
Assignees

Comments

@christf
Copy link
Contributor

christf commented Sep 15, 2019

hopefully resolving pmtu issues.

@Jasper-Ben Jasper-Ben self-assigned this Sep 21, 2019
@Jasper-Ben
Copy link
Member

Currently working on it.

@Jasper-Ben Jasper-Ben changed the title upgrade to newest jool version upgrade to jool version 4.x Sep 21, 2019
@Jasper-Ben
Copy link
Member

Jasper-Ben commented Sep 21, 2019

I am still having trouble compiling 4.x Jool in Alpine due to the usage of musl libc. However, in the dev branch there is a Dockerfile-Debian. This image should work for now, I will continue working on the Alpine image.

@Jasper-Ben
Copy link
Member

Done with 113e21e

@christf christf reopened this Oct 2, 2019
@christf
Copy link
Contributor Author

christf commented Oct 2, 2019

jool4 is configured differently. I had to manually create this file:

{
	"comment": "Freifunk Magdeburg NAT64",
	"instance": "default",
	"framework": "netfilter",

	"global": {
		"pool6": "64:ff9b::/96",
		"manually-enabled": true,

		"zeroize-traffic-class": false,
		"override-tos": false,
		"tos": 0,
		"mtu-plateaus": [1280, 1006, 508, 296, 68],
		"maximum-simultaneous-opens": 16,
		"source-icmpv6-errors-better": true,
		"handle-rst-during-fin-rcv": false,
		"f-args": 8,

		"logging-bib": false,
		"logging-session": false,

		"address-dependent-filtering": true,
		"drop-icmpv6-info": false,
		"drop-externally-initiated-tcp": false,

		"udp-timeout": "5:00",
		"tcp-est-timeout": "4:00:00",
		"tcp-trans-timeout": "4:00",
		"icmp-timeout": "1:00",

		"ss-enabled": false,
		"ss-flush-asap": true,
		"ss-flush-deadline": 2000,
		"ss-capacity": 512,
		"ss-max-payload": 1452
	},

	"pool4": [
		{
			"mark": 66,
			"protocol": "TCP",
			"prefix": "10.11.12.2",
			"port range": "1024-65535"
		}, {
			"mark": 66,
			"protocol": "UDP",
			"prefix": "10.11.12.2",
			"port range": "1024-65535"
		}, {
			"mark": 66,
			"protocol": "ICMP",
			"prefix": "10.11.12.2",
			"port range": "61001-65535"
		}
	]
}

and inside the container run
jool file handle

to make this all work.

@Jasper-Ben
Copy link
Member

Jasper-Ben commented Oct 3, 2019

I see. I added a new pull request #7. I am not sure if that's what you meant, so please take a look at it first. Does this mean that other config files such as jool.env or netsocket.json etc. are obsolete?

@christf
Copy link
Contributor Author

christf commented Oct 4, 2019

This Config is required to run jool. The env Config is a Config for the Container. I'd keep the Config in the Container Abstraktion Level and generate The jool Config base in These few variables.

An alternative is requiring users to Mount the jool Config file into the Container. This is more flexible and requires more jool knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants