Package: vtun
Version: 3.0.4-2+b1
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: lucaslopez5...@gmail.com

Dear Maintainer,

I copied the example server file /usr/share/doc/vtun/examples/vtund-server.conf 
into
/etc/vtund.conf and enabled server mode in /etc/default/vtun. When I start the 
service
with systemctl I get the following error on the dmesg log:

[343358.769324] vtund[3002]: segfault at 0 ip 00005572cac05e34 sp 
00007ffc9a47f610 error 4 in vtund[5572cabff000+b000] likely on CPU 0 (core 0, 
socket 0)
[343358.769342] Code: 24 10 e8 2f 96 ff ff 85 c0 0f 88 0d 01 00 00 48 8b 44 24 
10 48 89 44 24 08 48 85 c0 0f 84 f0 00 00 00 48 89 c3 90 48 8b 6b 18 <66> 44 39 
7d 00 0f 85 d1 00 00 00 48 8b 73 08 4c 89 ef e8 55 97 ff

I checked the config and the manual but I haven't been able to use the package 
due to the segfault.
BTW, the autogenerated systemd unit has the attributes RemainAfterExit=yes, 
SuccessExitStatus=5 6,
so even on failure the unit appears as "active (exited)". Hence it needs a 
"systemctl restart",
"systemctl start" won't do anything which is a bit counterintuitive.

Have a nice day.

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-18-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages vtun depends on:
ii  libc6                      2.36-9+deb12u4
ii  liblzo2-2                  2.10-2
ii  libssl3                    3.0.11-1~deb12u2
ii  sysvinit-utils [lsb-base]  3.06-4
ii  udev                       252.22-1~deb12u1
ii  zlib1g                     1:1.2.13.dfsg-1

vtun recommends no packages.

vtun suggests no packages.

-- Configuration Files:
/etc/vtund.conf changed:
options {
  port 5000;            # Listen on this port.
  bindaddr { iface lo; };   # Listen only on loopback device.
  # Syslog facility
  syslog        daemon;
  # Path to various programs
  ppp           /usr/sbin/pppd;            
  ifconfig      /sbin/ifconfig;
  route         /sbin/route;
  firewall      /sbin/ipchains;
  ip            /sbin/ip;
}
default {
  compress no;          # Compression is off by default
  speed 0;              # By default maximum speed, NO shaping
}
cobra {
  passwd  Ma&^TU;       # Password
  type  tun;            # IP tunnel 
  proto udp;            # UDP protocol
  compress  lzo:9;      # LZO compression level 9
  encrypt  yes;         # Encryption
  keepalive yes;        # Keep connection alive
  up {
        # Connection is Up 
        # 10.3.0.1 - local, 10.3.0.2 - remote 
        ifconfig "%% 10.3.0.1 pointopoint 10.3.0.2 mtu 1450";
  };
}
cobra {
  passwd  Ma&^TU;       # Password
  type  tun;            # IP tunnel 
  proto udp;            # UDP protocol
  compress  lzo:9;      # LZO compression level 9
  encrypt  yes;         # Encryption
  keepalive yes;        # Keep connection alive
  up {
        # Connection is Up 
        # 10.3.0.1 - local, 10.3.0.2 - remote 
        ip "link set %% up multicast off mtu 1450";
        ip "-family inet addr add 10.3.0.1 peer 10.3.0.2 dev %%";
  };
}
lion {
  passwd  Ma&^TU;       # Password
  type  ether;          # Ethernet tunnel
  device tap0;          # Device tap0 
  proto udp;            # UDP protocol
  compress  lzo:1;      # LZO compression level 1 
  encrypt  yes;         # Encryption
  stat  yes;            # Log connection statistic 
  keepalive yes;        # Keep connection alive
  up {  
        # Connection is Up 
        # Assign IP address 
        ifconfig "%% 10.1.0.1 netmask 255.255.255.0";
                
        # Add route to net 10.2.0.0/24  
        route "add -net 10.2.0.0 netmask 255.255.255.0 gw 10.1.0.2";
        # Enable masquerading for net 10.2.0.0.0/24 
        firewall "-A forward -s 10.2.0.0/24 -d 0.0.0.0/0 -j MASQ";
  };
  down {
        # Connection is Down
        # Shutdown tap device. 
        ifconfig "%% down"; 
        # Disable masquerading for net 10.2.0.0.0/24 
        firewall "-D forward -s 10.2.0.0/24 -d 0.0.0.0/0 -j MASQ";
  };
}
viper { 
  passwd  TTT$bio;      # Password
  compress  yes;        # ZLIB compression level 1 
  encrypt  yes;         # Encryption
  up {
        # Connection is Up (established)
        # Assign IP addresses 10.0.0.1 - local, 10.0.0.2 - remote
        ppp "10.0.0.1:10.0.0.2 proxyarp";
  };
}
backup {
  passwd OnlyME;        # Password
  type pipe;            # Pipe tunnel
  speed 256:128;        # Shaping speed 256K IN and 128K OUT.
  encrypt yes;          # Encryption
  up {
        # Connection is Up 
        # Start shell and tar '/etc' directory to 
        # the stdout (pipe tunnel). 
        program /bin/sh "-c 'tar cf - /etc/*'";
  };
}
sz {
  passwd  OnlyME;       # Password
  type  tty;            # TTY tunnel
  speed 64;             # Shaping speed 64K IN/OUT
  encrypt  yes;         # Encryption
  up {
        # Connection is Up 
        # Send '/etc/profile' via ZMODEM to the
        # stdout(tty tunnel).
        program /bin/sh "-c 'sz /etc/termcap'";
  };
}


-- no debconf information

Reply via email to