Skip to content

phantun_client missed ipv6 addr on tun0 #233

@a0s

Description

@a0s

Looks like a bug:

> phantun_client --help
--tun-local6 <IP>                [default: fcc8::1]
--tun-peer6 <IP>                 [default: fcc8::2]

> phantun_server --help
--tun-local6 <IP>                [default: fcc9::1]
--tun-peer6 <IP>                 [default: fcc9::2]

When i start

RUST_LOG=trace phantun_client \
--local 104.248.91.157:1111 \
--remote 157.245.78.39:2222 \
--tun-local 192.168.200.1 \
--tun-peer 192.168.200.2 \
--tun-local6 fcc8::1 \
--tun-peer6 fcc8::2 \
--tun tun0

> ip a show tun0
tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen
 500
    link/none
    inet 192.168.200.1 peer 192.168.200.2/32 scope global tun0
       valid_lft forever preferred_lft forever
    inet6 fe80::d76c:d7f7:698d:4e6f/64 scope link stable-privacy
       valid_lft forever preferred_lft forever
>>>WHERE IS MY fcc8::* ?!?<<<

But phantun_server works as it should:

RUST_LOG=trace phantun_server --local 2222 --remote 127.0.0.1:51820 --tun-local 192.168.201.1 --tun-peer 192.168.201.2 --tun-local6 fcc9::1 --tun-peer6 fcc9::2 --tun tun0

>ip a show tun0
17: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none
    inet 192.168.201.1 peer 192.168.201.2/32 scope global tun0
       valid_lft forever preferred_lft forever
    inet6 fcc9::1 peer fcc9::2/128 scope global                  <<<=== OK, ITS HERE
       valid_lft forever preferred_lft forever
    inet6 fe80::cc20:2f04:1a29:51f2/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever

Versions:

phantun_client --version
Phantun Client 0.8.1
phantun_server --version
Phantun Server 0.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions