Snoop Functions


 
Thread Tools Search this Thread
Operating Systems Solaris Snoop Functions
# 1  
Old 05-08-2006
Snoop Functions

Hello! It is my first post in this forum Smilie.

I`m facing a strange issue. I am using a Solaris 8 as OS, and using the ipnat (ipf) to NAT an incoming port to another, as following:


Host SUN with Solaris 8/NAT WEB Page
(A.B.C.D:80) ---> |A.B.C.D:80 -> A.B.C.D:8800| ---> HTTP

I need to NAT the original port (80) to the port 8800, one aplication is "listening" in this port to redirect the traffic to an URL.

If the command snoop is activated it works well, but if it is disable it donīt work. With the snoop command disable the packet arrives to the SUN station and the NAT process acts well but the redirector process (port 8800) donīt do anything.


Please, I need help with this issue, anyone knows about bugs in the snoop ? or anybody, please, could tell me how exactlly snoop command works ?

Thanks a lot in advance!
Miguel.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Snoop - saving the file

Hi Guy's, I want to run a snoop on an interface and then save it to the local jumpbox that I am connected to the end device via. Can anyone help with the syntax please. Cheers (3 Replies)
Discussion started by: mutley2202
3 Replies

2. Shell Programming and Scripting

How to execute functions or initiate functions as command line parameters for below requirement?

I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line if then... (8 Replies)
Discussion started by: saku
8 Replies

3. Shell Programming and Scripting

snoop script in background

Hi I want to write a script for snoop which can do snoop for 30 min and then process should be killed automatically I am using below codes #!/usr/bin/ksh snoop -d igb0 -o /opt/temp/abc.pcap sleep 1500 kill -9 `ps -ef|grep -i snoop |grep -v grep|awk '{print $2}'` But process is not... (3 Replies)
Discussion started by: anish19
3 Replies

4. Shell Programming and Scripting

Parse snoop output

Hi all, Is it possible to create an script that parse an snoop output similar to the example above ? Each line is ended by "$" (set list in vi). as a result, I would like to print the output in only one line. can someone give me some tip ? Thanks a lot .:) l version="1.0" ... (5 Replies)
Discussion started by: robdcb
5 Replies

5. UNIX for Advanced & Expert Users

FTP Snoop

Hi, Can anyone please tell me a ftp site where I can download the solaris snoop package? I need to download the package so I can use the command in a Linux environment instead of using tcpdump. Need practice with snoop. Thanks for your help. (3 Replies)
Discussion started by: Pouchie1
3 Replies

6. Shell Programming and Scripting

Snoop Script

Hi, I want to write a script that checks an interface with the snoop command, if there is no traffic in 10 minutes on port 123 from the ip add 10.*.*.* it should send a e-mail.but i don't know how to start writing this script does anybody have an idea or an sample script that i can modifi. ... (2 Replies)
Discussion started by: tafil
2 Replies

7. Solaris

snoop command

Hi. I'm trying to capture traffic with the snoop command using the net expression but I fail when a I've to specify a subnet ex: 10.201.64/18 Did you know the correct syntax? I've tried with snoop -ta -x0 net 10.201.64.0 255.255.192.0 but doesn't match. Thnx (4 Replies)
Discussion started by: kurtolo
4 Replies

8. UNIX for Advanced & Expert Users

snoop equivalent for AIX

is there a snoop equivalent in other flavors of unix? for AIX IBM (1 Reply)
Discussion started by: jcasares
1 Replies

9. UNIX for Dummies Questions & Answers

snoop equivalent

is there a snoop equivalent in other flavors of unix? HPUX, SCO or linux. TIA Peter (2 Replies)
Discussion started by: pbonilla
2 Replies
Login or Register to Ask a Question
ipfs(1M)						  System Administration Commands						  ipfs(1M)

NAME
ipfs - saves and restores information for NAT and state tables SYNOPSIS
ipfs [-nv] -l ipfs [-nv] -u ipfs [-nv] [-d dirname] -R ipfs [-nv] [-d dirname] -W ipfs [-nNSv] [-f filename] -r ipfs [-nNSv] [-f filename] -w ipfs [-nNSv] -f filename -i <if1>,<if2> DESCRIPTION
The ipfs utility enables the saving of state information across reboots. Specifically, the utility allows state information created for NAT entries and rules using "keep state" to be locked (modification prevented) and then saved to disk. Then, after a reboot, that information is restored. The result of this state-saving is that connections are not interrupted. OPTIONS
The following options are supported: -d Change the default directory used with -R and -W options for saving state information. -n Do not take any action that would affect information stored in the kernel or on disk. -v Provides a verbose description of ipfs activities. -N Operate on NAT information. -S Operate on filtering state information. -u Unlock state tables in the kernel. -l Lock state tables in the kernel. -r Read information in from the specified file and load it into the kernel. This requires the state tables to have already been locked and does not change the lock once complete. -w Write information out to the specified file and from the kernel. This requires the state tables to have already been locked and does not change the lock once complete. -R Restores all saved state information, if any, from two files, ipstate.ipf and ipnat.ipf, stored in the /var/db/ipf directory. This directory can be changed with the -d option. The state tables are locked at the beginning of this operation and unlocked once complete. -W Saves in-kernel state information, if any, out to two files, ipstate.ipf and ipnat.ipf, stored in the /var/db/ipf directory. This directory can be changed with the -d option. The state tables are locked at the beginning of this operation and unlocked once complete. FILES
o /var/db/ipf/ipstate.ipf o /var/db/ipf/ipnat.ipf o /dev/ipl o /dev/ipstate o /dev/ipnat ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWipfu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
ipf(1M), ipmon(1M), ipnat(1M), attributes(5) NOTES
To view license terms, attribution, and copyright for IP Filter, the default path is /usr/lib/ipf/IPFILTER.LICENCE. If the Solaris operat- ing environment has been installed anywhere other than the default, modify the given path to access the file at the installed location. DIAGNOSTICS
Arguably, the -W and -R operations should set the locking and, rather than undo it, restore it to what it was previously. Fragment table information is currently not saved. SunOS 5.10 1 Oct 2003 ipfs(1M)