Sponsored Content
Top Forums UNIX for Advanced & Expert Users Testing connectivity to an URL Post 303045335 by hicksd8 on Tuesday 17th of March 2020 06:38:14 AM
Old 03-17-2020
I would like to try and answer your question but I'm completely confused. We need a lot more information to even start to think about it.

However, let me state a couple of facts here (to prompt you to tell us more).

1. Your laptop ip address is 192.168.8.149 and your server address is 192.168.121.72 so if your subnet mask is (typical) 255.255.255.0 then these two addresses are NOT on the same network and so your laptop will send the connection request to its configured gateway. (You could try changing your laptop ip address to 192.168.121.xxx to see if it connects then).

2. You specify a port number on a connection command line when you know that there is a listener on that port number at the other end for the network protocol/service that you are using. If you have a particular service listening on port 8081 then that port number is not also going to work for telnet protocol. By default (ie, without specifying a port number) telnet uses port 23. So you would not specify a different port number on a telnet command line unless you KNOW that a telnet listener is configured on port 8081 at the other end. Telnet will fail to connect otherwise.

If you know all this already then I apologize for not understanding your question but please provide much more information.

Q: Can you ping your target ip address? If that fails then fix that first.
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

2. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

3. UNIX for Dummies Questions & Answers

ReDirecting a URL to another URL - Linux

Hello, I need to redirect an existing URL, how can i do that? There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this? This is on Unix boxes Linux. example: https://m45.testing.address.net/host.php make it so the... (3 Replies)
Discussion started by: SkySmart
3 Replies

4. Solaris

connectivity between servers

We have two servers A and B (both running Solaris 10) out of which one is application server and the other is database server. The two servers faced certain network issues and the two servers were temporarily disconnected.this happened around 5AM GMT monday.Can anyone suggest some log files or... (2 Replies)
Discussion started by: asalman.qazi
2 Replies

5. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST The call goes out to http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena The ID in the middle is always random due to the cookie. I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies

6. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

7. Post Here to Contact Site Administrators and Moderators

Testing BBCODE URL for DragonByte

Here is the URL we will use: https://www.unix.com/post-here-contact-site-administrators-moderators/241569-doesnt-allow-me-use-code-tags.html I will put this in this text with the URL BBCODE. Now I will save the thread and test the URL. (1 Reply)
Discussion started by: Neo
1 Replies

8. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies
TCPSPY.RULES(5) 						   tcpspy.rules 						   TCPSPY.RULES(5)

NAME
tcpspy.rules - configuration file for tcpspy DESCRIPTION
This file, by default /etc/tcpspy.rules, is read by the /etc/init.d/tcpspy script at init time in order to configure tcpspy (see tcpspy(8)) logger filtering rules. It might look like: # /etc/tcpspt.rules example user "joedoe" and rport 22 and raddr 192.168.1.10 user 1003 lport 22 or lport 21 (lport 23 and user "joedoe") or raddr 192.168.1.20 This rules file specifies that tcpspy logs tcp connections according to 4 rules (line 1 to line 4 - one per each line) using the boolean logic (see below) to evaluate each rule. This particular example logs conections: line 1 - for user "joedoe" connecting to 192.168.1.10:22 (remote) line 2 - for user whose UID is 1003 line 3 - to localhost:22 or localhost:21 line 4 - for user "joedoe" to localhost:23 or to 192.168.1.20 (remote) Everything from an "#" signal and the end of the line will not be evaluated. Rule Syntax - just extracted from tcpspy(8) A rule may be specified with the following comparison operators: user uid True if the local user initiating or accepting the connection has the effective user id uid. user "username" Same as above, but using a username instead of a user id. lport port True if the local end of the connection has port number port. lport [low] - [high] True if the local end of the connection has a port number greater than or equal to low and less than or equal to high. If the form low- is used, high is assumed to be 65535. If the form -high is used, low is assumed to be 0. It is an error to omit both low and high. lport "service" Same as above, but using a service name from /etc/services instead of a port number. rport Same as lport but compares the port number of the remote end of the connection. laddr n.n.n.n[/m.m.m.m] Interpreted as a "net/mask" expression; true if "net" is equal to the bitwise AND of the local address of the connection and "mask". If no mask is specified, a default mask with all bits set (255.255.255.255) is used. raddr Same as laddr but compares the remote address. exe "pattern" True if the full filename (including directory) of the executable that created/accepted the connection matches pattern, a glob(7)-style wildcard pattern. The pattern "" (an empty string) matches connections created/accepted by processes whose executable filename is unknown. If the -p option is not specified, a warning message will be printed, and the result of this comparison will always be true. Expressions (including the comparisons listed above) may be joined together with the following logical operations: expr1 or expr2 True if either of expr1 or expr2 are true (logical OR). expr1 and expr2 True if both expr1 and expr2 are true (logical AND). not expr True if expr is false (logical NOT). Rules are evaluated from left to right. Whitespace (space, tab and newline) characters are ignored between "words". Rules consisting of only whitespace match no connections, but do not cause an error. Parentheses, '(' and ')' may be placed around expressions to affect the order of evaluation. Examples These are some sample rules which further demonstrate how they are constructed: user "joe" and rport "ssh" Log connections made by user "joe" for the service "ssh". not raddr 10.0.0.0/255.0.0.0 and rport 25 and (user "bob" or user "joe") Log connections made by users "bob" and "joe" to remote port 25 on machines not on a fictional "intranet". AUTHOR
Tim J. Robbins (tcpspy), Pablo Lorenzzoni (this manpage) SEE ALSO
glob(7), proc(5), services(5), signal(7), syslog(3), tcpspy(8) Spectra April 2001 TCPSPY.RULES(5)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy