Tuesday, January 19, 2021

Help with IPv6 on new routing table and netplan config

Hello all,

I'm not having any luck with moving ipv6 requests over the wlan0 interface to a new routing table.

My situation: NodeJS program uses the default eth0 interface to connect to a local server that has MongoDB and communicates over IPC. Eth0 also has internet connectivity. Everything is fine there. However, I want to connect to services on the internet via a 4g hotspot which I'm connected through wlan0.

I'm unable to use the non-default network interface (wlan0) within node and can't use curl without sudo when specifying the wlan0 interface.

My google search directed me to create a new routing table. I was able to successfully accomplish what I needed with ipv4 with a custom netplan config, but I can't get ipv6 to work.

network: version: 2 wifis: addresses: - 172.20.10.2/28 - 2607:fb90:17d7:a98d:xxxx:xxxx:xxxx:xxxx/64 gateway4: 172.20.10.0 gateway6: 2607:fb90:17d7:a98d::1 routes: - to: 172.20.10.2/28 via: 172.20.10.0 table: 2 - to: 2607:fb90:17d7:a98d:xxxx:xxxx:xxxx:xxxx/64 via: 2607:fb90:17d7:a98d::1 table: 2 routing-policy: - from: 172.20.10.0 table: 2 - from : 2607:fb90:17d7:a98d::0 table: 2 

I'm much more familiar with IPv4 than IPv6. Is my gateway6 correct? Where do I find my IPv6 gateway?

With current config:

$ sudo curl --interface 2607:fb90:17d7:a98d:xxxx:xxxx:xxxx:xxxx http://ip.jsontest.com curl: (28) Failed to connect to ip.jsontest.com port 80: Connection timed out 


No comments:

Post a Comment