Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159396 - /etc/conf.d/net.example tun (tun/tap) problem
Summary: /etc/conf.d/net.example tun (tun/tap) problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-12-29 10:29 UTC by GNUtoo
Modified: 2007-01-10 12:20 UTC (History)
0 users

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 GNUtoo 2006-12-29 10:29:19 UTC
here the whole tun/tap part
#-----------------------------------------------------------------------------
# TUN/TAP
# For TUN/TAP support emerge net-misc/openvpn or sys-apps/usermode-utilities
#
# You must specify if we're a tun or tap device. Then you can give it any
# name you like - such as vpn
#tuntap_vpn="tun"
#config_tun1=( "192.168.0.1/24")

# Or stick wit the generic names - like tap0
#tuntap_tap0="tap"
#config_tap0=( "192.168.0.1/24")

# For passing custom options to tunctl use something like the following.  This
# example sets the owner to adm
#tunctl_tun1="-u adm"
# When using openvpn, there are no options

#-----------------------------------------------------------------------------

adding the folowing to /etc/conf.d/net doesn't work
tuntap_vpn="tun"
config_tun1=( "192.168.0.1/24")
we should add insead
tuntap_tun0="tun"
config_tun0=( "192.168.0.1/24")
and ln -s /etc/init.d/net.lo to /etc/init.d net.tun0
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-12-29 10:41:13 UTC
So the only error is really
config_tun1=( "192.168.0.1/24")

as it should read
config_vpn=( "192.168.0.1/24")

The linkage of net.lo to net.vpn or net.tap0 is in the handbook and does not really belong in the config documentation imo. Anyway, the above is fixed in our SVN and will be in the next full release.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-01-10 12:20:22 UTC
This should be fixed in baselayout-1.13.0_alpha11. Re-open if you disagree.