Forward port over 8000

msd

Active Member
Sep 12, 2015
24
0
41
Hello Proxmox,

I would like to install Jira on my Procmox VM with Ubuntu Server 16.04 LTS.
I have problem, that my pve doesn't forward this port like it doesn't forward port 80, my forwarding rule is:
# SSH port forvarding to all servers (port 22) - Working
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 822 -j DNAT --to 192.168.1.8:22
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 822 -j DNAT --to 192.168.1.8:22
# JIRA - Not Working
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8888 -j DNAT --to 192.168.1.8:8080
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 8888 -j DNAT --to 192.168.1.8:8080

What is problem with 8080 ?

Thanks for the help in advance...
 
just to be sure, is Jira is running on port 8080 ?
you can check that with

lsof -i:8080

in your VM
 
Hello Manu,

Yes, JIRA Software listens on port 8080, but I generally have problem to format HTTP requests, when I want to forward requests to port 22, 3306, ... it works fine, but 80, 8080 (HTTP) is little bit complicated :)

Thanks for the help and assistance in advance...
 
ok then you have to sort out if you have a network problem or a http problem

from a external computer, test if your port is open from the outside
nmap -p 8888 pve_host

if you get the message that the port is open

if this is working then try a http request with curl
curl http://pve_host:8888
 
Hello Manu,

I try with your ideas, and in a meantime I fount this:
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
now, everything is working fine.
It is on you, to tell me what was problem :)

Thanks for the help and assistance on this case...
 
I think without this setting ( telling your PVE host it should send act as a router between two IPs networks) none of your port fortwarding could ever worked ...
 
Hello manu,

Without this feature, it doesn't work, but it is ok to add this line to network configuration file if it will work fine.

Thanks for the help and assistance :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!