Summary: | net-misc/openvpn does not allow to adjust the MTU | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | helge.preuss |
Component: | Current packages | Assignee: | Alon Bar-Lev (RETIRED) <alonbl> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
helge.preuss
2008-02-25 11:02:15 UTC
Why don't you specify this in the configuration file? You can also use baselayout in order to do so. At /etc/conf.d/net: tuntap_tun1="tun" mtu_tun1="1256" config_tun1="null" # ln -s net.lo /etc/init.d/net.tun1 # /etc/init.d/net.tun1 start As far as I can see, this option can not be supplied via the OpenVPN config file, only as command line parameter. As for the baselayout solution, I tried it and it does not work. openvpn ignores the values in /etc/conf.d/net and substitutes its own (1500), even if you have started your tunnel device with a different MTU before starting openvpn. If it /would/ work, it would have the additional drawback that you'd have to start net.tunX before openvpn. Oops, my bad. Apparently all command line parameters to openvpn can be written to openvpn.conf. tun-mtu 1256 in the openvpn.conf works fine. Forget about this and have a nice day! . |