Skip to content

Instantly share code, notes, and snippets.

@e-minguez
Last active Sep 22, 2020
Embed
What would you like to do?
swag-podman
```
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=443:proto=tcp:toport=8443 --permanent
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=443:proto=tcp:toport=8443
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=80:proto=tcp:toport=8080 --permanent
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=80:proto=tcp:toport=8080
$ sudo firewall-cmd --zone=trusted --add-service=https --permanent
$ sudo firewall-cmd --zone=trusted --add-service=https
$ sudo firewall-cmd --zone=trusted --add-service=http --permanent
$ sudo firewall-cmd --zone=trusted --add-service=http
$ sudo firewall-cmd --zone=trusted --add-masquerade
$ mkdir -p ${HOME}/containers/swag/
$ podman run --name=swag --rm --cap-add=NET_ADMIN -e PUID=1000 -e PGID=1000 -e TZ=Europe/Madrid -e URL=minwi.xyz -e SUBDOMAINS=centos3 -e VALIDATION=http -e ONLY_SUBDOMAINS=true -p 8443:443 -p 8080:80 -v ${HOME}/containers/swag:/config:Z -d linuxserver/swag
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment