/ howto

pimp my vpn

previously on nerd.one

when you are using the sample configuration from my previous post, you may have encountered difficulties in some networks (port 500 and/or 4500 blocked). for this or any other reason, you might want to disable vpn.

mission accomplished

these are the corresponding on demand rules:

			<key>OnDemandRules</key>
			<array>
				<dict>
					<key>Action</key>
					<string>Connect</string>
				</dict>
				<dict>
					<key>InterfaceTypeMatch</key>
					<string>WiFi</string>
					<key>SSIDMatch</key>
					<array>
						<string>Name of my Home Network</string>
						<string>Company WiFi</string>
					</array>
					<key>Action</key>
					<string>Disconnect</string>
				</dict>
			</array>

screenshot: textedit. add some lines