<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=OpenConnect</id>
	<title>OpenConnect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=OpenConnect"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=OpenConnect&amp;action=history"/>
	<updated>2026-05-30T13:42:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=OpenConnect&amp;diff=32122&amp;oldid=prev</id>
		<title>Onny: Initial page</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=OpenConnect&amp;diff=32122&amp;oldid=prev"/>
		<updated>2026-05-30T09:20:22Z</updated>

		<summary type="html">&lt;p&gt;Initial page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[https://www.infradead.org/openconnect/ OpenConnect] is a free, open‑source client‑to‑site VPN that works with many commercial SSL‑VPN gateways, such as Cisco AnyConnect, Palo Alto GlobalProtect, Pulse Secure (including Pulse Connect Secure), Juniper Network Connect, Fortinet, F5 and Array Networks.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
Following example configures a permanent VPN connection using OpenConnect using the protocol &amp;lt;code&amp;gt;anyconnect&amp;lt;/code&amp;gt;.&amp;lt;syntaxhighlight lang=&amp;quot;nix&amp;quot;&amp;gt;&lt;br /&gt;
openconnect.interfaces.myvpn = {&lt;br /&gt;
  gateway = &amp;quot;vpn-ac.uni-heidelberg.de/2fa&amp;quot;;&lt;br /&gt;
  protocol = &amp;quot;anyconnect&amp;quot;;&lt;br /&gt;
  user = &amp;quot;myuser&amp;quot;;&lt;br /&gt;
  passwordFile = &amp;quot;/etc/secrets/openconnect-secret&amp;quot;;&lt;br /&gt;
  extraOptions = {&lt;br /&gt;
    useragent = &amp;quot;AnyConnect&amp;quot;;&lt;br /&gt;
    non-inter = true;&lt;br /&gt;
  };&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Further you can also provide TOTP secrets for two-factor-authentications (which should be &amp;lt;u&amp;gt;avoided in production&amp;lt;/u&amp;gt; environments since it decreases the security concept drastically) and use &amp;lt;code&amp;gt;vpn-slice&amp;lt;/code&amp;gt; to achieve split tunneling instead of routing all traffic through the VPN gateway.&amp;lt;syntaxhighlight lang=&amp;quot;nix&amp;quot;&amp;gt;&lt;br /&gt;
openconnect.interfaces.myvpn = {&lt;br /&gt;
  [...]&lt;br /&gt;
  extraOptions = {&lt;br /&gt;
    token-mode = &amp;quot;totp&amp;quot;;&lt;br /&gt;
    token-secret = &amp;quot;base32:ABC123&amp;quot;;&lt;br /&gt;
    script = &amp;quot;${pkgs.vpn-slice}/bin/vpn-slice 129.206.0.0/16&amp;quot;;&lt;br /&gt;
  };&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;br /&gt;
[[Category:VPN]]&lt;/div&gt;</summary>
		<author><name>Onny</name></author>
	</entry>
</feed>