Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Netstat & APF Cron Job


Netstat & APF cron job ...


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Cron Job
PHP Code:

* */1 * * *

But I didnt understand the difference from

PHP Code:

* * * * *

time property? Why is there a need for /1?

View Replies!   View Related
Cron Job
in order to backup db automatically i want to use cron job. So i set cron job at 00 AM

suppose that : my infos
db name : db
db user : zode
db pass : 123

the command i use is following

PHP Code:

mysqldump -u zode -p123 of -K -c -f --compatible=mysql40 --default-character-set=utf8 db > backup/db_`date +%d%m%y`.sql 

in good time i am looking into backup directory db is in it or not

but there is nothing in it

View Replies!   View Related
Cron Job
I run A Centos 4.xx latest kernel server and Ive got a problem with Cron Job reporting.

The Cron Jobs themselves are working fine but I keep getting this message, on the hour, every hour

Quote:

Originally Posted by Email from the Cron Daemon

Not a directory: /etc/cron.hourly

The folder etc/cron.hourly DOES EXIST! and I cannot work out what could be causing this?

Does anyone hgave any ideas what could be causing it

View Replies!   View Related
CRON Job Timing Out
i have had a problem for some time now, regarding my CRON jobs. I am trying to download a large amount of data from ebay (through their API, totally legal and aboveboard) using php, but my CRONjob times out.

I have tried resetting the timeout variable, but then it exceeds the maximum filesize
SO, my question: is there any way to have a script run as a CRON job, and wen it is complete, call another script?

View Replies!   View Related
Reboot Cron Job
VPS isn't rebooting by itself when it goes down. Anyone has any program/script that monitors heartbeat of the server? Like when it goes down, the program will automatically reboots the system. I know there's such a script out there but I forgot what it called.

View Replies!   View Related
Cron Job Every Month
I want to execute the following command on the 15th of every month at 1AM:

echo > /usr/local/apache/logs/error_log

How to accomplish this?

View Replies!   View Related
SSH Cron Job
I wanna run this command "./adfsas.sh" Every 4 Hours can someone tell me what command I can use via SSH to set this cronjob?

View Replies!   View Related
Cron Job Email In DA
I've got limited knowledge in scripting so I've come to the interweb for help. Google hasn't answered any of my queries so the trusty WHT is next.

I'm trying to create a script cron that will email my clients once per month with space and bandwidth useage reminders. I'd prefer not to have to set up crons in each individual account, but rather email all with tokening including |name| |bandwidth| |space| out of the allowed space & bandwidth according to the clients package.

View Replies!   View Related
Cron Job Less Than One Minitue
php script to run more than once per minitue.

View Replies!   View Related
MySQLDUMP Cron Job
setting up a new cron job.

I would like to have MySQLDUMP dump my specified database(s) into a specified folder using date and time stamps in the filename.

I've done some searching on this but haven't really came up with a way to do all of this at once, or if I may need to setup a cron job to rename the file after the dump has completed. I may be going about this all wrong to begin with, I'm just looking for a very simple and reliable way to backup my databases.

I'm testing this on a Shared Web Host account at this time which does have SSH shell access, but I wasn't sure if this makes a difference.

View Replies!   View Related
How To Comment Cron Job
How do I comment a cron task?

I want to keep the command but do not want to remove them..

#* 22 * * * /scripts/scripts

or

* 22 * * * #/scripts/scripts

View Replies!   View Related
Email Notification Of Cron Job?
Can anyone please let me know how to get an email notification to say whether the cron job has run ok and emails to say when it hasn't run ok?

View Replies!   View Related
Software Raid One Cron Job
How to create cron job for software raid one and email should come to us on linux server?

View Replies!   View Related
Cron Job Deleted - Is Their A Log?
We are running cpanel on one of our servers. Several cron jobs were deleted from the cron panel of one acct. I have no idea of the paths to re-enter these jobs. Is their a log file on the server that will show cron job history from previous runs so I can recover the proper paths?

View Replies!   View Related
Cron Job And Query String
Is it possible to call a cron job with a query string appended to the file. I have no problem setting up crons in the cron tab..but i'd like the cron to fetch a url that looks something like

/home/php/some-file.php?a=1

is this possible directly through the cron job? I guess an alternative is call some php file that uses curl but i was wondering if there 's a direct way.

View Replies!   View Related
Random Cron Job Command
I am running wordpress with wp O matic. I want to update my content after 24 hours (but different time each day). Bottom line is I want a cron command which randomly execute after 24 hours instead of a particular time.

For example currently wp o matic shows the following command the following command, would you please advice how i change the this command to achieve the above results (right now wordpress is running on my computer so following thing is just for example)

*/20 * * * * F:Testlogwp-contentpluginswp-o-matic/cron.php?code=8b935355

View Replies!   View Related
Cron Job Not Working Properly
I have a slight problem with a cron job I have setup.

I wanted to save a copy of iptables every hour to a folder, so I created a script... here it is:

Code:
varDate=`date +%y%m%d`
varTime=`date +%H%M`

filename="IPtablesBackup-$varDate-$varTime"
iptables-save -c > /etc/IPtablesBackup/$filename
and called is Backup-Script.sh

Now if I just execute the script will in root ./Backup-Script.sh I get a new file with the correct filename and iptables info is saved ! Great ! So then I thought, how can I setup this automatically every hour.

Which leads me on to my problem. I inputted "crontab -e" added this line

Code:
59 * * * * /etc/IPtablesBackup/Backup-Script.sh
The problem is the script is run, I know because it creates a new file with the correct time and date, however the file is empty?

I have set Backup-Script.sh to 777 and owner and group are both root?

View Replies!   View Related
Cron Job With Multiple Databases
I have several DBs and need to run a cron job on one of the databases every night.

to run a repair/optimize on the DB as its very active, this is the command I thought I would use:
Code:
REPAIR TABLE `etc` , `etc` ,

Code:
OPTIMIZE TABLE `etc` , `etc` ,

How do I specify which database to run this on in the cron in CPanel?

View Replies!   View Related
CPanel Standard Cron Job
I want to know how to get this cron job to work. Get a php script to run at certain times, etc.

View Replies!   View Related
Cron Job Failure Mails
I have a server like this:

WHM 10.8.0 cPanel 10.9.0-S9966
CentOS 3.8 i686 - WHM X v3.1.0

My cron files are like this: var/spool/cron/

Quote:

33 4 * * * /scripts/upcp
0 1 * * * /scripts/cpbackup
*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
2,58 * * * * /usr/local/bandmin/bandmin
24 5 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
0 0 * * * /usr/local/bandmin/ipaddrmap
0 */1 * * * /usr/local/nobody_check/nobody_check >/dev/null 2>&1
0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1
*/5 * * * * perl /root/rvadmin/rvmultiupdate.pl >/dev/null 2>&1
14 6 * * * perl /root/rvadmin/auto_rvskin.pl
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1

But e-mails like tha is coming to me

Quote:

Cron <root@mavi> /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1

/bin/sh: line 1: 1
: ambiguous redirect

Quote:

Cron <root@mavi> perl /root/rvadmin/rvmultiupdate.pl >/dev/null 2>&1
/bin/sh: line 1: 1
: ambiguous redirect

View Replies!   View Related
Cron Job Not Working, Restart Services
I'm having a bit of trouble with one cron job that doesn't seem to work.

I have others scripts that run hourly fine. However this one does not.

The script:

restart_monitoring.sh

Code:
#!/bin/bash
service iptables stop
service iptables start
/root/bandwidth_rules.sh
/root/portforward_config.sh
exit
The two scripts at the end just load a lot of iptables rules back in.

The cron job should run hourly (59th minute)

The cron job entry

Code:
59 * * * * /root/restart_monitoring.sh
I have restart crond to enable the new job, still doesn't run.

The job is to restart iptables, thus flushing all rules that I have running, then reloading them. I have figured out the problem to be with the "service iptables stop/start" command, it doesn't seem to like doing this...?

View Replies!   View Related
Cron Job To Send Backup Copy
Is it possible to get [Crone job] that sends a backup copy for single user in the server to another hosting via FTP which has [Domain name/ User /Password] either weekly or 3 times a week

View Replies!   View Related
PHP Cron Job :: Sh: -t: Command Not Found
I have this setup on CPanel

php -q /home/host/public_html/clients/admin/cron.php

but I get this:
sh: -t: command not found
sh: -t: command not found
sh: -t: command not found
sh: -t: command not found

View Replies!   View Related
How To Set Up Cron Job To Restart Mysql
How to set up cron job automatic restart mysqld at specified time. My case, mysqld will auto restart every 23 hours running.

How to set up this cron job?

View Replies!   View Related
Cron Job To Delete Mail Queue
How can I set a command that it will delete all bounce and frozen emails every 12 hours?


View Replies!   View Related
Sequential Shell Commands On A Cron Job
if it is possible to set sequential commands on a cron job?

Meaning, there is more than one shell commands following the first one.

View Replies!   View Related
Cron Job In Cpanel. Want To Automate Backups
I have been doing some research and I would love some help with this. I want to set up a cron to automatically backup my site's files & databases once a month. And I am not sure what how I do it?

- Do I need a script on my server and then the cron job runs it?
- Is there a better way to do this then cron?

View Replies!   View Related
Cron Job :: Run Script Every Second, Of Every Minute, Of Every Day
Say I have a script... /home/user/public_html/script.php

I want to run this script every second, of every minute, of every day.

How would I do this? I want to set up a cron and run it, I have written a cron and I am running it in shell as I type, but if I close shell the cron exits, can anybody assist me with making a cron run this script every second permanently.

View Replies!   View Related
Need To Move Website Due To Cron Job Frequency
I have a website that runs 17 cron jobs...4 every minute...most every 5 minutes...the remaining few every hour or so. Can anyone please refer me to a host that allows this? The best I've found thus far is host for web but they require every five minutes.

View Replies!   View Related
Get Cron Job To Work Every 10 Minutes Past The Hour
How do I get a cron job to run every

1 hour 10 mintues, so basicly 10 mins past the hour

Also

1 hour 15 mintues, so basicly 15 mins past the hour

Is it ?

10 * * * * and 15 * * * *

View Replies!   View Related
Scheduled Consecutive Shell Commands Or As Cron Job
Is it possible to schedule consecutive shell commands to be run at a given time or every certain period (like every hour)?

This is important for me as I want to schedule to run certain program and then input the following commands afterwards to do and complete the task, all automatically within the specified schedule.

One example would be connecting to an FTP. First you'd need to input the ftp command to run the ftp program, then following that, input another commands consecutively within that session (the ftp program) to do and complete the task.

I'm running KDE on CentOs4 btw.

Is it even possible to do this on cron jobs?

View Replies!   View Related
Setting Up Cron Job To Kill Exim Mail Queue
how to setup hourly cronjob to kill exim mail queues on the cpanel server?

I know this question may sounds a little tedious as I have tried to find an answer to this but still have no clue yet.

View Replies!   View Related
Cron Job That Deletes Backup Files Older Than 5 Days
This is on a RHEL 4 Box.

I want to create a cron job that deletes backup files that are older than 5 days. I have created a shell script (/usr/local/src/runjob.sh) that runs successfully from the SSH command line:

Code:
#pwd
/usr/local/src
#./runjob.sh
Here is the script:

Code:
#!/bin/sh
#

#
find /usr/local/apache/sites/*/BACKUPS/ -maxdepth 1 -atime +5 -iname 'test*.txt' -exec rm {} ;
Script has 777 permissions and is owned by root.

I have the following entry in crontab:

Code:
10 12 * * * /bin/sh /usr/local/src/runjob.sh >/dev/null 2>&1

As shown in the cron log, the job does run, but it does not delete the files. And there are files older than 5 days in the directory that meet the find criteria.

View Replies!   View Related
How Set Up Cron Job Auto Empty A Tables Of A Database
How to set up cron job auto empty a table of an database at specify time.

OS: Centos 5 64 bit , Cpanel: cPanel 11.24.4-R32486 - WHM 11.24.2 - X 3.9

View Replies!   View Related
Create A Cron Job To Clear Your /tmp Folder Automatically?
how I can create a cron job that runs every 10minutes or so to clear my /tmp folder on one of my servers?

Reason I ask is, it keeps getting filled up and doesn't delete the fiels in it and stops certain scripts from running.

Also, again, I need step by step instructions, such as:

1) what, where the file is I need to place the cron job in

2) what line of code would I put in that file (what does the cron job line look like for every 10min every day)

3) do I need to restart anything, and if so, what command do I run in shell?

View Replies!   View Related
HOWTO Cron Job To Copy Files From Folder To Root
how to setup a cron job to copy files & directories from one folder to the root folder. I have CPanel X.

My root directory is public_html/
I have another directory public_html/uploads containing both files and directories.

I need a cron job that will copy all the files & directories from public_html/uploads to the root public_html/

If it helps, here is some system info

General server information:
Operating system Linux
Service Status Click to View
Kernel version 2.6.22_hg_grsec_pax
Apache version 1.3.39 (Unix)
PERL version 5.8.8
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
PHP version 4.4.4
MySQL version 4.1.22-standard
cPanel Build 11.17.0-STABLE 19434
Theme cPanel X v2.6.0

View Replies!   View Related
How To Set Up Cron Job To Replace Index File Every 3 Hours...
I would like to replace my index file every three hours, with a specified file on the server thats in a different folder (someone keeps putting unwanted stuff in my index file) Can someone explain to me how this is done?

View Replies!   View Related
Cron Job :: To Forward Email From Root@server.mydomain.com To My Gmail
I setup my cron job run daily and it automatically sends email to root@server.mydomain.com after it done. How do i setup forward email from root@server.mydomain.com to my gmail or other external email provider ? That means every time if root@server.mydomain.com receive email than my other maail will get that email too.

View Replies!   View Related
Cron Job - "No Input File Specified."
I'm on paid hosting and accessing the cron jobs through a control panel.

I have a php script that I'd like to run daily.

I've put this script in the folder http://mysite.com/Cron/ .

When I navigate to this file directly in my web-browser it runs perfectly and sends me an e-mail.

When I try to set up a cron tab to execute it, though I get the following error in the cron output...

Quote:

Status: 404
X-Powered-By: PHP/4.4.6
Content-type: text/html

No input file specified.

The command I entered into the control panel was...

Quote:

php [url]

I also tried...

Quote:

php -q [url]

...and...

Quote:

php /Cron/SendMail.php

...those times getting the error...


Quote:

/bin/sh: [url]: No such file or directory

why this might not be working for me?

View Replies!   View Related
Netstat -an Or -tln
netstat -tln shows my port 80 is listening.

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN

but netstat -an shows nothing about port 80

actually my web can not be accessed. it shows "Cannot find server or DNS Error " under Internet Explorer.

View Replies!   View Related
Netstat, Csf
I am not shure if this is a configuration problem or it's bacause netstat has it's own way to display things.

Recently csf blocked an IP address for flooding.

My server ip address is something like 192.168.1.201.

The ip that csf blocked was 192.168.1.20.

That IP belongs to an other server that is not ours.

netstat was showing a lot of connections from 192.168.1.20 (the ip that is not ours) but the guys that manage the server with that ip (192.168.1.20) did not saw any connection from them to us. So I thought it's just a spoofed flood. But, the thing is I've blocked that ip and still connections were made.

My conclusion was that netstat was showing 192.168.1.20 "flooding" instead of 192.168.1.201. (the server was connectiong to itself).

iptraf also was showing the server was connecting to itself on the lo interface.

My questions are:
csf is based on netstat for tracking connections?
has anyone had ths type of problem before?
If netstat is showing something else isn't this a bad thing for all (a lot) the scripts that use netstat?

View Replies!   View Related
Netstat :: How To List IP Addresses?
My site is under attack, when i run this command
[php]netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -[/php
it show

1 116.xxx

1 118.xxx

1 203.xx

1 222.xxx

1 Address

1 servers)

3 115.xxx

3 123.xxx

4 58.xxx

10 127.0.0.1

694

What 694 connections mean ? Why netstat don't list their IP ? How can i know which IP is attacking my site ?

View Replies!   View Related
-bash: Netstat: Command Not Found
i got a new sever and was looking at few thing.

just ran netstat and saw this -bash: netstat: command not found

how can i correct it?

View Replies!   View Related
SSH Command :: Netstat -alpn?
what does the below command actually means I mean when we use it? and in which case it help us? and up to what value there is nothing to worry about? Waiting for detailed reply

netstat -alpn | grep :80 | awk '{print $4}' | cut -d: -f1 |sort |uniq -c

View Replies!   View Related
Listing/banning Ipv6 Addresses From Netstat Output
I've been happily banning ip's using the output from

netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1

for over a year now, with iptables. However recently, after upgrading to apache 2.2, the connections in netstat get listed as ipv6. A row can look like this for example:

tcp6 0 0 ::ffff:12.123.123.123:80 ::ffff:12.123.12.:12382 ESTABLISHED-

(actual ip addresses changed)

As you can see, the remote ip address isn't complete, it's cut off, so the script used to sum up connections and insert into iptables isnt doing anything.

View Replies!   View Related
Netstat Results Show 3 Ips In Same Location With Several Connections
I'm new to server administration/security/troubleshooting, so I have included a lot of info here hoping it will help.

This started because a Linux VPS with CentOS and Exim crashed after only 3000 emails were sent (of 30000) total

I ran a netstat and several times I get three separate ips with the only difference being the last two digits and the port number:
86.104.230.29:59009
86.104.117.45:18065
89.37.137.157:41593

As far as I can tell they are from Romania, and there are several connections.

I have posted a lot of information below, if someone can take a look and give some ideas, it would be very much appreciated.

netstat:

Code:
tcp 0 0 mydomain.com:http 86.104.117.98:34060 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.82:59022 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.219:52276 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.163:25383 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.154:20794 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.235:39094 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.127:61711 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.127:5748 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.37:63424 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.228:54121 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.226:39605 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.91:6446 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.10:54841 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.100:22842 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.118:32674 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.80:16559 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.64:47817 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.136:21718 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.246:37288 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.28:62119 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.190:4468 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.8:25247 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.100:35503 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.199:20896 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.237:saft SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.199:47952 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.118:60561 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.181:10844 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.125:50584 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.253:17855 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.10:25740 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.109:29528 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.62:47349 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.55:4614 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.226:22001 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.163:11790 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.44:8911 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.46:telnets SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.190:27377 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.181:34031 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.19:41722 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.100:57151 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.145:61402 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.53:52461 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.26:42463 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.217:35530 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.35:63414 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.154:56638 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.26:43972 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.172:6922 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.17:3683 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.210:2397 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.46:18754 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.244:4032 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.235:8602 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.82:39495 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.19:28848 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.163:47624 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.8:2683 SYN_RECV
tcp 0 0 mydomain.com:http 89.39.71.55:43300 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.37:1664 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.118:36892 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.17:7317 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.109:56229 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.217:45257 SYN_RECV
tcp 0 0 mydomain.com:http 89.37.137.73:15278 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.230.64:14076 SYN_RECV
tcp 0 0 mydomain.com:http 86.104.117.116:14567 SYN_RECV

View Replies!   View Related
Netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
What does this string do? I copy and paste it into my SSH Shell and i get ip addresses and numbers next to them.

Each number means one connection?

netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1

View Replies!   View Related
Background Job Exited
I have a CentOS system (under VPS, virtuozzo) and I would like to run a background job.

Here what I did:

1. ssh into the server
2. execute:

$ ./myscript.php > output.log &

After executing that command, I got back to the shell prompt.

Then I can see the log file:

$ tail -f output.log

But when I close my ssh session (using putty), the background job is also closed!

Anyone know why?

How can I run background job, leave it running, and quit my ssh session?

View Replies!   View Related
Meaning Of "netstat"
Maybe someone would be kind enough to enlighten me of the meaning of a netstat output. I know netstat is supposed to tell you the current active connections but would like some more details(what does each column mean?):

Code:
[root@]# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address Stat
I notice that often times I see my ISP's mail server connecting to domains I didin't even set up yet. Sometimes I see google(I guess indexing my sites). But in addition some times I see some scary foreign addresses like from nigeria or one really common one, one which I see pretty often when I run netstat is:

Quote:

tcp 0 0 mydomain.com:http [somehostname].amenworld.com:40867 TIME_WAIT

I can't seem to make any sense of it, what are they doing and why are they always "connected' to my server?

I could just be over reacting on some of this stuff but just curious about what this all means.

View Replies!   View Related
Pronet Hosting Does Great Job
Just wanted to state that Pronethosting.net has done a great job hosting my daughter's Web site and our municipal site: marcellusny.com.

Their service is very dependable and affordable!

View Replies!   View Related
Cirtex Hosting Do A Good Job With OSCommerce Support
Do they do a good job of supporting OSCommerce? I want to customize stuff using OSCommerce for my site. Let me know from those who have used OSCommerce with Cirtex hosting.

View Replies!   View Related
Apf
Everytime i turn on APF (apf -s), i can not access my website anymore. It probably blocked everyone so I have to turn it off. Can anyone tell me what's wrong? The conf file is default. I have not make change to anything.

The two ip addrs in deny_hosts.rules are not my ip address
Nothing in allow_hosts.rules

when loaded: (apf -s)

Quote:

apf(29334): {glob} activating firewall
apf(29374): {glob} determined (IFACE_IN) eth0 has address 73.233.204.139
apf(29374): {glob} determined (IFACE_OUT) eth0 has address 73.233.204.139
apf(29374): {glob} loading preroute.rules
apf(29374): {resnet} downloading http://r-fx.ca/downloads/reserved.networks
apf(29374): {resnet} parsing reserved.networks into /etc/apf/internals/reserved.networks
apf(29374): {glob} loading reserved.networks
apf(29374): {glob} loading bt.rules
apf(29374): {glob} loading deny_hosts.rules
apf(29374): {trust} deny all to/from 69.22.27.157
apf(29374): {trust} deny all to/from 69.23.27.198
apf(29374): {dshield} downloading http://feeds.dshield.org/top10-2.txt
apf(29374): {dshield} parsing top10-2.txt into /etc/apf/ds_hosts.rules
apf(29374): {dshield} loading ds_hosts.rules
apf(29374): {sdrop} downloading http://www.spamhaus.org/drop/drop.lasso
apf(29374): {sdrop} parsing drop.lasso into /etc/apf/sdrop_hosts.rules
apf(29374): {sdrop} loading sdrop_hosts.rules
apf(29374): {glob} loading common drop ports
apf(29374): {blk_ports} deny all to/from tcp port 135:139
apf(29374): {blk_ports} deny all to/from udp port 135:139
apf(29374): {blk_ports} deny all to/from tcp port 111
apf(29374): {blk_ports} deny all to/from udp port 111
apf(29374): {blk_ports} deny all to/from tcp port 513
apf(29374): {blk_ports} deny all to/from udp port 513
apf(29374): {blk_ports} deny all to/from tcp port 520
apf(29374): {blk_ports} deny all to/from udp port 520
apf(29374): {blk_ports} deny all to/from tcp port 445
apf(29374): {blk_ports} deny all to/from udp port 445
apf(29374): {blk_ports} deny all to/from tcp port 1433
apf(29374): {blk_ports} deny all to/from udp port 1433
apf(29374): {blk_ports} deny all to/from tcp port 1434
apf(29374): {blk_ports} deny all to/from udp port 1434
apf(29374): {blk_ports} deny all to/from tcp port 1234
apf(29374): {blk_ports} deny all to/from udp port 1234
apf(29374): {blk_ports} deny all to/from tcp port 1524
apf(29374): {blk_ports} deny all to/from udp port 1524
apf(29374): {blk_ports} deny all to/from tcp port 3127
apf(29374): {blk_ports} deny all to/from udp port 3127
apf(29374): {pkt_sanity} set active PKT_SANITY
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs ALL NONE
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs SYN,FIN SYN,FIN
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs SYN,RST SYN,RST
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs FIN,RST FIN,RST
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs ACK,FIN FIN
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs ACK,URG URG
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs ACK,PSH PSH
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs ALL FIN,URG,PSH
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs ALL SYN,RST,ACK,FIN,URG
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs ALL ALL
apf(29374): {pkt_sanity} deny inbound tcp-flag pairs ALL FIN
apf(29374): {pkt_sanity} deny outbound tcp-flag pairs ALL NONE
apf(29374): {pkt_sanity} deny outbound tcp-flag pairs SYN,FIN SYN,FIN
apf(29374): {pkt_sanity} deny outbound tcp-flag pairs SYN,RST SYN,RST
apf(29374): {pkt_sanity} deny outbound tcp-flag pairs FIN,RST FIN,RST
apf(29374): {pkt_sanity} deny outbound tcp-flag pairs ACK,FIN FIN
apf(29374): {pkt_sanity} deny outbound tcp-flag pairs ACK,PSH PSH
apf(29374): {pkt_sanity} deny outbound tcp-flag pairs ACK,URG URG
apf(29374): {pkt_sanity} deny all to/from 255.255.255.255
apf(29374): {pkt_sanity} deny all to/from 0.0.0.255/0.0.0.255
apf(29374): {pkt_sanity} deny all fragmented udp
apf(29374): {pkt_sanity} deny inbound tcp port 0
apf(29374): {pkt_sanity} deny outbound tcp port 0
apf(29374): {blk_p2p} set active BLK_P2P
apf(29374): {blk_p2p} deny all to/from tcp port 1214
apf(29374): {blk_p2p} deny all to/from udp port 1214
apf(29374): {blk_p2p} deny all to/from tcp port 2323
apf(29374): {blk_p2p} deny all to/from udp port 2323
apf(29374): {blk_p2p} deny all to/from tcp port 4660:4678
apf(29374): {blk_p2p} deny all to/from udp port 4660:4678
apf(29374): {blk_p2p} deny all to/from tcp port 6257
apf(29374): {blk_p2p} deny all to/from udp port 6257
apf(29374): {blk_p2p} deny all to/from tcp port 6699
apf(29374): {blk_p2p} deny all to/from udp port 6699
apf(29374): {blk_p2p} deny all to/from tcp port 6346
apf(29374): {blk_p2p} deny all to/from udp port 6346
apf(29374): {blk_p2p} deny all to/from tcp port 6347
apf(29374): {blk_p2p} deny all to/from udp port 6347
apf(29374): {blk_p2p} deny all to/from tcp port 6881:6889
apf(29374): {blk_p2p} deny all to/from udp port 6881:6889
apf(29374): {blk_p2p} deny all to/from tcp port 6346
apf(29374): {blk_p2p} deny all to/from udp port 6346
apf(29374): {blk_p2p} deny all to/from tcp port 7778
apf(29374): {blk_p2p} deny all to/from udp port 7778
apf(29374): {glob} loading log.rules
apf(29374): {glob} virtual net subsystem disabled.
apf(29374): {glob} loading main.rules
apf(29374): {glob} opening inbound tcp port 22 on 0/0
apf(29374): {glob} opening inbound icmp type 3 on 0/0
apf(29374): {glob} opening inbound icmp type 5 on 0/0
apf(29374): {glob} opening inbound icmp type 11 on 0/0
apf(29374): {glob} opening inbound icmp type 0 on 0/0
apf(29374): {glob} opening inbound icmp type 30 on 0/0
apf(29374): {glob} opening inbound icmp type 8 on 0/0
apf(29374): {glob} resolv dns discovery for 73.233.192.2
apf(29374): {glob} loading postroute.rules
apf(29374): {glob} default (egress) output accept
apf(29374): {glob} default (ingress) input drop
apf(29334): {glob} firewall initalized
apf(29334): {glob} !!DEVELOPMENT MODE ENABLED!! - firewall will flush every 5 minutes.

View Replies!   View Related
Apf
How would I uninstall APF as I am thinking of installing CSF

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved