Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andmcgregor/1aa3db49e54dcd46506262285a381d7d to your computer and use it in GitHub Desktop.
Save andmcgregor/1aa3db49e54dcd46506262285a381d7d to your computer and use it in GitHub Desktop.
sia
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