Control: tag -1 + confirmed

On Mon, 14 May 2018 22:43:52 +0200, Axel Beckert wrote:

Hi Axel,

and thanks for your bug report.

I'm putting Barak in the loop as the author of the iodine-client-start
helper script.
 
> But what is odd is what iodine-client-start reports to me when starting
> up:
> 
> ~ # iodine-client-start
> ==== Creating IP-over-DNS tunnel over local network connection...
> ==== Local network interface: wlp3s0
> ==== Killing existing DNS tunnels...
> ==== Local address: 7128sec
> ==== Local network: 192.168.1.0/24
> ==== Local network router: 10.192.168.1
> 
> Please note the "Local address: 7128sec" line. It's always a different
> number, but it's always reported with the suffix "sec" — which is very
> odd.

Oops, that's odd indeed.
 
> Maybe some changes in the output format of net-tools or iproute2 caused
> this odd issue.

Sounds plausible.
And should be easy to check:

addr=$(ip -4 addr show dev ${interface} scope global \
    | tail -1 | awk '{print $2}')
…
echo ==== Local address: ${addr}


% ip -4 addr show dev eth0 scope global | tail -1 | awk '{print $2}' 
forever

"forever" doesn't sound like a typical IPv4 address either but it
somehow matches your 7128sec (in the sense that it's a duration, and
my static vs. your (probably) DHCP address).


% ip -4 addr show dev eth0 scope global          
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
    inet 192.168.0.33/24 brd 192.168.0.255 scope global eth0
       valid_lft forever preferred_lft forever

Looks like the line break causing the third line is new. *sigh*

Maybe "-oneline" would be helpful?

% ip -4 -oneline addr show dev eth0 scope global 
2: eth0    inet 192.168.0.33/24 brd 192.168.0.255 scope global eth0\       
valid_lft forever preferred_lft forever

% ip -4 -oneline addr show dev eth0 scope global | awk '{print $4}'
192.168.0.33/24


And the whole script:

# iodine-client-start
==== Creating IP-over-DNS tunnel over local network connection...
ERROR: No network interface found.

Oops.


if [ -z ${interface} ]; then
    interface=$(ifconfig -a | egrep '^[^ ].*encap:Ethernet' \
        | head -1 | awk '{print $1}')
fi


Ok, so the ifconfig output has changed as well (shouldn't affect you
as wlp3s0 is already found for you). *sigh*


When I set interface=eth0 manually in /etc/default/iodine-client,
I can run iodine-client-start successfully.


Good. So we need to fix the ip and ifconfig invocations one way or
another ...
Barak, do you have time to look into this issue?


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Judy Collins: Send In The Clowns

Attachment: signature.asc
Description: Digital Signature

Reply via email to