Page 1 of 1

rc.local

Posted: 2016 Jun 11 10:23
by laimiukas3
Sveiki, ar po vps perkrovimo is rc.local uzkraus ip tables ?

pvz irasius

Code: Select all

#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing. cd /root/hlds && ./start &iptables -A INPUT  -s 188.212.103.162 -j DROP &iptables -A INPUT  -s 188.212.103.178 -j DROP &iptables -A INPUT  -s 188.212.103.146 -j DROP &iptables -A INPUT  -s 86.100.113.65 -j DROP &iptables -A INPUT  -s 78.62.51.116 -j DROP &iptables -A INPUT  -s 84.32.122.51 -j DROP & exit 0

Re: rc.local

Posted: 2016 Jun 12 16:40
by V1LKAS
Taip.

Re: rc.local

Posted: 2016 Jun 12 19:32
by laimiukas3
V1LKAS wrote:Taip.
dar ne i tema noreciau paklausti jaigu ip galune keiciama kaip turetu buti ptables - A-įėjimas -s 188.212.103.0/24 -j ?