Sign inSign up

leodagan/pptp

By leodagan

Updated about 7 years ago

PPTP Containerized Client

Image
0

2.4K

leodagan/pptp repository overview

pptp

Containerized Client for PPTP VPN

Tagamd64arm32v6arm32v7arm64v8
latest, 1.10.0
edge

Prerequisites

Kernel ConfigModule
CONFIG_PPPppp_generic, slhc
CONFIG_PPP_MPPEppp_mppe
CONFIG_PPP_ASYNCppp_async
CONFIG_NF_NAT_PPTPnf_nat_pptp
CONFIG_NF_NAT_PROTO_GREnf_nat_proto_gre
CONFIG_NF_CONNTRACK_PPTPnf_conntrack_pptp
CONFIG_NF_CT_PROTO_GREnf_conntrack_proto_gre

Netfilter Options

echo 'net.netfilter.nf_conntrack_helper = 1' >> /etc/sysctl.conf
echo 1 > /proc/sys/net/netfilter/nf_conntrack_helper

Run

docker run --rm -e SERVER=domain.tld -e USERNAME=user -e PASSWORD=secret --cap-add NET_ADMIN --device=/dev/ppp --dns 8.8.8.8 --dns 8.8.4.4 --name pptpclient -d leodagan/pptp

Test

docker run --rm --network container:pptpclient busybox wget -O- ifconfig.ovh
Connecting to ifconfig.ovh (213.186.33.173:80)
writing to stdout
-                    100% |********************************|    16  0:00:00 ETA
written to stdout
111.111.111.111

Docker-Compose

version: '2'
services:

  pptp:
    container_name: pptpclient
    image: leodagan/pptp
    restart: unless-stopped
    environment:
      SERVER: domain.tld
      USERNAME: user
      PASSWORD: secret
    dns:
      - 8.8.8.8
      - 8.8.4.4
    devices:
      - /dev/ppp
    cap_add:
      - NET_ADMIN

  test:
    image: busybox
    command: wget -O- ifconfig.ovh
    network: service:pptp

Tag summary

Content type

Image

Digest

Size

4 MB

Last updated

about 7 years ago

docker pull leodagan/pptp