Simple port forwarding on Linux and Raspberry Pi based on IPTABLES
1.8K
Built by Github Actions
docker run -d --name port-forwarding --cap-add=NET_ADMIN -e TARGET_IP=192.168.1.100 -e TARGET_PORT=12345 -p 8123:8000 pilotak/port-forwarding
version: "3"
services:
port-forwarding:
container_name: port-forwarding
restart: always
image: pilotak/port-forwarding
environment:
- TARGET_IP=192.168.1.100
- TARGET_PORT=12345
cap-add:
- NET_ADMIN
ports:
- 12345:8000
| Variable | Default value | Allowed values | |
|---|---|---|---|
TARGET_IP | required | ||
TARGET_PORT | required | 80 | 1-65535 |
LOCAL_PORT | optional | 8000 | 1-65535 |
Content type
Image
Digest
Size
3.1 MB
Last updated
about 6 years ago
docker pull pilotak/port-forwarding