All of lore.kernel.org
 help / color / mirror / Atom feed
From: "roland" <for_spam@gmx.de>
To: user-mode-linux-devel@lists.sourceforge.net,
	"Sven Köhler" <skoehler@upb.de>
Subject: Re: [uml-devel] [RFE] con=port
Date: Wed, 24 Mar 2004 21:04:22 +0100	[thread overview]
Message-ID: <050901c411db$33d65110$2000000a@schlepptopp> (raw)
In-Reply-To: c3skqj$st3$1@sea.gmane.org

hi !
i think specifying a tcp-port on a commandline should generally be possible by specifying the interface adress,too.

let`s say - you have a tcp listening port at "xxxx"
ok - here we go - but what, if we have a host with multiple interfaces?

this port "xxxx" can be opened for listening on

ALL
ONE
or
SEVERAL

of them.

this is completely independend - but many apps just blindly bind to 0.0.0.0, which means "ALL".
not a very flexible thing (and from the point of security: insecure!), but it`s easier for the programmer - this must be the reason,
why we have 0.0.0.0 that often.

i like applications, which let me say: use port xxxx on interface (ip) W.X.Y.Z,
i.e. instead of "port=6000"  i would like  "port=127.0.0.1:6000,10.0.0.1:6000"

apache does, samba does (via config-files) - and many other apps do.

i had such "controversial" discussion a while ago on Xfree86: http://marc.theaimsgroup.com/?t=106900961500001&r=1&w=2

regards
roland



----- Original Message ----- 
From: "Sven Köhler" <skoehler@upb.de>
To: <user-mode-linux-devel@lists.sourceforge.net>
Sent: Wednesday, March 24, 2004 7:39 PM
Subject: [uml-devel] [RFE] con=port


> Hi,
>
> it seem that one has to use con=port:<number> to have UML listening on a
> TCP/IP-port. UML also seems to bind to 0.0.0.0
> I'd like UML to bind on 127.0.0.1 only and to bind the socket to a free
> port chosen by the TCP/IP-stack.
>
> i would than do "con=port" and UML would bind each console to another
> TCP/IP-Port. I should than be abled to use mconsole to query which the
> port-number con1-9 are using.
>
> Another point is, that "con1=port:9000" doesn't seem to work with a
> 2.6.4-um1 kernel. I was abled to connect with telnet, but no matter
> which key i pressed, i saw nothing. In additon, the mconsole didn't
> work. I could attach mconsole to the UML, but any command blocked and
> never returned to the prompt again.
>
> Another point would be security. Even if UML only binds to 127.0.0.1,
> the port is accessable by any user logged in. But i have no clever idea
> for that.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  parent reply	other threads:[~2004-03-24 19:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-24 18:39 [uml-devel] [RFE] con=port Sven Köhler
2004-03-24 19:26 ` Henrik Nordstrom
2004-03-24 19:40   ` Sven Köhler
2004-03-24 19:48     ` Henrik Nordstrom
2004-03-24 20:04 ` roland [this message]
2004-03-24 21:26   ` Henrik Nordstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='050901c411db$33d65110$2000000a@schlepptopp' \
    --to=for_spam@gmx.de \
    --cc=skoehler@upb.de \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.