Bug 17752 - openconnect creates tunnel, but network unreachable
Summary: openconnect creates tunnel, but network unreachable
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-13 19:54 CET by Bjarne Thomsen
Modified: 2020-01-17 15:03 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Bjarne Thomsen 2016-02-13 19:54:24 CET
openconnect connects to Cisco https VPN
The tunnel is created, but IPs on the other side is unreachable.
openconnect-6.00-3.mga5
vpnc-0.5.3-11.mga5

openconnect-6.00 works in debian without any problems.
How can I locate where it goes wrong?
It also works in Fedora23, but with openconnect-7.0

Bjarne
Comment 1 Marja Van Waes 2016-02-13 22:06:56 CET
(In reply to Bjarne Thomsen from comment #0)
> openconnect connects to Cisco https VPN
> The tunnel is created, but IPs on the other side is unreachable.
> openconnect-6.00-3.mga5
> vpnc-0.5.3-11.mga5
> 
> openconnect-6.00 works in debian without any problems.
> How can I locate where it goes wrong?

I don't know, maybe a packager knows.

> It also works in Fedora23, but with openconnect-7.0
> 
> Bjarne

Assigning to all packagers collectively, since this package has no maintainer

CC: (none) => marja11
Assignee: bugsquad => pkg-bugs

Comment 2 Bjarne Thomsen 2016-02-28 17:34:42 CET
I have compiled and build openconnect downloaded from
http://www.infradead.org/openconnect
I had to use liblz4 from current cauldron.
The nameserver was correctly entered into /etc/resolv.conf,
but there were no connection through the tun0.
I then had the idea that I needed som help from shorewall.
In the control center I selected
"Set up your personal firewall"
Please select the interfaces that will be protected by the firewall:
v Ethernet: tun0
OK

and now it works!
There must be a way to call shorewall from within the script
/etc/vpnc/vpnc-script

This script was also downloaded from www.infradead.org.

Bjarne
Comment 3 Bjarne Thomsen 2016-03-05 17:12:46 CET
The openconnect package in mga5 works with the same procedure,
so the solution is a proper integration of openconnect and shorewall
in the control center.
Comment 4 Bjarne Thomsen 2016-03-29 19:51:11 CEST
I have now tried openconnect in mga6.
It works fine, except (as above) I have to set the firewall by using
"Set up your personal firewall" in the MCC.
Bjarne Thomsen 2016-03-29 19:52:07 CEST

Version: 5 => Cauldron
Hardware: i586 => All

Comment 5 Bjarne Thomsen 2016-08-29 12:18:59 CEST
This still applies for openconnect-6.0.0-4.
I have to manually enable the firewall protection of tun0.
This is not very elegant. There must be a way to do it from
openconnect.
Comment 6 Bjarne Thomsen 2016-08-29 14:46:05 CEST
It turns out that the "way" evidently is the gnutls package itself!
openconnect only requires lib64gnutls30 to install, but to function
properly it requires gnutls.
The user is not nesessarily aware of this.
Comment 7 Bjarne Thomsen 2016-08-29 15:38:23 CEST
Sorry. I was wrong. openconnect did not work on a fresh install,
even if gnutls had been installed.
Instead the private firewall did remember tun0 between boots.
You just have to run the private firewall once, and that is OK.
Comment 8 Bjarne Thomsen 2016-12-11 11:14:49 CET
This bug is still present in cauldron (I had to re-install mga6).
The tunnel was created, but nslookup could not get through.
I then remembered the trick with "Set your private firewall".
Only this time it was hanging, and I had to exit the MCC.
Maybe this problem is unrelated.
Now openconnect is working after a re-boot.
What is going on?
Comment 9 Bjarne Thomsen 2017-07-12 19:37:23 CEST
Now it alway works if I set the firewall for the tunnel device.
Comment 10 Bjarne Thomsen 2019-11-07 23:31:32 CET
I think the problem was, that the tunnel needed a firewall. But this bug is outdated.
Comment 11 Bjarne Thomsen 2020-01-17 14:06:22 CET
You can remove this bug.
Comment 12 José Jorge 2020-01-17 15:03:48 CET
In fact you can do it by yourself...

CC: (none) => lists.jjorge
Status: NEW => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.