Jump to content

Alon Albert

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Alon Albert

  1. So, I have a docker-compose with a binhex/arch-privoxyvpn that is used by several other servers.

     

    The vpn hosts exposes all the ports and it works well. I can access 127.0.0.1:<port>

     

    But I can't access 10.0.0.10:<port> (10.0.0.10 is the ip of the host thats running the dockers.

     

    Which means, I can't access my services from other machines in my LAN.

     

    What am I missing?

     

    curl 127.0.0.1:8989

    Works

     

    curl 10.0.0.5:8989

     

    Doesn't.

     

    The setup is:

     

      vpn:
        image: binhex/arch-privoxyvpn
        container_name: vpn
        cap_add:
          - NET_ADMIN
        environment:
          - PUID=1000
          - PGID=1000
          - UMASK=000
          - VPN_ENABLED=yes
          - VPN_USER=...
          - VPN_PASS=...
          - VPN_PROV=custom
          - VPN_CLIENT=openvpn
          - ENABLE_PRIVOXY=no
          - LAN_NETWORK=10.0.0.0/24
        volumes:
          - /etc/timezone:/etc/timezone:ro
          - /etc/localtime:/etc/localtime:ro
          - ./config/vpn:/config
        ports:
          - 8989:8989
        

     

  2. 4 hours ago, Alon Albert said:

    Instead of running multiple binhex/arch-<service>vpn containers, I prefer running a single one and use "--net container:<service>" for the others.

     

    This allows me run a single vpn client and use it for all my services that I want vpn'ed.

     

    For example, I would have a sabnzbdvpn service that is both a sabnzbd app and a vpn client that other services/containers can use.

     

    I would rather have a dedicated vpn container/service that isn't bundled with an app.

     

    It seems I should be able to create a Docker file "FROM binhex/arch-int-vpn:latest" that only runs the vpn portion.

     

    Does this already exist? If not, how would I go about doing it?

     

     

    I created https://github.com/alonalbert/docker-vpn which does what I need.

     

  3. Instead of running multiple binhex/arch-<service>vpn containers, I prefer running a single one and use "--net container:<service>" for the others.

     

    This allows me run a single vpn client and use it for all my services that I want vpn'ed.

     

    For example, I would have a sabnzbdvpn service that is both a sabnzbd app and a vpn client that other services/containers can use.

     

    I would rather have a dedicated vpn container/service that isn't bundled with an app.

     

    It seems I should be able to create a Docker file "FROM binhex/arch-int-vpn:latest" that only runs the vpn portion.

     

    Does this already exist? If not, how would I go about doing it?

     

×
×
  • Create New...