I would like to test a particular port in Solaris, to see if the firewall rules are ok.
Should I install an application, but as yet I have not, have to force solaris to keep an open door, and put any application listening to port 1099, and will test a terminal connectivity via Telnet or Ping.
How do I put the port 1099 open and simulate an application that is listening on that port?
You can adjust /etc/services and /etc/inetd.conf to also offer telnet on the port. Then you can open telnet from a client to that port are see if it open.
If you add a line to /etc/services such as:-
and add a line to /etc/inetd.conf such as:-
... and then signal inetd to re-read it's config, that should be enough. Check you man page for inetd or inetd.conf. It will probably suggest you send a kill -2, kill -HUP or something similar to the inetd process. Check you man page before issuing either of these in case they cause inetd to terminate and drop all network connections/services leaving just the console to get back in.
Then, from an appropriate client (suitable source address to test your firewall) issue:-
You should get an instant response. If you get a login prompt, then on the server, you can run:-
... and see what is connected.
It depends if your OS has that command of course. It seems to be a general Linux command rather than the commercial Solaris, HPUX or AIX for simple searching.
That's a shame, because that would save me some effort too. Our network chaps have it locked down pretty tight (and quite right too) but when you get an agreement to open something, they insist on an immediate test which makes life a bit hard. If there is something so simple as netcat on other OSs, then I'd like to know.
Robin
Last edited by rbatte1; 08-15-2012 at 11:35 AM..
Reason: Spelling
Hi,
We cant set the listen address of my java process to the IP address or any of the DNS names listen in the hosts file of the server.
We can access the resources of the pid in the web browser through http://<IP / DNS>:port/console
Based on the pid, how can we find what is the listen... (6 Replies)
Hi,
I am trying to configure a transparent squid cache. When I try to use the below option in squid.conf, squid listens on port 80 only for the IP address configured on the system's interface.
http_port 80 transparent
But I want squid to accept connections for any IP address on port 80.... (3 Replies)
Hi,
I am using solaris 10.
I have opened a socket connection using java in solaris 10 operating system, the port went to LISTEN state and able to create new socket connection and the new connections went to ESTABLISHED state.
If I issue the command "netstat -an | grep <<portnumber>>", I... (10 Replies)
I need to launch a script as soon as a file comes via a specified port on my system from another system. Program should work as a dameon and should invoke only when port start/stop accepting file. Any idea how to program/script it...
Please no suggestions for cron. Thanks in advance. (1 Reply)
Hallo,
I have a machine which serves as NTP server. This machine has more (3) Network interfaces (+ loopback). By default NTP "binds" itself to all available interfaces, i.e. it listens on port 123 on all interfaces:
netstat -an|grep 123
udp 0 0 127.0.0.1.123 *.*
udp... (0 Replies)
Hi all,
How can I log all requests on ports for programs like ftp, telnet, rsh, xdmcp etc...
I want to see if anyone uses these programs/protocols and how often.
Is it difficult to setup a log for these ports and listen on all requests?
/combat (4 Replies)