Quote from
wladif on November 13, 2020, 7:32 am
I have a 4GB Antsle Nano. A debian6 (arm64) is running over 2 cpus and 2GB of memory. In this, I have a NetCore3.1 application with a REST API, that accepts income messages on ports 5000 (http) and 5001 (https)
My Setup is like this
Internet ====> Router ====> AntsleNano ========> AntletDebian10
192.168.100.29 10.1.1.77
(my internal nano IP) service listening on 5000, 5001
I have my nano, directly connected to my router.
In the antlet, I am accepting all in the firewall
~ # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
I have a port forwarding rule enabled
Protocol: tcp
Source IP: 192.168.100.29
Source Port: 5177
Destination antlet: debian10
Destination port: 5001
I have also enabled instantSSL, in mypublicname.antsle.us
Obviously, when i launch my application and i locally call wget to localhost:5001/api/hello I receive the expected answer
Eight now i am trying to access the mypublicname.antsle.us:5177/api/hello and i get this error:
Error: connect ECONNREFUSED 192.168.100.29:5177
I have also did port redirection in my router (5177 from the outside to 5177 in 192.168.100.29), but the error is the same.
So, there are my questions:
- Is the any step by step guide around that can explain how to make it so i can access the services on port 5001 from the outside?
- Do i have to do port redirection on my router (the one that the ISP gave me)?
- How can i test the different parts of the connection?
- I also read somewhere that i should make it so the antlet should use my router as the DNS, but i'm not sure how to access it. Should i do another port redirection for this?
Any ideas?
Thanks!
I have a 4GB Antsle Nano. A debian6 (arm64) is running over 2 cpus and 2GB of memory. In this, I have a NetCore3.1 application with a REST API, that accepts income messages on ports 5000 (http) and 5001 (https)
My Setup is like this
Internet ====> Router ====> AntsleNano ========> AntletDebian10
192.168.100.29 10.1.1.77
(my internal nano IP) service listening on 5000, 5001
I have my nano, directly connected to my router.
In the antlet, I am accepting all in the firewall
~ # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
I have a port forwarding rule enabled
Protocol: tcp
Source IP: 192.168.100.29
Source Port: 5177
Destination antlet: debian10
Destination port: 5001
I have also enabled instantSSL, in mypublicname.antsle.us
Obviously, when i launch my application and i locally call wget to localhost:5001/api/hello I receive the expected answer
Eight now i am trying to access the mypublicname.antsle.us:5177/api/hello and i get this error:
Error: connect ECONNREFUSED 192.168.100.29:5177
I have also did port redirection in my router (5177 from the outside to 5177 in 192.168.100.29), but the error is the same.
So, there are my questions:
- Is the any step by step guide around that can explain how to make it so i can access the services on port 5001 from the outside?
- Do i have to do port redirection on my router (the one that the ISP gave me)?
- How can i test the different parts of the connection?
- I also read somewhere that i should make it so the antlet should use my router as the DNS, but i'm not sure how to access it. Should i do another port redirection for this?
Any ideas?
Thanks!