LinuxQuestions.org
Register a domain and help support LQ
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 12-23-2003, 09:01 PM   #1
meks
Member
 
Registered: Jul 2003
Location: AT, Upper Austria
Posts: 33

Rep: Reputation: 15
opening ports below 1024 without being root?


hi there.

as you already read in the subject, i'm trying to open an unused port below 1024 (1002 in particular) without being root.

i want to run ntop's web interface on port 1002, since my firewall is blocking all inbound connections below 1024.


i believe that theres no way of doing this without root permissions. am i right?

thanks in advance

meks.
 
Old 12-25-2003, 01:09 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Quite right.
Needs to have root privelege to bind to that port...

or you could redirect another port to the ntop server.

" since my firewall is blocking all inbound connections below 1024 "
below or above 1024?
Most registered & legitimate services are below 1024...
 
Old 12-25-2003, 07:05 PM   #3
meks
Member
 
Registered: Jul 2003
Location: AT, Upper Austria
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by peter_robb
below or above 1024?
Most registered & legitimate services are below 1024...
actually, all inbound connections BELOW 1024. if you're connecting to an ftp (via port 21) the ftp data will not be transferred via 20/21 but via something above 1024.
so, with my current iptables-config, i will be able to connect to the ports 1-1024 but nobody else will be able to do this vice versa.
and of course all ports above 1024 (except some few) may be used for either inbound or outbound.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Allowing non-root to bind to ports < 1024? MWTJ Linux - Networking 8 08-12-2011 08:06 PM
Need Java program to listen on ports < 1024 w/o being root - possible brenan99 Linux - General 2 02-22-2005 03:12 PM
using privileged ports below 1024 not possible AS ROOT??? flipper333 Slackware 2 01-23-2004 08:35 PM
binding <1024 ports with non root account? linuxlouis Linux - Networking 2 08-11-2003 06:55 PM
Ports below 1024 peo66 Linux - Networking 4 06-14-2003 06:04 AM


All times are GMT -5. The time now is 12:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration