Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
Persist iptables after reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
bakape committed Oct 10, 2015
1 parent 04bec6b commit f755276
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env bash
# Automatic deploymnent script for a fresh Ubuntu trusty (and possibly up) VPS

export DEBIAN_FRONTEND=noninteractive;
apt-get update < /dev/null
apt-get install -y build-essential git redis-server imagemagick\
software-properties-common pngquant < /dev/null
iptables-persistent software-properties-common pngquant < /dev/null
# ffmpeg PPA
add-apt-repository ppa:mc3man/trusty-media -y
# Node.js setup script
Expand All @@ -12,7 +13,8 @@ apt-get dist-upgrade -y < /dev/null
apt-get install ffmpeg nodejs -y < /dev/null

# Port redirection
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8000
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8000;
iptables-save > /etc/iptables/rules.v4

useradd -d /home/meguca -s /bin/bash -m -U meguca
# Download and build meguca
Expand Down

0 comments on commit f755276

Please sign in to comment.