rc.local

Forumas skirtas spręsti problemas iškilusias su CS 1.6 serveriais.
Post Reply
User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

rc.local

Post 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
Image
Image
Image

User avatar
V1LKAS
Flooderis arba specialistas
Posts: 612
Joined: 2012 Nov 08 12:55
Skype: darius489

Re: rc.local

Post by V1LKAS »

Taip.

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: rc.local

Post 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 ?
Image
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests