Sign inSign up

markinas/pptp-client-iptables

By markinas

Updated over 3 years ago

pptp client with iptables rules for radarr and jackett

Image
Networking
0

422

markinas/pptp-client-iptables repository overview

PPTP-Linux for Jackett and Radarr

Docker container which runs pure Ubuntu with seldom packages such as 'pptp-linux', 'iptables', 'iproute'. With some 'magic' in iptables rules it will help you to run Radarr and Jackett containers through VPN. In the same time other containers on your machine will ignore the vpn tunnel.

Docker Features

  • Base: Ubuntu 20.04
  • Selectively enable or disable PPTP support

Run container from Docker registry

To run the container use this command, with additional parameters, please refer to the Variables section:

$ docker run --privileged  -d \
             --net=host \
              -e "CUSTOM_SUBNET=172.16.240.1/24" \
              -e "RADARR_IP=172.16.240.10" \
              -e "RADARR_PORT=7878" \
              -e "VPN_USERNAME=username" \
              -e "VPN_SERVER=server" \
              -e "VPN_PSWD=password" \
              -e "JACKETT_IP=172.16.240.9" \
              -e "JACKETT_PORT=9117" \
              --restart unless-stopped \
              markinas/pptp-client-iptables

Variables

Environment Variables

VariableRequiredFunctionExample
CUSTOM_SUBNETYesYour custom docker networkCUSTOM_SUBNET=172.16.240.1/24
RADARR_IPYesIp address of your radarr container in custom networkRADARR_IP=172.16.240.10
RADARR_PORTYesPort that radarr container exposeRADARR_PORT=7878
JACKETT_IPYesIp address of your jackett container in custom networkJACKETT_IP=172.16.240.9
JACKETT_PORTYesPort that jackett container exposeJACKETT_PORT=9117
VPN_SERVERYesAddress of pptp vpn serverVPN_SERVER=pptpserver.net
VPN_USERNAMEYesUsername for vpn serverVPN_USERNAME=username
VPN_PSWDYesPassword for vpn serverVPN_PSWD=password

How it works

First, you should create your custom network with static IP address.

For example:

custom_network:
    name: vpn_custom
    ipam:
      driver: default
      config:
        - subnet: "172.16.240.0/24"

After that you should customize network settings for your containers.

Example:

 radarr:
        container_name: radarr
        image: linuxserver/radarr:latest
        restart: unless-stopped
        networks:
                custom_network:
                        ipv4_address: 172.16.240.10
        ports:
                - 0.0.0.0:7878:7878
        environment:
                - PUID=${UID}
                - PGID=${GID}
                - TZ=${TZ} 
        volumes:
                - /etc/localtime:/etc/localtime:ro
                - ${DATA}/radarr:/config # config files
                - ${MERGERFS}/Video:/movies # movies folder
                - ${MERGERFS}/processed:/downloads

And that's it.

Issues

If you are having issues with this container please submit an issue on GitHub. Please provide logs, Docker version and other information that can simplify reproducing the issue. If possible, always use the most up to date version of Docker, you operating system, kernel and the container itself. Support is always a best-effort basis.

Tag summary

Content type

Image

Digest

sha256:d58439d25

Size

58.2 MB

Last updated

over 3 years ago

docker pull markinas/pptp-client-iptables