mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-05-20 15:10:43 +02:00
6 lines
216 B
Bash
Executable File
6 lines
216 B
Bash
Executable File
#!/bin/bash
|
|
|
|
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT && \
|
|
iptables -A INPUT -i eth0 -p tcp --dport 5000 -j ACCEPT && \
|
|
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5000
|