1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

update pptp

This commit is contained in:
kev 2023-10-17 14:54:23 +08:00
parent 6903b27665
commit 3fa5bd0a64
8 changed files with 20 additions and 81 deletions

View File

@ -2,8 +2,8 @@
# Dockerfile for pptp
#
FROM alpine:edge
MAINTAINER kev <noreply@easypi.pro>
FROM alpine:3
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \

View File

@ -2,8 +2,8 @@
# Dockerfile for pptp
#
FROM debian
MAINTAINER kev <noreply@easypi.pro>
FROM debian:bookworm
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt-get update \

View File

@ -3,21 +3,6 @@ pptp
Containerized PPTP Client
## docker-compose.yml
```yaml
pptp:
image: vimagick/pptp
environment:
- SERVER=1.2.3.4
- TUNNEL=vps
- USERNAME=username
- PASSWORD=password
net: host
privileged: yes
restart: unless-stopped
```
## up and running
```
@ -30,9 +15,7 @@ ip link show
ip addr show
ip route show
curl ifconfig.co
curl ifconfig.ovh
curl ifconfig.me
curl ipinfo.io
```
## references

View File

@ -1,14 +0,0 @@
#
# Dockerfile for pptp-arm
#
FROM easypi/alpine-arm:edge
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
pptpclient
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -1,10 +0,0 @@
pptp:
image: easypi/pptp-arm
environment:
- SERVER=192.168.31.222
- TUNNEL=vps
- USERNAME=username
- PASSWORD=password
net: host
privileged: yes
restart: unless-stopped

View File

@ -1,25 +0,0 @@
#!/bin/sh
cat > /etc/ppp/peers/${TUNNEL} <<_EOF_
pty "pptp ${SERVER} --nolaunchpppd"
name "${USERNAME}"
password "${PASSWORD}"
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam "${TUNNEL}"
_EOF_
cat > /etc/ppp/ip-up <<"_EOF_"
#!/bin/sh
ip route add 0.0.0.0/1 dev $1
ip route add 128.0.0.0/1 dev $1
_EOF_
cat > /etc/ppp/ip-down <<"_EOF_"
#!/bin/sh
ip route del 0.0.0.0/1 dev $1
ip route del 128.0.0.0/1 dev $1
_EOF_
exec pon ${TUNNEL} debug dump logfd 2 nodetach persist "$@"

View File

@ -1,10 +1,12 @@
pptp:
image: vimagick/pptp
environment:
- SERVER=192.168.31.222
- TUNNEL=vps
- USERNAME=username
- PASSWORD=password
net: host
privileged: yes
restart: unless-stopped
version: "3.8"
services:
pptp:
image: vimagick/pptp
environment:
- SERVER=192.168.31.222
- TUNNEL=vps
- USERNAME=username
- PASSWORD=password
network_mode: host
privileged: true
restart: unless-stopped

View File

@ -1,4 +1,7 @@
#!/bin/sh
#
# helper for vimagick/pptp
#
cat > /etc/ppp/peers/${TUNNEL} <<_EOF_
pty "pptp ${SERVER} --nolaunchpppd"