Configured Nginx to interact with Tomcat on port 9090 on mac.
This configuration works when querying on localhost. Fails to work when connecting from outside, until firewall is disabled.
I have firewall configuration to something like below for forwarding to port 8080 and 8443
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to me 80
sudo ipfw add 110 fwd 127.0.0.1,8443 tcp from any to me 443
Request domain.com --> 443 --> nginx on 8443 --> Tomcat 9090
Side note:
domain.com --> 80 --> re-directs to 443 and then to nginx on 8443 --> Tomcat 9090
iOS Firewall IPFW sends everything from 80 to 8080 and 443 to 8443
Nginx is running on 8080 and 8443
Nginx redirects everything from 8080 to 8443. Nginx on 8443 communicates with Tomcat over 9090.
Tomcat is on 9090
Router is configured to allow access on Port 80 and 443,
So the question, what do I need to change on mac to unblock firewall for a successful
response.
Related
i'm running docker-compose.yaml with the configuration for mosquitto:
mosquitto:
image: eclipse-mosquitto
ports:
- 1883:1883
- 9001:9001
volumes:
- ./configuration/mosquitto:/mosquitto/config/
- ./configuration/mosquitto/logs:/var/log/mosquitto
I can see the following log when I run docker-compose:
1653666208: mosquitto version 2.0.14 starting
1653666208: Config loaded from /mosquitto/config/mosquitto.conf.
1653666208: Opening ipv4 listen socket on port 1883.
1653666208: Opening ipv6 listen socket on port 1883.
1653666208: Opening websockets listen socket on port 9001.
I can access the TCP on 1883, But I can't see the WebSocket service running on the server.
I tried the
sudo netstat -lnp| grep 9001
and it didn't return me anything.
What am I missing in the configuration?
I'm using Thorntail 2.3.0.Final, in documentation "5.4.2. Sockets" there is an example of configuring some kind of something:
thorntail:
network:
socket-binding-groups:
standard-sockets:
http:
port: 8081
I thought it starts listening on port 8081, but it persistently continues start listening port 8080
so how to configure port binding properly?
The shortcut way is to use:
thorntail:
http:
port: 8081
I am trying to setup my macbook to serve Apache over (localhost) port 80. Here's what I did:
add line pass in proto tcp from any to any port 80 to /etc/pf.conf
reboot
switch off the firewall
make sure that httpd.conf listens to port 80 Listen 80
It is still giving me "connection refused" in the browser, and port 80 is not showing up on the portscan utility.
The configuration seemed to be messed up because I was trying to run httpd through brew. It ended up giving index pages from different directories. I ended up removing httpd from brew and reverting to the built-in apache.
Apache now listens to port 80
How to change the port of Tomcat 7 from 8080 to 80 and Secure Port to 443 on RHEL 7.4.
I have done the change in Server.xml file but no use, it is not redirecting, If use some other ports the site is working perfectly fine.
Help
I have an instance Ubuntu 13 on EC2 of AWS
In that instance, in installed 2 applications on nginx with port 80 and 8080. I have also Tomcat running on port 8888.
I have penned theses port with AWS console -> Securit Group -> Inbound -> Custom TCP rule.
It worked well until last night for all port 80, 8080, 8888.
But this morning, i can't connect to the port 8888. I don't change any thing neither on my instace nor on console of AWS. I verify that wget localhost:8888 work well
Have you an idea to resolve this problem ?
Thank you in advanced.
Tien,