07-06-2016
Block ip csf
Hi
I want to ip
Unlike the rules of conduct
For 15 minutes to be blacklisted
Which part should I change settings file
With special thanks
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I would like to more about how csf &apf firewalls work ? how they use iptables right ? why we need to use them when we got iptables ?:confused: (0 Replies)
Discussion started by: nitin09
0 Replies
2. Shell Programming and Scripting
Hi
I need to append the following block of statements in the middle of the file:
#
openpipe tsdbdwn2
set -x
exec >> /tmp/tsdbdwn2.fifo 2>&1
#
This needs to be appended right after another block of statements:
if test $# -eq 0 ;then
echo "Safety check - do you really wish to run" $0 "... (5 Replies)
Discussion started by: aoussenko
5 Replies
3. UNIX for Advanced & Expert Users
I was reading a book on UNIX internals "The design of the UNIX Operating system." There are two memory structures that are confusing me:
1) Buffer cache
2) Inode cache
My questions are
1) Does a process get both buffer cache and Indoe cache allocated when it opens/creates a file?
2) if no,... (1 Reply)
Discussion started by: sreeharshasn
1 Replies
4. Shell Programming and Scripting
Hi ,
Can you pleas help me with below requirement?
There is only one big line in the file. I need to parse block by block(particular tag values, 'Val' in below case) to get different parameters.
Example:-
Portion of the Input string:-
<?xml version="1.1" encoding="UTF-8"?> <Data><Val ... (4 Replies)
Discussion started by: kmajumder
4 Replies
5. Shell Programming and Scripting
Hei buddies,
Need ur help once again.
I have a file which has bunch of lines which starts from a fixed pattern and ends with another fixed pattern.
I want to make use of these fixed starting and ending patterns to select the bunch, one at a time.
The input file is as follows.
Hi welcome... (12 Replies)
Discussion started by: anushree.a
12 Replies
6. UNIX for Advanced & Expert Users
I have a "main" file which has blocks of data for each user defined by tags BEGIN and END.
BEGIN
ID_NUM:24879
USER:abc123
HOW:47M
CMD1:xyz1
CMD2:arp2
STATE:active
PROCESS:id60
END
BEGIN
ID_NUM:24880
USER:def123
HOW:4M
CMD1:xyz1
CMD2:xyz2
STATE:running
PROCESS:id64
END (7 Replies)
Discussion started by: grep_me
7 Replies
7. Shell Programming and Scripting
I want to process a file block by block using sed, and if that block does not contain two patterns, then that complete block has to be printed.
See below for the example data.
................................server 1...............................
running process 1
running... (8 Replies)
Discussion started by: Kesavan
8 Replies
8. Cybersecurity
It appears i cant connect linux VPS server via SSH or i cant SCP any file to it and i cant wget any file TO it (from inside it) while CSF (Config Server Firewall, LFD is running. Just after isntall in default configuration and after changing TESTING mode to LIVE mode.
Trying to wget & install... (1 Reply)
Discussion started by: postcd
1 Replies
9. Shell Programming and Scripting
I have a file say "SAMPLE.txt" with following content,
P1
10,9:6/123456
P2
blah blah
P1
10,9:5/98765
P2
blah
blah
P1
blah blah
P2
I want a output file say "RESULT.txt" as,
Value1:123456
Value2:98765
Value3:NULL (17 Replies)
Discussion started by: garvit184
17 Replies
10. UNIX for Dummies Questions & Answers
I need to search for a block with the starting pattern say
"tabId": "table_1", and ending pattern say "]"
and then add a few lines before "]"
"block1":"block_111"
"tabId": "table_1",
"title":"My title"
.....
....
}]
how do I achieve it using awk and sed.
Thanks,
Lakshmi (3 Replies)
Discussion started by: Lakshmikumari
3 Replies
mknod(1M) mknod(1M)
NAME
mknod - create special files
SYNOPSIS
name major minor
name major minor
name
DESCRIPTION
The command creates the following types of files:
o Character device special file (first form),
o Block device special file (second form),
o FIFO file, sometimes called a named pipe (third form).
name is the path name of the file to be created. The newly created file has a default mode that is readable and writable by all users(0666), but the mode is modified by the current setting of the user's file mode creation mask (see umask(1)).
Character and Block Special Files
Character device special files are used for devices that can transfer single bytes at a time, such as nine-track magnetic tape drives,
printers, plotters, disk drives operating in "raw" mode, and terminals. To create a character special file, use the argument.
Block device special files are used for devices that usually transfer a block of data at a time, such as disk drives. To create a block
device special file, use the argument.
The remaining arguments specify the device that will be accessible through the new special file:
major The major number specifies the major device type (for example, the device driver number).
minor The minor number specifies the device location, which is typically, but not always, the unit, drive, and/or line number.
The major and minor values can each be specified in hexadecimal, octal, or decimal, using C language conventions (decimal: no leading zero;
octal: leading zero; hexadecimal: leading
The assignment of major and minor device numbers is specific to each HP-UX system. Refer to the System Administrator manuals supplied with
your system for details.
Only users who have appropriate privileges can use to create a character or block device special file.
FIFO files
To create a FIFO (named pipe or buffer) file, use the argument. You can also use the command for this purpose (see mkfifo(1)). All users
can use to create FIFO files.
WARNINGS
Access Control Lists
In HFS file systems, optional ACL entries can be added to special files and FIFOs with the command (see chacl(1)). In JFS file systems,
optional ACL entries can be added to special files and FIFOs with the command (see setacl(1)). However, system programs are likely to
silently change or eliminate the optional ACL entries for these files.
SEE ALSO
chacl(1), mkdir(1), mkfifo(1), setacl(1), umask(1), lsdev(1M), sam(1M), mknod(2), acl(5), aclv(5), mknod(5).
HP-UX System Administrator manuals
STANDARDS CONFORMANCE
mknod: SVID2, SVID3, XPG2
mknod(1M)