LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2008, 10:56 AM   #1
djeepp
LQ Newbie
 
Registered: Jun 2006
Posts: 13

Rep: Reputation: 0
Unable to allocate port with port forwarding software


I am using a port forwarding java powered software called Enexity Securelink. When I connect to a site, the software seems unable to forward many ports under 10000. The error message in the log looks like this.

Quote:
#################### ERROR ####################
Jan 25, 2008 12:58:41 PM ERROR: Failed to Forward Local Port 22 to 12136
com.jcraft.jsch.JSchException: PortForwardingL: local port 127.0.0.6:22 cannot be bound.
at com.jcraft.jsch.PortWatcher.<init>(Unknown Source)
at com.jcraft.jsch.PortWatcher.addPort(Unknown Source)
at com.jcraft.jsch.Session.setPortForwardingL(Unknown Source)
at com.jcraft.jsch.Session.setPortForwardingL(Unknown Source)
at rss.scbase.RssScBase.processForwardL(RssScBase.java:576)
at rss.scbase.RssScBase.processRequests(RssScBase.java:418)
at rss.sdc.RssSdc.run(RssSdc.java:128)
at rss.sdc.SdcApplet.runSdc(SdcApplet.java:242)
at rss.sdc.SdcApplet.access$100(SdcApplet.java:19)
at rss.sdc.SdcApplet$1.run(SdcApplet.java:79)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.BindException: Permission denied
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
I need to be able to forward to these ports. Is this a permissions issue?

I am running Gutsy Gibbon on an HP Pavilion zd8000.
 
Old 01-27-2008, 04:51 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
ssh uses port 22. If sshd is running, it may explain why you get the message "cannot bind", as it will already have the connection open.
 
Old 01-28-2008, 03:44 PM   #3
djeepp
LQ Newbie
 
Registered: Jun 2006
Posts: 13

Original Poster
Rep: Reputation: 0
What about port 80? I don't have any web services running and an lsof -i doesn't show 80 occupied by anything, yet it forwards port 80 to 10180 or 10380 on 127.0.0.1 through 127.0.0.20. It makes me think that my user doesn't have permissions to lock these ports. Can this be the case? If so, how do I check for that?
 
Old 01-29-2008, 07:28 AM   #4
djeepp
LQ Newbie
 
Registered: Jun 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I think I figured this one out myself. I gave the java_vm a Set UID permission so it runs as root. It was able to bind to those ports.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
port forwarding on Belkin 4-port Cable/DSL Gateway Router sycamorex Linux - Networking 5 03-05-2007 03:27 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Unable to get X11 port forwarding to work in SSH Windowns Solaris / OpenSolaris 19 09-28-2006 05:52 AM
Serial port forwarding software riffy Linux - Software 0 07-10-2006 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration