feat: add l2tp
This commit is contained in:
		
							
								
								
									
										32
									
								
								l2tp/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								l2tp/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| # l2tp server | ||||
|  | ||||
|  | ||||
| # ENV | ||||
| ```shell | ||||
| cat > ./l2tp.env <<EOF | ||||
| VPN_IPSEC_PSK=PSK | ||||
| VPN_USER=USER | ||||
| VPN_PASSWORD=PASSWORD | ||||
| VPN_PUBLIC_IP= | ||||
| VPN_L2TP_NET= | ||||
| VPN_L2TP_LOCAL= | ||||
| VPN_L2TP_REMOTE= | ||||
| VPN_XAUTH_NET= | ||||
| VPN_XAUTH_REMOTE= | ||||
| VPN_DNS1= | ||||
| VPN_DNS2= | ||||
| VPN_SHA2_TRUNCBUG= | ||||
| EOF | ||||
| ``` | ||||
|  | ||||
| # Docker run | ||||
| ```shell | ||||
| docker run -d --privileged \ | ||||
|     -p 500:500/udp \ | ||||
|     -p 4500:4500/udp \ | ||||
|     --name l2tp \ | ||||
|     --restart=always \ | ||||
|     --env-file ${PWD}/l2tp.env \ | ||||
|     -v /lib/modules:/lib/modules \ | ||||
|     teddysun/l2tp | ||||
| ``` | ||||
							
								
								
									
										25
									
								
								l2tp/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								l2tp/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| version: "3" | ||||
|  | ||||
| services: | ||||
|   l2tp: | ||||
|     image: teddysun/l2tp | ||||
|     restart: always | ||||
|     ports: | ||||
|       - "500:500/udp" | ||||
|       - "4500:4500/udp" | ||||
|     privileged: true | ||||
|     volumes: | ||||
|       - "/lib/modules:/lib/modules" | ||||
|     environment: | ||||
|       - "VPN_IPSEC_PSK=${L2TP_PSK}" | ||||
|       - "VPN_USER=${L2TP_USER} | ||||
|       - "VPN_PASSWORD=${L2TP_PASSWORD}" | ||||
|       - "VPN_PUBLIC_IP=" | ||||
|       - "VPN_L2TP_NET=" | ||||
|       - "VPN_L2TP_LOCAL=" | ||||
|       - "VPN_L2TP_REMOTE=" | ||||
|       - "VPN_XAUTH_NET=" | ||||
|       - "VPN_XAUTH_REMOTE=" | ||||
|       - "VPN_DNS1=" | ||||
|       - "VPN_DNS2=" | ||||
|       - "VPN_SHA2_TRUNCBUG=" | ||||
		Reference in New Issue
	
	Block a user