Created
May 28, 2017 02:46
-
-
Save andmcgregor/1aa3db49e54dcd46506262285a381d7d to your computer and use it in GitHub Desktop.
sia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables -t nat -A PREROUTING -p tcp -i enp0s31f6 --dport 9983 -j DNAT --to-destination 192.168.0.119:9983 | |
sudo iptables -t nat -A PREROUTING -p tcp -i enp0s31f6 --dport 9984 -j DNAT --to-destination 192.168.0.119:9984 | |
sudo iptables -A FORWARD -p tcp -d 192.168.0.119 --dport 9983 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT | |
sudo iptables -A FORWARD -p tcp -d 192.168.0.119 --dport 9984 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT | |
sudo bash -c "iptables-save > /etc/iptables/iptables.rules" | |
sudo systemctl reload iptables.service | |
./siad --rpc-addr 9983 --host-addr 9984 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment