08-05-2013
syregnar86,
is this more on firewall(opening ports/closing ports) or more into UNIX sockets ports? Are your question related to ports like (ftp / ssh / sftp)
You have to make it clear.
Ports are open and closed by applications ( like ftp / ssh / http). If you close the applicaiton it will also close the port.
To view what ports is intended to what application is it located in /etc/services that file specify some of the known ports. some applications are not there but those who are common are indicated in the mentioned file.
To view any existing ports ( ESTABLISHED / LISTENING ports on your unix machine. you can use the unix command NETSTAT
ex:
netstat -an | grep ESTAB
hope that helps.
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi. I have been trying to send mail using the mailx command. I also tryed to use the mail command.
The thing is that when I try to send the email, i receive automatically to my mailbox a DAEMON response sayng that the mailhost is unknown...
The syntax I am using is this:
$mailx -s "this... (2 Replies)
Discussion started by: ldrojasm
2 Replies
2. UNIX for Dummies Questions & Answers
Is there a command that will show me all ports being used?
I thought maybe the "lsof" command would show me, but I'm not seeing anything.
Thanks,
Jeff (2 Replies)
Discussion started by: lawadm1
2 Replies
3. Shell Programming and Scripting
Hi to everyone here,
I have wrote a script to install and set up parental controls with dansguardian and tinyproxy,(fedora) it works quite well except that i have to manually set http proxy to 127.0.0.1 and port 8080 in firefox, is there a way to do this by command line/script?
Id appeciate any... (2 Replies)
Discussion started by: dave123
2 Replies
4. Shell Programming and Scripting
Hello, im writing a script that validates a URL (the parameter) using http://validator.w3.org
first it downloads the site (the output line I want is stored in the h2 field of the site's html.
wget http://validator.w3.org/check?url=$1 2> /dev/null
sed -n '/<h2/p' check?uri=$1 | sed 's/... (5 Replies)
Discussion started by: drareeg
5 Replies
5. Shell Programming and Scripting
Hello all,
This bellow code works. I'm just trying to find a simplified way to achieve this. I'm sure there is an easier way and it must be to simple for me to find.
Verify that the OS version is 6.1. If not exit the script. Of course if i just put a && exit 1 at the end of the ssh... (11 Replies)
Discussion started by: maverick72
11 Replies
6. Homework & Coursework Questions
Hi,
I am creating a program with the C language that simulates the WC command in Unix. My program needs to count lines, bytes and words. I have not added the code to count bytes and words yet. I am having trouble understanding what the file option/flag '-' does. I can not visualize how it moves... (1 Reply)
Discussion started by: heywoodfloyd
1 Replies
7. Shell Programming and Scripting
Hi,
I need to read a string with ; separated using loop one filed by one field and perform some operation. Can you please check and let me know how to print command parameterised.
key=phani;ravi;kiran
number_of_keys=`echo $key|awk '{print NF}' FS=';'`
for (( i = 1; i <= $number_of_keys;... (4 Replies)
Discussion started by: Ravindra Swan
4 Replies
LEARN ABOUT OPENDARWIN
dialups
dialups(4) File Formats dialups(4)
NAME
dialups - list of terminal devices requiring a dial-up password
SYNOPSIS
/etc/dialups
DESCRIPTION
dialups is an ASCII file which contains a list of terminal devices that require a dial-up password. A dial-up password is an additional
password required of users who access the computer through a modem or dial-up port. The correct password must be entered before the user
is granted access to the computer. The set of ports that require a dial-up password are listed in the dialups file.
Each entry in the dialups file is a single line of the form:
terminal-device
where
terminal-device The full path name of the terminal device that will require a dial-up password for users accessing the computer
through a modem or dial-up port.
The dialups file should be owned by the root user and the root group. The file should have read and write permissions for the owner (root)
only.
EXAMPLES
Example 1: A sample dialups file.
Here is a sample dialups file:
/dev/term/a
/dev/term/b
/dev/term/c
FILES
/etc/d_passwd dial-up password file
/etc/dialups list of dial-up ports requiring dial-up passwords
SEE ALSO
d_passwd(4)
SunOS 5.10 4 May 1994 dialups(4)