Blocking ports and reseting conections


 
Thread Tools Search this Thread
Operating Systems SCO Blocking ports and reseting conections
# 1  
Old 09-28-2006
Blocking ports and reseting conections

Hi folks!

We have SCO Open System V 5.0.5 here.

When I type "netstat -n" I found a line mentioning a conection at the port 1025, as follows:

tcp 0 0 quartzo.1025 200-203-8-90.csl.aas ESTABLISHED

Here we use only conections thru ports 22,23 and 25. I would like to close the acess by other ports directly in the unix system, not in the modem. Is it possible? Can someone point me how to do this?

Also I would like to know how to reset this conection mentioned above without reboot the system. Is there some command to do this?

Sorry me for my questions but I have not much experience.

Best Regards,

Marcio Moraes
Brazil
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reseting row count every given number of rows

I have a file with 48 rows. I am counting 6 rows and adding 6 to that number and repeating the operation, and then output the value in column 1. For the second column, I would like to get sort of a binary output (1s and 2s) every 3rd row. This is what I have: awk '{print ++src +... (1 Reply)
Discussion started by: Xterra
1 Replies

2. Programming

Which are blocking and non-blocking api's in sockets in C ?

among the below socket programming api's, please let me know which are blocking and non-blocking. socket accept bind listen write read close (2 Replies)
Discussion started by: VSSajjan
2 Replies

3. UNIX for Dummies Questions & Answers

scp conections refused

hi guys, I use command scp conections refuse. I will copy file ganteng.txt to host 172.16.x.x # scp ganteng.txt -p 9060 amin@172.16.x.x:/root ssh: connect to host 172.16.x.x port 22: Connection refused lost connection If I : ssh -p 9060 amin@172.16.x.x conected insert your... (7 Replies)
Discussion started by: williamen
7 Replies

4. Red Hat

Blocking an IP address

Dear all, I am new to this forum.I need some assistant from you people. I have a server in which Linux 5 is installed and it is in the network. How i block any user to access my server.. Upto how many users i can block.. send me the procedure.... Thank you in advance...... (10 Replies)
Discussion started by: sudhansu
10 Replies

5. UNIX for Advanced & Expert Users

ps blocking

Hi Folks I have been debugging a script that is called every thirty seconds. Basically it is doing a ps, well two actually, one to file (read by the getline below) and the other into a pipe. The one into the pipe is: - V_SYSVPS=/usr/sysv/bin/ps $V_SYSVPS -p$PIDLIST -o$PSARGS... (0 Replies)
Discussion started by: steadyonabix
0 Replies

6. Solaris

Blocking outgoing connection to ports/host in solaris

Hi, I want to block all outgoing connection ( the IMAP ) to my exchnage . I have to do it in my solaris server; from solaris host no outgoing connection can be made to the imap server. Please help me to configure that. I am new in solaris. Kind regards, Akhtar (2 Replies)
Discussion started by: akhtarbd
2 Replies

7. IP Networking

Help determining what's blocking ports

I'm fairly new to networking and am trying to figure our network out, as I was recently assigned to be network administrator where I work. I was trying to get utorrent to work but am not having success in figuring out what's blocking my ports. As of now, I'm getting connected from a mikrotik... (11 Replies)
Discussion started by: brandonros
11 Replies

8. UNIX for Dummies Questions & Answers

Blocking a Single IP

Hello, My problem thus follows: I am running a server which allows users to connect on UDP, not TCP. There is a certain hacker, whom I have the IP of, who keeps crashing the server. I simply want to block him from accessing my box at all. I added him to the hosts.deny file, but am not sure if... (4 Replies)
Discussion started by: Phobos
4 Replies

9. IP Networking

blocking DHCP

I've got a legit DHCP server on my network. I've got a 3550 as my VTP server providing 4 vlans to 4 2950 switches. If somebody were to plug into one of those vlans with a DHCP server configured then it would throw off my whole network. How could i block the DHCP server that could plug into the... (2 Replies)
Discussion started by: byblyk
2 Replies

10. UNIX for Dummies Questions & Answers

No more telnet conections

Help. my trouble... telnetd: All network ports in use. /etc/inetd.conf telnet stream tcp nowait NOLUID /etc/telnetd telnetd only 32 telnet permit SCO UNIX 3.2.5.0.5 :confused: (2 Replies)
Discussion started by: RoMaGo
2 Replies
Login or Register to Ask a Question
LWRES_GETNAMEINFO(3)													      LWRES_GETNAMEINFO(3)

NAME
lwres_getnameinfo - lightweight resolver socket address structure to hostname and service name SYNOPSIS
#include <lwres/netdb.h> int lwres_getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags); .SH "DESCRIPTION" This function is equivalent to the getnameinfo(3) function defined in RFC2133. lwres_getnameinfo() returns the hostname for the struct sockaddr sa which is salen bytes long. The hostname is of length hostlen and is returned via *host. The maximum length of the hostname is 1025 bytes: NI_MAXHOST. The name of the service associated with the port number in sa is returned in *serv. It is servlen bytes long. The maximum length of the service name is NI_MAXSERV - 32 bytes. The flags argument sets the following bits: NI_NOFQDN A fully qualified domain name is not required for local hosts. The local part of the fully qualified domain name is returned instead. NI_NUMERICHOST Return the address in numeric form, as if calling inet_ntop(), instead of a host name. NI_NAMEREQD A name is required. If the hostname cannot be found in the DNS and this flag is set, a non-zero error code is returned. If the hostname is not found and the flag is not set, the address is returned in numeric form. NI_NUMERICSERV The service name is returned as a digit string representing the port number. NI_DGRAM Specifies that the service being looked up is a datagram service, and causes getservbyport() to be called with a second argument of "udp" instead of its default of "tcp". This is required for the few ports (512-514) that have different services for UDP and TCP. RETURN VALUES
lwres_getnameinfo() returns 0 on success or a non-zero error code if an error occurs. SEE ALSO
RFC2133, getservbyport(3), lwres(3), lwres_getnameinfo(3), lwres_getnamebyaddr(3). lwres_net_ntop(3). BUGS
RFC2133 fails to define what the nonzero return values of getnameinfo(3) are. BIND9 Jun 30, 2000 LWRES_GETNAMEINFO(3)