Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677940 - net-misc/netifrc - some net-vpn/wireguard config problems
Summary: net-misc/netifrc - some net-vpn/wireguard config problems
Status: RESOLVED DUPLICATE of bug 678184
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-13 23:12 UTC by Jochen Schlick
Modified: 2019-07-10 14:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Schlick 2019-02-13 23:12:57 UTC
Hi

I'm using wireguard with /etc/conf.d/net.

I originally had problems with wireguard's default MTU size too big for my environment so I tried to figure out how to get this set .... and found some problems....

# client config (server has 10.222.227.1)
config_wgvs="10.222.227.22/24"
wireguard_wgvs="/etc/wireguard/wgvs.conf"

1)  putting lines like the following in wgvs.conf
Address = 10.222.227.22
PostUp = blabla
MTU = 1360

--> result all in parsing errors when trying to start the wgvs interface (/etc/init.d/net.wgvs start)


2) putting the following line in /etc/conf.d/net 

mtu_wgvs="1360"  

--> results in nothing (because the interface seems not yet totally up)

 /etc/init.d/net.wgvs restart 
 * Caching service dependencies ...
[ ok ]
 * Bringing down interface wgvs
 *   Removing WireGuard interface wgvs ...                                                                                                                                                                                                               [ ok ]
 * Bringing up interface wgvs
Cannot find device "wgvs"                                 <---- MTU size setting....
 *   Creating WireGuard interface wgvs ...                                                                                                                                                                                                               [ ok ]
 *   Configuring WireGuard interface wgvs ...                                                                                                                                                                                                            [ ok ]
 *   10.222.225.27/24 ...                                                                                                                                                                                                                                [ ok ]



I solved it by using the postup() workaround way - but this is far away from elegance:

postup() {
        # for wireguard client
        [[ ${IFACE} == "wgvs" ]] && ip link set wgvs mtu 1360
        return
}
Comment 1 Ben Kohler gentoo-dev 2019-07-10 14:43:25 UTC

*** This bug has been marked as a duplicate of bug 678184 ***