apolloapi-v2/backend/firewall
John 3284368a47 Initial changes for bitcoin port
added node systemd and supporting start/stop scripts
2021-04-02 19:30:02 -04: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