GW6C does not install a gw6c.conf file

Bug #438658 reported by Vin Shankar
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gw6c (Ubuntu)
Fix Released
Undecided
Ezra Reeves
Nominated for Karmic by Thomas Dreibholz

Bug Description

Binary package hint: gw6c

background: gw6c requires a config file, which should be installed as /etc/gw6c/gw6c.conf to run.

Expected behaviour: gw6c package installs a basic config file, providing an anonymous single-host tunnel and with any ubuntu-specific changes, is installed at /etc/gw6c/gw6c.conf

Actual behaviour: No config file installed. An example, which requires modification to be usable even for anonymous connections, is installed (gzipped) at /usr/share/doc/gw6c/examples/gw6c.conf.sample.gz but many users would not know where to find this, and no documentation is provided explaining the correct location for the config file.

Related branches

Revision history for this message
Ezra Reeves (ezrareeves) wrote :

Does it actually install a config file for you? On my system there was no config and I had to make one myself. After I make one I can see the tunnel with ifconfig and can ping it from my system but am unable to use it to browse ipv6 sites in firefox. With tspc I had no problems.

Revision history for this message
Ezra Reeves (ezrareeves) wrote :

That is only when i use gw6c -f /etc/gw6c/gw6c.conf which I shouldn't have to do.

Revision history for this message
Thomas Dreibholz (dreibh) wrote :

The installation of gw6c (version 6.0.1dfsg.1-4 under Karmic) creates an empty directory /etc/gw6c. The required config file is missing => gw6c cannot start and the system will get no IPv6 connectivity.

To manually fix the problem, I have extracted /usr/share/doc/gw6c/examples/gw6c.conf.sample.gz to /etc/gw6c/gw6c.conf. The example configuration needs the following changes to actually work:
if_tunnel_v6v4=sit1
if_tunnel_v6udpv4=tun0
if_tunnel_v4v6=sit0
template=linux

I think this installation bug is of high importance, since it prevents less-experienced users from getting IPv6 connectivity.

Changed in gw6c (Ubuntu):
status: New → Confirmed
Ezra Reeves (ezrareeves)
summary: - GW6C init script doesn't look for a config file
+ GW6C does not install a gw6c.conf file
Changed in gw6c (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Ezra Reeves (ezrareeves)
Revision history for this message
Vin Shankar (v-shankar) wrote :

Description updated - gw6c now looks for a config file, but none is installed by default, as Thomas and Ezra have noted.

At least I was able to copy in my old gw6c.conf from another machine and have it work now...

description: updated
Revision history for this message
Ezra Reeves (ezrareeves) wrote :

Fixed:

gw6c (6.0.1dfsg.1-4ubuntu1) karmic; urgency=low

  * debian/rules
    - Took out make call in install-default gw6c.conf now gets installed
      from debian/gw6c.conf(was creating an unusable config)
      Fixes (LP: #438658 )
  * debian/gw6c.examples
    - Removed replaced with the good config.

Changed in gw6c (Ubuntu):
assignee: Ezra Reeves (ezrareeves) → nobody
status: In Progress → Confirmed
Revision history for this message
Ezra Reeves (ezrareeves) wrote :

Fixed gw6c.conf perms on install

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

Instead of having the full conf file in debian, it would be easier to set the variable used by the Makefile to generate the conf:
 @sed -e "s+@ifname_v4v6@+$(PLATFORM_V4V6)+" \
      -e "s+@ifname_v6udpv4@+$(PLATFORM_V6UDPV4)+" \
      -e "s+@ifname_v6v4@+$(PLATFORM_V6V4)+" \
      -e "s+@conf_template@+$(PLATFORM)+" \
      -e "s+@conf_gw6_dir@+$(INSTALL_DIR)+"

I've quickly checked, and I've been able to generate the same file as you put in Debian.
This will also reduce the diff with Debian. Please update your debdiff.

Thanks,
Fabrice

Changed in gw6c (Ubuntu):
assignee: nobody → Ezra Reeves (ezrareeves)
status: Confirmed → In Progress
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

6.0.1dfsg.1-6 which is in Debian unstable and will be synced into Ubuntu once it hits testing, now installs a sample conf and fixes the make invocation to properly generate the conf as well.

gw6c (6.0.1dfsg.1-6) unstable; urgency=low

   [ ???????? ???????????????? (Ahmed El-Mahmoudy) ]
   * debian/rules:
     + Simplify rules file.
     + Fix make invocation to properly generate gw6c.sample.conf
     + Install gw6c.sample.conf also in /etc/gw6c/gw6c.conf (LP: #438658)
   * debian/patches: remove old dpatch files.
   * debian/control:
     + Build-Depend on debhelper >= 7.0.50~ to support debhelper overrides.
     + Remove quilt from Build-Depends.
     + Added ${misc:Depends} to Depends.
   * debian/dirs: Remove dirs that will be created by dh_install anyways.

   [ Craig Small ]
   * Added a keyfile check bypass to init
   * Documented default file

 -- Craig Small <email address hidden> Fri, 11 Dec 2009 16:58:31 +1100

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gw6c - 6.0.1dfsg.1-8

---------------
gw6c (6.0.1dfsg.1-8) unstable; urgency=low

  * Removed a quote out of rules

gw6c (6.0.1dfsg.1-7) unstable; urgency=low

  * Conditionally depend on iproute
  * Put correct template in for freebsd

gw6c (6.0.1dfsg.1-6) unstable; urgency=low

  [ ???????? ???????????????? (Ahmed El-Mahmoudy) ]
  * debian/rules:
    + Simplify rules file.
    + Fix make invocation to properly generate gw6c.sample.conf
    + Install gw6c.sample.conf also in /etc/gw6c/gw6c.conf (LP: #438658)
  * debian/patches: remove old dpatch files.
  * debian/control:
    + Build-Depend on debhelper >= 7.0.50~ to support debhelper overrides.
    + Remove quilt from Build-Depends.
    + Added ${misc:Depends} to Depends.
  * debian/dirs: Remove dirs that will be created by dh_install anyways.

  [ Craig Small ]
  * Added a keyfile check bypass to init
  * Documented default file

gw6c (6.0.1dfsg.1-5) unstable; urgency=low

  * Adjust README and init script to die if no server key or config file
  * Closes: #554911
  * Added Ubuntu patch LP:418176
  * Removed -c option and fixed default config file path in gw6c.8
  * clarified GPL version of debian files
  * Changed to quilt patching and source format
 -- Ubuntu Archive Auto-Sync <email address hidden> Mon, 18 Jan 2010 07:30:42 +0000

Changed in gw6c (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
volkris (volkris) wrote :

The new version shows up in Lucid, but not Karmic, according to packages.u.c

Revision history for this message
WinstonChurchill (winstonchurchill) wrote :

This is still not fixed in Karmic

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.