Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check which ports are tunneled?

Status
Not open for further replies.

alfer

Programmer
Jun 12, 2003
41
0
0
PL
Hi all!

I have a linux machine, that connects my internal network with internet. Users can connect from internet to restricted account with putty and open tunnels. They forward their local ports to computers in local network. So they can telnet from internet to local SCO-server in my local network or connect to VNC on Windows 98.

I would like to see which ports my users forward. The report like:
user - john
his local port - 5900
forwrded to - 192.168.1.99:5900

How can I see such information? Do You know any appropriet commands?

Any help and any hit will be veeery helpfull

Thanks!
 
iptables -L -v -n is the cureall if they are actually forwarding via iptables which should be impossible if they are unprivileged users....ssh has a different mechanism,
and can be traced via lsof -i -n or netstat, etc..
 
Thanks for all replies.
I have found the "lsof -i" the best.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top