Sponsored Content
Full Discussion: How to setup ports on Linux
Operating Systems Linux How to setup ports on Linux Post 302158906 by rainbow_bean on Wednesday 16th of January 2008 03:36:52 PM
Old 01-16-2008
How to setup ports on Linux

If Linux have a file like AIX: rc.tcpip to setup port services?
 

10 More Discussions You Might Find Interesting

1. SuSE

Can we disable/delay login ports in suse linux ?

Plz . tell me the command in suse linux to rert availibility of login ports, disable login ports, & delay available login ports. (3 Replies)
Discussion started by: vrguha
3 Replies

2. SuSE

Setup Problem with SUSE Linux

I setup SUSE Linux 10. I downloaded from SUSE website. A DVD version. But I have a problem: Please click to see the screen shots Shot 1: (Problem is here, with Software) http://www.vernoos.net/shot-1.jpg Shot 2: http://www.vernoos.net/shot-2.jpg Shot 3:... (1 Reply)
Discussion started by: HASSELBLAD
1 Replies

3. Linux

linux setup and addition config

Hi, I have just setup linux on fedora 6 and would like to understand any further configurations - we have our standard build procedures however wan to know if there is anything else required for good practice: we have setup: selinux switched off due to causing confilicts with apps running... (3 Replies)
Discussion started by: chlawren
3 Replies

4. IP Networking

domain linux server, open ports?

Hi all - i currently run a domain strifex.net. This domain has a dedicated IP address and in having that, should be able to run a ventrilo VoIP server from it. I uploaded all the needed files etc... and am able to connect to it, if and only if i enable DMZ to my local machine - then i am able to... (1 Reply)
Discussion started by: ccfc1986
1 Replies

5. SuSE

setup Linux as a wireless router

Hi I've done some google searching but haven't really found anything that seems to be what I need. First I should add it's been awhile since I have run Linux but that's changing :) What I'm after doing is setting up a Linux box as a wireless router. I will be running the Suse distro if I... (2 Replies)
Discussion started by: woofie
2 Replies

6. Linux

proper way to reserve ports in linux

How do you debug a perl script non interactively, similar to bash -x? (1 Reply)
Discussion started by: marcpascual
1 Replies

7. Cybersecurity

Ports open on solaris/linux

Hi, I am trying to close all possible ports on my solaris and linux servers. I am stuck on the following ports on both Solaris 10 (local zone) and Linux (Suse) servers. Here is nmap output : PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 1720/tcp open H.323/Q.931... (6 Replies)
Discussion started by: manifesto
6 Replies

8. Programming

c functions to turn off open ports in linux

nmap is a network utility which gives u information about open ports on ur system. for eg $ nmap 10.226.112.202 PORT STATE SERVICE 7/tcp open echo 13/tcp open daytime 22/tcp open ssh 23/tcp open telnet 37/tcp open time 1100/tcp open unknown these open... (2 Replies)
Discussion started by: anand121
2 Replies

9. UNIX for Advanced & Expert Users

Mail Setup on Linux

Hi Guys, I need to send mail from linux to my outlook email id. mailx command is not working. I guess, some configuration is required. Don't know what exactly needs to be done. Please help. Thanks, Vikas (1 Reply)
Discussion started by: vikanna
1 Replies

10. UNIX for Dummies Questions & Answers

Linux (RHEL) and ports...

Hi, One of our applications running on RHEL is not working as expected - the application supplier has advised that a port is not allowing the correct traffic. I know the port is open for incoming connections (checked with nmap and telnet) however is there a way I check the port is open for... (4 Replies)
Discussion started by: mcclunyboy
4 Replies
GETSERVENT(3)						     Linux Programmer's Manual						     GETSERVENT(3)

NAME
getservent, getservbyname, getservbyport, setservent, endservent - get service entry SYNOPSIS
#include <netdb.h> struct servent *getservent(void); struct servent *getservbyname(const char *name, const char *proto); struct servent *getservbyport(int port, const char *proto); void setservent(int stayopen); void endservent(void); DESCRIPTION
The getservent() function reads the next line from the file /etc/services and returns a structure servent containing the broken out fields from the line. The /etc/services file is opened if necessary. The getservbyname() function returns a servent structure for the line from /etc/services that matches the service name using protocol proto. If proto is NULL, any protocol will be matched. The getservbyport() function returns a servent structure for the line that matches the port port given in network byte order using protocol proto. If proto is NULL, any protocol will be matched. The setservent() function opens and rewinds the /etc/services file. If stayopen is true (1), then the file will not be closed between calls to getservbyname() and getservbyport(). The endservent() function closes /etc/services. The servent structure is defined in <netdb.h> as follows: struct servent { char *s_name; /* official service name */ char **s_aliases; /* alias list */ int s_port; /* port number */ char *s_proto; /* protocol to use */ } The members of the servent structure are: s_name The official name of the service. s_aliases A zero terminated list of alternative names for the service. s_port The port number for the service given in network byte order. s_proto The name of the protocol to use with this service. RETURN VALUE
The getservent(), getservbyname() and getservbyport() functions return the servent structure, or a NULL pointer if an error occurs or the end of the file is reached. FILES
/etc/services services database file CONFORMING TO
BSD 4.3 SEE ALSO
getprotoent(3), getnetent(3), services(5) BSD
2001-07-25 GETSERVENT(3)
All times are GMT -4. The time now is 05:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy