1
vote
1answer
44 views

Port 80 redirects to CPanel's /cgi-sys/defaultwebpage.cgi even after forwarding

I recently took over the management of a website using a pure Tomcat 6 server (i.e. no combination Tomcat+Apache) with CPanel installed, which is only accessible on port 8088 (i.e. the main page URL ...
0
votes
1answer
101 views

Unable to access Tomcat6 from outside the server

I've just installed Tomcat6 on my Debian Linux server (with OpenJDK), which also has an Apache server installed on the same machine. I haven't strayed from the default settings, so it would be setup ...
1
vote
1answer
525 views

Port redirection from 80 to 8080 using iptables not working

Good day, I had a Tomcat running on port 80 on a CentOS server with IP 10.33.46.68. When I tried to open "http://10.33.46.68" on my notebook I could see Tomcat welcome page. Then I changed Tomcat ...
0
votes
1answer
2k views

opening port for tomcat on centos server using iptables?

i have added a rule in iptables in my server like this. -A INPUT -m state --state NEW -m tcp -p tcp --dport 8005 -j ACCEPT allowing port 8005. when run this command netstat -plunt it shows that ...
0
votes
2answers
3k views

Iptables blocking mysql port 3306

I got a Tomcat server running a web application that must access a mysql server via Hibernate on the same machine. So, I added a rule for port 3306 to my iptables script but tomcat cannot connect to ...
0
votes
3answers
1k views

Tomcat and Apache on one machine with two IP's

I have a simple static website (foo.com) served with Apache2. The static website has a link to get to an application served using tomcat. To do so, the link just points to foo.com:8080/app The end ...
2
votes
1answer
1k views

Allow traffic on one port from one IP address with iptables

I am using the following iptables rule to try allowing access to port 8080 from one IP address: iptables -A INPUT -s 12.34.56.78 -p tcp -m tcp --dport 8080 -j ACCEPT However, this rule isn't ...
0
votes
2answers
1k views

iptables redirected port 80 to 8080 - How to disallow direct access to port 8080?

I've routed all requests from port 80 to port 8080 for my Tomcat server using iptables. iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 Now http://mydomain.com/ ...
2
votes
6answers
2k views

Basic iptables for a webserver: SSL Tomcat, postgres, ssh and that's it

This is probably as basic as it gets but I'm a developer and really have no experience with iptbles. The only connections I need opened are: eth0 (outward facing) ssh ping SSL to tomcat (forward ...
1
vote
1answer
683 views

Configuring my Linux firewall for Tomcat

I'm following some instructions for Installing Tomcat. They require me to add the following line to my iptables file: -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 8080 --syn -j ACCEPT Having ...