Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 469 Bytes

File metadata and controls

26 lines (23 loc) · 469 Bytes

Creating a simple VPN

docker-compose.yml

services:
  # start the server
  server:
    image: alpine/socat
    command:
      - -dd 
      - TCP-LISTEN:444,fork,reuseaddr
      - TUN:10.2.0.1/24,up
    privileged: true
    
  # start the client
  client:
      image: alpine/socat
      command: 
        - -dd 
        - TCP-CONNECT:server:444
        - TUN:10.2.0.2/24,up
      privileged: true
      depends_on: 
        - server