apolloapi-v2/scripts/install
2018-11-20 11:21:01 +01:00

5 lines
191 B
Bash
Executable File

#!/bin/bash
iptables -A INPUT -p tcp --dport 80 -j ACCEPT && \
iptables -A INPUT -p tcp --dport 5000 -j ACCEPT && \
iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 5000