Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-05-2009, 05:56 PM
|
#1
|
Member
Registered: May 2009
Posts: 36
Rep:
|
Basic home network question
My first time installing centos server and adding it to xp home network. I am new to setting up my own network in general so please bear with me and help me with this basic question
I have a home windows wired ethernet xp network (simple linxs router) with 2 xp boxes and one centos5 box all connected to the same router.
I just set up the centos box running tomcat on port 8080
I need to do two very basic things at this point, but am not sure what I need to do:
What do I need to do so I can:
1. Connect in firefox on one of my xp boxes and call the tomcat server running on my centos box?
2. Be able to ftp to centos box from either of my xp boxes?
Thanks a lot!
|
|
|
05-05-2009, 06:03 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
I don't really know what tomcat is, but since it's on port 8080 I'm assuming it's some sort of web service like apache. If it has a home page, just enter the internal IP address of the CentOS box into Firefox. For example http://192.168.0.5.
As to ftp into the CentOS box, you have to run an FTP server on the box, like ProFTP, ftpd, wu-ftpd, vsftpd, etc. Then on the client machine (XP) you need an FTP client like FireFTP (firefox add-on) or Filezilla client. Then you connect by similarly putting in the local address of the CentOS box (192.168.0.5 in the example above).
|
|
|
05-05-2009, 06:04 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
You use the machines IP address with the appropriate port and application.
E.g. firefox http://<ip_of_centos_box>:8080
firefox ftp://<ip_of_centos_box>
Cheers,
Tink
|
|
|
05-05-2009, 06:35 PM
|
#4
|
Member
Registered: May 2009
Posts: 36
Original Poster
Rep:
|
Thanks - didn't realize it would be that simple...I thought I might need some other components like Samba or something....
But I am still a bit confused by two things, and it is not working for me yet:
The Ip I get from ipconfig is:
Code:
root@localhost mysql]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:18:05:5E:A4
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
But when I go to:
http://192.168.1.102
or
http://192.168.1.102:8080
I do not get anything. Is this the right IP?
Also, Tomcat is an application server running on port 8080, but is that port visible to other computers on my network? (I thought maybe only port 80 would be visible?)
Thanks for any help you can offer!
|
|
|
05-05-2009, 06:42 PM
|
#5
|
Member
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488
Rep:
|
You may need to open a port on the Windows firewall on your XP systems. You can try turning off your firewalls on the XP boxes and see if that allows you to see the 8080 port. If this works, you can work on getting the firewall opened up as needed.
|
|
|
05-05-2009, 06:52 PM
|
#6
|
Member
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573
Rep:
|
More likely to be the firewall on the CentOS box. As the root user, run "service iptables stop" and then see if you can browse to the server from your XP box.
Note: You shouldn't run like this permanently. If you need ports 8080 and 102 open then you should add firewall rules that allows connections to these ports, while still blocking everything else. Run "service iptables start" to restart the firewall after your test.
Last edited by blacky_5251; 05-05-2009 at 06:54 PM.
Reason: Added caution note
|
|
|
05-05-2009, 06:54 PM
|
#7
|
Member
Registered: May 2009
Posts: 36
Original Poster
Rep:
|
Quote:
Originally Posted by pentode
You may need to open a port on the Windows firewall on your XP systems.
|
But the 8080 port that I want to reach is on the Centos box. So how could the XP firewall have anything to do with that?
|
|
|
05-05-2009, 07:07 PM
|
#8
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
Because firewalls can stop outbound traffic as well as inbound. That doesn't mean Windows firewall necessarily is though.
|
|
|
05-05-2009, 07:08 PM
|
#9
|
Member
Registered: Jun 2007
Location: sydney
Distribution: redhat , ubuntu, centos
Posts: 56
Rep:
|
1, In your centos system, enter "elinks http://192.168.1.102:8080"
If it doesn't work, means your tomcat web service not start.
2, In your centos system, enter "service iptables stop"
In your firefox on xp system, if you can visit http://192.168.1.102:8080, means
centos firewall block 8080 before.
3, If still doesn't work, need to check xp system to see if they block 8080. Normally they don't if you are not do any specific settings before.
|
|
|
05-05-2009, 07:20 PM
|
#10
|
Member
Registered: May 2009
Posts: 36
Original Poster
Rep:
|
Quote:
Originally Posted by yzhong
|
THank you!. Yes, stopping iptables allowed me to access the link from my xp machine. So that means that Centos blocks outside access of port 8080.
What is the proper way to set this up? I know that for a production server you need to either use a firewall or Apache to handle requests on port 80 and then pass them to tomcat on 8080. But is there a way on a home network to allow local network access to port 8080?
|
|
|
05-05-2009, 07:24 PM
|
#11
|
Member
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573
Rep:
|
Run "system-config-securitylevel" in GUI or "system-config-securitylevel-tui" in text. You can then add ports that you want the firewall to open.
|
|
|
05-05-2009, 07:34 PM
|
#12
|
Member
Registered: May 2009
Posts: 36
Original Poster
Rep:
|
Quote:
Originally Posted by blacky_5251
Run "system-config-securitylevel" in GUI or "system-config-securitylevel-tui" in text. You can then add ports that you want the firewall to open.
|
I owe you some shrimp! Thanks. I opened up port 8080 and that worked.
I really appreciate everyone's help!
John
|
|
|
05-06-2009, 10:35 AM
|
#13
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
You'll probably also have to open port 20 (or is it 21?) for FTP access.
|
|
|
All times are GMT -5. The time now is 04:20 AM.
|
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
|
|