IKEv2 VPN Server multi-arch Alpine-based image. Client support: macOS, iOS, Linux, Windows, Android.
203
IKEv2 VPN Server based on Alpine image. Support OS clients - macOS, iOS, Linux, Windows, Android.
git clone https://github.com/VictorBurtsev/ikev2-vpn-server.git && cd ikev2-vpn-server
docker build --no-cache -t ikev2-vpn-server:alpine .
docker run --cap-add=NET_ADMIN -d --name ikev2-vpn-server --restart=always -p 500:500/udp -p 4500:4500/udp ikev2-vpn-server:alpine
docker exec -it ikev2-vpn-server generate-mobileconfig > ikev2-vpn.mobileconfig
Transfer the generated ikev2-vpn.mobileconfig file to your local computer via SSH tunnel (scp) or any other secure methods.
iOS 9 or later: AirDrop the .mobileconfig file to your iOS 9 device, finish the Install Profile screen;
macOS 10.11 El Capitan or later: Double click the .mobileconfig file to start the profile installation wizard.
apt install strongswan
# ipsec.conf - strongSwan IPsec configuration file
conn %default
type=tunnel
keyexchange=ikev2
authby=secret
ike=aes256-sha2_256-modp2048!
esp=aes256-sha2_256!
conn ikev2-vpn
right=your_server_ip
rightsubnet=0.0.0.0/0,::/0
left=%config
leftsubnet=10.8.0.0/16
leftsourceip=%config
auto=start
: PSK "your_psk"
/etc/resolv.conf w,
And apply changes
apparmor_parser -r /etc/apparmor.d/usr.lib.ipsec.charon
echo 'pre-up /sbin/ifconfig $IFACE mtu 1400' >> /etc/network/interfaces
ipsec reload && ipsec restart && ipsec up ikev2-vpn
http://www.thegreenbow.com/
Upon container creation, a shared secret was generated for authentication purpose, no certificate, username, or password was ever used, simple life!
Copyright (c) 2021 Mengdi Gao, Nebukad93, vl_burtsev This software is licensed under the MIT License.
Content type
Image
Digest
Size
7.1 MB
Last updated
almost 5 years ago
docker pull alfonder/ikev2-vpn-server:testing