mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-06-04 23:17:31 +02:00
update pptp
This commit is contained in:
parent
6903b27665
commit
3fa5bd0a64
@ -2,8 +2,8 @@
|
|||||||
# Dockerfile for pptp
|
# Dockerfile for pptp
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM alpine:edge
|
FROM alpine:3
|
||||||
MAINTAINER kev <noreply@easypi.pro>
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
|
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# Dockerfile for pptp
|
# Dockerfile for pptp
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM debian
|
FROM debian:bookworm
|
||||||
MAINTAINER kev <noreply@easypi.pro>
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
|
@ -3,21 +3,6 @@ pptp
|
|||||||
|
|
||||||
Containerized PPTP Client
|
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
|
## up and running
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -30,9 +15,7 @@ ip link show
|
|||||||
ip addr show
|
ip addr show
|
||||||
ip route show
|
ip route show
|
||||||
|
|
||||||
curl ifconfig.co
|
curl ipinfo.io
|
||||||
curl ifconfig.ovh
|
|
||||||
curl ifconfig.me
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## references
|
## references
|
||||||
|
@ -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"]
|
|
@ -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
|
|
@ -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 "$@"
|
|
@ -1,10 +1,12 @@
|
|||||||
pptp:
|
version: "3.8"
|
||||||
image: vimagick/pptp
|
services:
|
||||||
environment:
|
pptp:
|
||||||
- SERVER=192.168.31.222
|
image: vimagick/pptp
|
||||||
- TUNNEL=vps
|
environment:
|
||||||
- USERNAME=username
|
- SERVER=192.168.31.222
|
||||||
- PASSWORD=password
|
- TUNNEL=vps
|
||||||
net: host
|
- USERNAME=username
|
||||||
privileged: yes
|
- PASSWORD=password
|
||||||
restart: unless-stopped
|
network_mode: host
|
||||||
|
privileged: true
|
||||||
|
restart: unless-stopped
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# helper for vimagick/pptp
|
||||||
|
#
|
||||||
|
|
||||||
cat > /etc/ppp/peers/${TUNNEL} <<_EOF_
|
cat > /etc/ppp/peers/${TUNNEL} <<_EOF_
|
||||||
pty "pptp ${SERVER} --nolaunchpppd"
|
pty "pptp ${SERVER} --nolaunchpppd"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user