nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Viewing the Jakarta-Tomcat pages on Client machines

This is a discussion on Viewing the Jakarta-Tomcat pages on Client machines within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Hi, I have installed Apache and Jakarta Tomcat server on my Linux Server for port no 8080 and 8040. I ...


Go Back   nixCraft Linux Forum > Mastering Servers > Networking, Firewalls and Security

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-10-2007, 12:58 PM
Junior Member
User
 
Join Date: Jun 2007
My distro: goel
Posts: 15
Rep Power: 0
shilpigoel1 is on a distinguished road
Default Viewing the Jakarta-Tomcat pages on Client machines

Hi,
I have installed Apache and Jakarta Tomcat server on my Linux Server for port no 8080 and 8040. I am able to view the pages for Apache and Jakarta Tomcat on my Linux Server with the address as <IP-address>:8080 for Apache and <IP -Address>:8040 for Tomcat pages. This link for Apache server works on all client machines but after giving the link for Tomcat server it gives the error as "Attemt to connection for <IP-address>ort no is refused".Thanks in advance for help.

Shilpi Goel
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-15-2007, 06:58 PM
Junior Member
User
 
Join Date: Aug 2007
My distro: Debian
Posts: 17
Rep Power: 0
maroon is on a distinguished road
Default

do u have firewall (iptable enabled on the linux machine?
Reply With Quote
  #3 (permalink)  
Old 08-16-2007, 03:25 PM
Junior Member
User
 
Join Date: Jun 2007
My distro: goel
Posts: 15
Rep Power: 0
shilpigoel1 is on a distinguished road
Default Viewing Apache and Tomcat pages on client machine which are windows

Hi,
I hope i didn't enable them.Moreover i don't have information about it also. Can you help me ? How to enable iptables to view Tomcat pages?
Thanks & Regards
Shilpi Goel
Reply With Quote
  #4 (permalink)  
Old 08-19-2007, 09:47 AM
Junior Member
User
 
Join Date: Aug 2007
Location: Somewhere in that Upper Midwest Area.
My distro: Ubuntu/openSUSE/Sabayon
Posts: 8
Rep Power: 0
scytale is on a distinguished road
Default

Essentially, copy the rules in /etc/sysconfig/iptables, or wherever your startup iptable rules are kept, and copy the rules for port 80, and change it to port 8080.

#iptables -A INPUT -p tcp --dport 8080 -m state --state NEW -j ACCEPT
#iptables -A OUTPUT -p tcp --dport 8080 -m state --state NEW -j ACCEPT

You might need to add --sport 1024:65535 to those rules, I don't remember.
Reply With Quote
  #5 (permalink)  
Old 08-19-2007, 11:08 AM
Junior Member
User
 
Join Date: Aug 2007
My distro: Debian
Posts: 17
Rep Power: 0
maroon is on a distinguished road
Default

if u already didn't configure iptables so that means you have full access to any open ports. so what I suggest is to install nmap and check the apache port i up or tomcat is up by typing:

nmap -p 1-50000 localhost

it will show you the open ports on the host

Regards,
Reply With Quote
  #6 (permalink)  
Old 08-21-2007, 04:29 PM
Junior Member
User
 
Join Date: Jun 2007
My distro: goel
Posts: 15
Rep Power: 0
shilpigoel1 is on a distinguished road
Default Thanks

Hi,
I have made changes in /etc/sysconfig/iptables for port 8040. Now i am able to view Tomcat and application pages on Windows.
Thanks & Regards
Shilpi Goel
Reply With Quote
  #7 (permalink)  
Old 08-21-2007, 04:37 PM
Junior Member
User
 
Join Date: Aug 2007
My distro: Debian
Posts: 17
Rep Power: 0
maroon is on a distinguished road
Default

ok

glad to hear that
Reply With Quote
  #8 (permalink)  
Old 08-21-2007, 10:53 PM
Junior Member
User
 
Join Date: Aug 2007
Location: Somewhere in that Upper Midwest Area.
My distro: Ubuntu/openSUSE/Sabayon
Posts: 8
Rep Power: 0
scytale is on a distinguished road
Default

Quote:
Originally Posted by maroon View Post
nmap -p 1-50000 localhost
Should've thought of that!

Adding -sV flag would zero in on the exact port when a firewall isn't up.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Nagios on tomcat? Vince-0 Linux software 0 04-22-2008 01:30 PM
Reverse Proxy to Backend Tomcat Servers Johnny Utah Web servers 8 12-13-2007 04:20 AM
installation of Linux on machines having 8+ GB Mem needee1 Linux hardware 1 10-17-2007 11:04 PM
Y2038 bug may hit Unix, Linux machines Ashish Pathak The Hangout 5 05-30-2007 04:35 AM
Finding machines S/N and Model Type mlperry Linux software 3 10-05-2006 10:15 PM


All times are GMT +5.5. The time now is 04:50 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36