Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141335 - net-dialup/l2tpns: L2TP server for high-volume and high-availability applications
Summary: net-dialup/l2tpns: L2TP server for high-volume and high-availability applicat...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://sourceforge.net/projects/l2tpns
Whiteboard:
Keywords: EBUILD
Depends on: 140616
Blocks:
  Show dependency tree
 
Reported: 2006-07-21 14:05 UTC by Kevin Cody Jr.
Modified: 2017-07-21 09:12 UTC (History)
3 users (show)

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


Attachments
l2tpns-2.1.19.ebuild (l2tpns-2.1.19.ebuild,1.32 KB, text/plain)
2006-07-21 14:06 UTC, Kevin Cody Jr.
Details
Enforces authentication to CLI interface, even from localhost. (l2tpns-always-auth-cli.patch,1.07 KB, patch)
2006-07-21 14:07 UTC, Kevin Cody Jr.
Details | Diff
l2tpns init script (l2tpns-init,860 bytes, text/plain)
2006-07-21 14:07 UTC, Kevin Cody Jr.
Details
l2tpns conf.d file (l2tpns-conf,241 bytes, text/plain)
2006-07-21 14:07 UTC, Kevin Cody Jr.
Details
l2tpns-2.1.19-trust-localhost.patch (l2tpns-trust-localhost-2.1.19.patch,1.87 KB, patch)
2006-07-22 19:29 UTC, Andrew Ross (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Cody Jr. 2006-07-21 14:05:59 UTC
Requires libcli (Bug #141329)

Please find attached l2tpns-2.1.19.ebuild, a patch to tighten control interface authentication requirements, and conf/init scripts.

l2tpns is an L2TP server daemon intended for large connection volumes and high-availability applications, such as ISP and enterprise installations.

It is said to scale linearly to 64K simultaneous connections.

I suggest net-dialup/l2tpns.

- Kevin
Comment 1 Kevin Cody Jr. 2006-07-21 14:06:33 UTC
Created attachment 92446 [details]
l2tpns-2.1.19.ebuild
Comment 2 Kevin Cody Jr. 2006-07-21 14:07:04 UTC
Created attachment 92447 [details, diff]
Enforces authentication to CLI interface, even from localhost.
Comment 3 Kevin Cody Jr. 2006-07-21 14:07:19 UTC
Created attachment 92448 [details]
l2tpns init script
Comment 4 Kevin Cody Jr. 2006-07-21 14:07:36 UTC
Created attachment 92449 [details]
l2tpns conf.d file
Comment 5 Kevin Cody Jr. 2006-07-21 14:08:35 UTC
(In reply to comment #1)
> Created an attachment (id=92446) [edit]
> l2tpns-2.1.19.ebuild
> 

'ppc' architecture shouldn't be there.
Comment 6 Andrew Ross (RETIRED) gentoo-dev 2006-07-22 19:29:10 UTC
Created attachment 92528 [details, diff]
l2tpns-2.1.19-trust-localhost.patch

There's no need for a compile-time decision about requiring authentication for telnet connections from localhost.

This patch allows the user to decide if telnet connections from localhost are allowed unconditionally (current upstream behaviour), or are subject to the same restrictions as remote connections.

Previous discussion on this topic can be found at http://tinyurl.com/oecw3

A new config option has been added (cli_trust_localhost). Unless cli_trust_localhost=yes, connections from localhost are logged at debug level 3 (in the same way as remote connections), with the extra message "Treating localhost as remote".
Comment 7 Andrew Ross (RETIRED) gentoo-dev 2006-07-22 20:40:27 UTC
Kevin, why do you have the following in l2tpns-2.1.19.ebuild :

#Put CFLAGS from make.conf and disable builtin definition of log function
	sed -i.orig -e "s|-O3|${CFLAGS} -fno-builtin-log|" "${S}/Makefile" || die "failed to change CFLAGS in Makefile"

There is no need to modify Makefile to achieve this. The following approach is cleaner and won't break if upstream change -O3 to -O2 in Makefile.

inherit flag-o-matic

src_compile() {
    append-flags "-fno-builtin-log"
    # Override Makefile's hard-coded CFLAGS (including optimizations)
    emake CFLAGS="${CFLAGS}" || die "compile failed"
}

I don't actually see why -fno-builtin-log is needed, as the resulting binaries are identical to those built without it.
Comment 8 Kevin Cody Jr. 2006-07-23 23:25:32 UTC
Bravo on the auth patch; I hadn't the time to do it right and I'm glad to see that I won't have to.

The weird Makefile stuff was bequeathed entirely from the l2tpd ebuild.

I'd say that net-dialup/l2tpd probably wants attention about that, but that daemon isn't worth the bits it takes up in server mode. I'll know more in a week or so which packages are really usable for the client-side.

- Kevin
Comment 9 Andrew Ross (RETIRED) gentoo-dev 2006-08-02 23:28:11 UTC
Kevin, what package provides the ipsec init.d script referenced in your l2tpns init.d script (attachment #92448 [details])?

I'm using racoon (from net-firewall/ipsec-tools), so need "after racoon".
Comment 10 Warwick Chapman 2007-01-31 19:21:22 UTC
How's progress on this one... I need to get this working?  What can I do to get the ebuild into portage?
Comment 11 Łukasz Damentko (RETIRED) gentoo-dev 2008-05-27 13:32:02 UTC
aross was retired (#139633), reassigning remaining bugs.
Comment 12 Marek Szuba archtester gentoo-dev 2017-02-28 14:15:09 UTC
Is there still any interest in adding l2tpns to Gentoo? Upstream is still very much alive (the latest release, 2.2.1.2fdn3.19, is just over a month old), on the other hand we've already got ebuilds for several other still-actively-developed L2TP servers.

Should there still be user interest, I'll be happy to assist efforts in getting things ready. Otherwise, we'll close this bug as WONTFIX in 30 days (but feel free to reopen it if need be).