03-03-2011
Thanks for the quick reply. I am using the Skype incoming port to filter the output of lsof(in my script) I guess it doesn't matter who started the connection, just that it is active. since TCP connections do communicate in both directions. Here are a couple examples from skype. I didn't connect to anyone here, but these are the servers it connects to automatically when it starts up:
Quote:
lsof -i | egrep ESTABLISHED| grep Skype
Skype 26591 JOE 63u IPv4 0x22fcaaec 0t0 TCP 10.0.1.2:54185->c-68-84-136-243.hsd1.md.comcast.net:31388 (ESTABLISHED)
Skype 26591 JOE 68u IPv4 0x221f4274 0t0 TCP 10.0.1.2:54186->213.146.189.201:12350 (ESTABLISHED)
Last edited by chancho; 03-03-2011 at 03:26 AM..
Reason: more info
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Could someone please give me a step for a hint on which version and where is the above utility is for version 4.3.3.0
of Aix. (1 Reply)
Discussion started by: jacl
1 Replies
2. AIX
hello
Sorry but i don't understand very well the lsof command with the man.
Can you explain to me what is the use of this command ?
thank you (2 Replies)
Discussion started by: pascalbout
2 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I'm having a problem with "lsof" in HP-UX system. Its giving me 2 two different results when running it.
1 . lsof -p 'PID' | wc -l -----gives some value
2 . lsof | grep 'PID' | wc -l
The above two commands gives me two different values with the same PID......
Thanks (6 Replies)
Discussion started by: marc
6 Replies
4. Shell Programming and Scripting
Hi ..
I have written a cronjob to invoke a script that would transfer files based on some criteria.
Consider folders A and B. Say I FTP a large file to A. Before the file gets fully transfered say the cronjob gets invoked. The script will move the file before its fully transfered. To detect... (1 Reply)
Discussion started by: champak
1 Replies
5. HP-UX
Hey Guys...
I am looking for lsof by HPUX 11.23 . Could someone said me where can download it?
Thanks in Advance.
ANGEL GADEA (3 Replies)
Discussion started by: aggadtech08
3 Replies
6. UNIX for Dummies Questions & Answers
I'm looking to list all of the files open at a certain time up on a UNIX box.
From looking on the internet, it looks as though lsof is the most common.
However have tried this and got the following:
ksh: lsof: not found
Now having gone into bash mode and hit tab twice I see that lsof... (3 Replies)
Discussion started by: meevagh
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I typed lsof -i :80 in my putty but i am not able to get sockets related to port 80
Can any one help me out soon
Can anyone point out the reason for not able to get the related sockets
Output of what i am getting in my putty is displayed below
training@use:~> lsof -i :80... (4 Replies)
Discussion started by: satheeshkr_cse
4 Replies
8. HP-UX
In Linux and Solaris lsof accepts the -X switch which allows to see if deleted files are still in use and eat disk space. In HP-UX it is now working and it is a problem... today one of my filesystems on the server was increasing very fast but existing file sizes were not really changing. lsof shows... (3 Replies)
Discussion started by: Vorb
3 Replies
9. OS X (Apple)
This is abridged lsof output from my safari process:
Safari 13063 owner 9u unix 0x982ef3b9c1be1293 0t0 ->0x982ef3b9b7534eab
Safari 13063 owner 10u unix 0x982ef3b9c1be0933 0t0 ->0x982ef3b9c1be1423
Safari 13063 owner 11u unix 0x982ef3b9c1be1423 ... (1 Reply)
Discussion started by: sakurashinken
1 Replies
10. Shell Programming and Scripting
Hi,
I am trying to find the files in a specific directory that are currently in open state. I need this information to archive the old files that are not active in the directory.
I get the following output when I try the command $ lsof +d '/var/tmp/'|awk '{print $9}'|sort -u
NAME... (1 Reply)
Discussion started by: ryzen7
1 Replies
FAITH(4) BSD Kernel Interfaces Manual FAITH(4)
NAME
faith -- IPv6-to-IPv4 TCP relay capturing interface
SYNOPSIS
device faith
DESCRIPTION
The faith interface captures IPv6 TCP traffic, for implementing userland IPv6-to-IPv4 TCP relay like faithd(8).
Each faith interface is created at runtime using interface cloning. This is most easily done with the ifconfig(8) create command or using
the cloned_interfaces variable in rc.conf(5).
Special action will be taken when IPv6 TCP traffic is seen on a router, and the routing table suggests to route it to the faith interface.
In this case, the packet will be accepted by the router, regardless of the list of IPv6 interface addresses assigned to the router. The
packet will be captured by an IPv6 TCP socket, if it has the IN6P_FAITH flag turned on and matching address/port pairs. As a result, faith
will let you capture IPv6 TCP traffic to some specific destination addresses. Userland programs, such as faithd(8) can use this behavior to
relay IPv6 TCP traffic to IPv4 TCP traffic. The program can accept some specific IPv6 TCP traffic, perform getsockname(2) to get the IPv6
destination address specified by the client, and perform application-specific address mapping to relay IPv6 TCP to IPv4 TCP.
The IN6P_FAITH flag on a IPv6 TCP socket can be set by using setsockopt(2), with level IPPROTO_IPV6 and optname IPv6_FAITH.
To handle error reports by ICMPv6, some ICMPv6 packets routed to an faith interface will be delivered to IPv6 TCP, as well.
To understand how faith can be used, take a look at the source code of faithd(8).
As the faith interface implements potentially dangerous operations, great care must be taken when configuring it. To avoid possible misuse,
the sysctl(8) variable net.inet6.ip6.keepfaith must be set to 1 prior to using the interface. When net.inet6.ip6.keepfaith is 0, no packets
will be captured by the faith interface.
The faith interface is intended to be used on routers, not on hosts.
SEE ALSO
inet(4), inet6(4), faithd(8)
Jun-ichiro itojun Hagino and Kazu Yamamoto, An IPv6-to-IPv4 transport relay translator, RFC3142.
HISTORY
The FAITH IPv6-to-IPv4 TCP relay translator first appeared in the WIDE hydrangea IPv6 stack.
BSD
April 10, 1999 BSD