Hi
Running Ubuntu 18.10 LTS and LXC with a container with Ubuntu 16.04 and Quickbox on.
I am running UFW on main server and only the Quickbox install on the container (UFW is disabled on the container).
I cant figure out how to preroute through UFW port 9021/9022 to 5757/4747 on the Quickbox, no matter what i try it wont connect and give a listing.
I have this in my /etc/ufw/before.rules :
-A PREROUTING -d xxx.xxx.xxx.xxx/32 -p tcp -m tcp --dport 444 -j DNAT --to-destination 10.1.1.175:444
-A PREROUTING -d xxx.xxx.xxx.xxx/32 -p udp -m udp --dport 6881 -j DNAT --to-destination 10.1.1.175:6881
-A PREROUTING -d xxx.xxx.xxx.xxx/32 -p tcp -m tcp --dport 7533:9033 -j DNAT --to-destination 10.1.1.175:7533-9033
-A PREROUTING -d xxx.xxx.xxx.xxx/32 -p tcp -m tcp --dport 9022 -j DNAT --to-destination 10.1.1.175:4747
-A PREROUTING -i eth0 -p tcp --dport 9021 -j DNAT --to-destination 10.1.1.175:5757
Then it should work but it dosnt
Does anyone have an idea of what i should do or try out ?
/Gaio