LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-23-2003, 08: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, 12:09 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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, 06: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



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

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

All times are GMT -5. The time now is 08:58 PM.

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