Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-11-2010, 01:55 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2008
Posts: 11
Rep:
|
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.
|
|
|
|
07-11-2010, 03:47 PM
|
#2
|
|
Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,861
Rep: 
|
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.
|
|
|
|
07-12-2010, 06:02 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2008
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
|
07-12-2010, 06:12 PM
|
#4
|
|
LQ Newbie
Registered: Oct 2008
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
|
07-12-2010, 11:26 PM
|
#5
|
|
Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,861
Rep: 
|
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.
|
|
|
|
07-14-2010, 05:06 PM
|
#6
|
|
Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,861
Rep: 
|
bvn -
Any luck resolving this problem?
Inquiring minds would like to know
Thanx in advance .. PSM
|
|
|
|
07-15-2010, 02:22 AM
|
#7
|
|
LQ Newbie
Registered: Oct 2008
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
|
07-16-2010, 08:04 PM
|
#8
|
|
LQ Newbie
Registered: Oct 2008
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
|
07-16-2010, 09:50 PM
|
#9
|
|
LQ Newbie
Registered: Oct 2008
Posts: 11
Original Poster
Rep:
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|