LinuxQuestions.org
Review your favorite Linux distribution.
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 07-11-2010, 01:55 PM   #1
bvn
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Rep: Reputation: 1
how do I allow remote access to a server running on my user account?


This question has been asked a thousand times; but, not with this flavor. I am going to mention a few "programming" things, but I am only interested in the network issues.
---
In the past, I've installed Internet services as daemons and as xinetd.d with no problems. Those approaches do not meet my needs. And, perhaps, nothing will.
---
- the service was converted from VB-6 to wxPython. It has a GUI which is accessed with either "remote desktop" or VNC.
- the wxPython service works on Windows and can be accessed from other hosts on my LAN
- the wxPython service works on CentOS and Fedora, but can only be accessed from within the server host. Even from other user-ids. But, I cannot get to it from other hosts.
- ipchains AKA firewall ports are marked for INPUT.
- The server host uses autologin to fire up a useid in group "user". I do not want it running as "root". the .bash_profile fires the service up.
- the service is heavily mult-threaded, and supports devices connected to serial ports asynchronously with the ephemeral port threads (all this works).
---
There are some programming solutions that I would rather not develop.
- a proxy service that runs under xinetd.d.
- separate the GUI code from the Internet and serial port code. Allocate a "control" port for remote GUI control. a'la SAMBA & SWAT
---
Is there any hope, that I can run it as is, by doing some network configuration stuff.
---
Thanks in advance

Last edited by bvn; 07-11-2010 at 02:09 PM.
 
Old 07-11-2010, 03:47 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Sorry ... but I can't make any sense out of what your trying to ask.

Q: What "goal" are you trying to achieve
<= Never mind the "how's" - exactly WHAT do you want to accomplish?

Q: What platform(s) are you using?
For example, do you want to have a Windows "client" remotely log in with a GUI to a Linux "server"?

Q: Any other important details/constraints?

Again: please focus exclusively on your REQUIREMENTS (the "what"), do *not* worry about "implementation" ("how") yet.

Thanx in advance .. PSM

PS:
If I'm understanding you even 1/2 way correctly, perhaps this link might be useful to you:

http://www.ltsp.org/

PPS:
This beast started out in life as a VB6 app??? Omg omg omg...

Last edited by paulsm4; 07-11-2010 at 03:49 PM.
 
Old 07-12-2010, 06:02 PM   #3
bvn
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 1
The 2002 project specification is 15 pages long accompanied by a 10 page Principles of Operation. I'm sure you don't want that.
---
To keep things as brief as possible, please assume:
service: a program using socket "bind" & "accept" methods. As in - services run on servers. Call this program SERV
client: a program using socket "connect" method. Call this program USER
SERV and USER are using a proprietary full-duplex Internet protocol CPUXA/IP that I developed in 2002 and have been using ever since
---
requirements:
1) SERV and USER shall be PC platform agnostic (Linux, MAC, and Windows)
2) SERV shall not have root privileges
3) SERV has a monitoring and control GUI, which shall be remotely accessible by VNC, remote desktop, or equivalent - in conjunction with it's support of at least 9 instances of USER.
4) USER shall be able to run on any host on the LAN without getting a connection refused - excepting the 9 instance limit.
---
What does work:
SERV on Windows, USER on Windows
SERV on Windows, USER on FC-13 or CentOS
SERV on CentOS 192.168.4.5, USER on Centos 192.168.4.5
SERV on FC-13 192.168.4.14, USER on FC-13 192.168.4.14
---
I am a retired systems programmer with 50+ years of experience (mostly in IBM assembler) developing interrupt handlers, communications protocols, and run-time libraries for compilers.
 
Old 07-12-2010, 06:12 PM   #4
bvn
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 1
This thing started out in "C" (see Mark A. Day's XALIB) but the community I was working with did not understand "C". VB-6 was the community's 2002 choice. It is the only VB-6 thing I've ever written. I am pretty much language agnostic. Python is my current favorite, but LUA and TCL are close seconds. I hate C++ and am terrible at user interfaces. I use wxGlade to hammer out the appearance.
 
Old 07-12-2010, 11:26 PM   #5
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
OK - I confess, I still don't understand. But I think this might be the central problem you're trying to solve:
Quote:
- the wxPython service works on Windows and can be accessed from other hosts on my LAN
- the wxPython service works on CentOS and Fedora, but can only be accessed from within the server host. Even from other user-ids. But, I cannot get to it from other hosts.
...
Code:
SERV on Windows, USER on Windows
SERV on Windows, USER on FC-13 or CentOS
SERV on CentOS 192.168.4.5, USER on Centos 192.168.4.5
SERV on FC-13 192.168.4.14, USER on FC-13 192.168.4.14
Code:
               Local User          Remote User
Server      Windows   Linux     Windows   Linux
------      -------   -------   -------   -----
Windows     OK        N/A       OK        OK
Linux       N/A       OK        FAILS     FAILS
In other words, is "the problem" that you simply can't establish a connection from ANY remote clients if you have a Linux (either CentOS or Fedora). Correct?

Suggestions:
1. Can you establish ANY kind of remote connections from one Linux host to the other?
For example, can you "telnet", "ftp", or "ssh" between hosts?

2. If you have a firewall, disable it (if only for debugging). Get it working any way you can first. If a firewall is the culprit, we can figure out appropriate filters later.

3. If you have SELinux active, disable it (if only for debugging).

4. Wireshark can be an extremely helpful troubleshooting tool:
http://wiki.wireshark.org/NetworkTroubleshooting

5. NMap is an equally useful troubleshooting tool:
http://www.linuxhomenetworking.com/w...roubleshooting

http://nmap.org/bennieston-tutorial/

'Hope that helps .. PSM

Last edited by paulsm4; 07-12-2010 at 11:38 PM.
 
Old 07-14-2010, 05:06 PM   #6
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
bvn -

Any luck resolving this problem?

Inquiring minds would like to know

Thanx in advance .. PSM
 
Old 07-15-2010, 02:22 AM   #7
bvn
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 1
Will try the aforementioned tools and get back.
---
Yes, The only failing configuration is when SERV is running on one of the aforementioned Linux distro's.
---
The FTP, Telnet, VNC, NFS, caching DNS, NTP, and Samba services on the "failing" server work just fine. Only SERV is not remotely accessible, even though it has successfully bound to the server host.
---
The only difference between the working services and mine (given my limited knowledge of Linux) is that they are initiated (launched, activated, assigned a PID, etc.) by Linux system internals and SERV isn't. It is initiated manually, via VNC, or Remote Desktop, in an unprivileged user account. I intend to automate SERV's initiation after things stabilize.
---
I have already tried turning off SELinux and the firewall before asking for help. I try to do my homework before asking - which doesn't mean that I am never guilty of stupid errors :-)
---
I've been designing and implementing IP protocols for almost 20 years - just never on Linux. My earliest attempt was 2780-RJE (well known port #5). The original 2780-RJE was BiSynch. IPCHAINS seem quite straight forward, not to mention, a vast improvement over some of the stuff I've had to deal with, back in the day.
 
Old 07-16-2010, 08:04 PM   #8
bvn
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 1
still working on situation.
Thanks for the tool recommendations. "nmap" especially.
---
Lost my Linux home server box to a client with a dead machine last weekend. Just built a new one and installed it in my wiring closet. I am loading my Python server software onto it, as I write this.
 
Old 07-16-2010, 09:50 PM   #9
bvn
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 1
Figured it out - thanks to your most welcome help.
---
nmap was the ideal tool. When "nmap 127.0.0.1" showed my port as being open, everything became clear.
---
- my first error was using a port number < 1024 on Linux. Apparently, that range is reserved for the root privileges.
- my second error was programmatic. On Linux, the gethostbyname() was getting me to 127.0.0.1 (unlike Windows).
---
I suppose these errors (false assumptions?) are well known to the Linux community. Now, I know them too. Many thanks.
 
1 members found this post helpful.
  


Reply

Tags
access, nonroot, remote, service


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
User Account to Access Another Account benfaust Linux - General 2 06-28-2006 12:26 PM
Running Remote Programs Using Cygwin with an NIS account kaplan71 Linux - General 0 05-30-2006 02:11 PM
Get gnome running on my user account midtown266 Linux - Software 2 07-14-2005 01:39 PM
Other users have access to my user account? BajaNick Linux - Software 2 04-11-2005 11:08 PM
user account timed access wylie eyed Linux - General 4 01-12-2004 05:54 PM


All times are GMT -5. The time now is 04:13 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