SHARE
TWEET

Untitled

a guest Jun 15th, 2017 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Nastaveni pripojeni k MySQL
  2. DB_USER="root"
  3. DB_PASS="XXX"
  4. DB_HOST="localhost"
  5. DATABASE="administrace"
  6. TABULKA="porty"
  7. MYSQL="mysql -h$DB_HOST -N -u$DB_USER -p$DB_PASS -D $DATABASE"
  8.  
  9. # Povoleni portu
  10. $MYSQL <<< "SELECT * FROM $TABULKA ORDER BY id" | while read PORT
  11. do
  12.         PORT=(`echo $PORT | tr ' ' '\n'`)
  13.         $IPTABLES -A FORWARD -i $LAN1_IFACE -p ${PORT[2]} --dport ${PORT[1]} -j ACCEPT
  14. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top