You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i have wanted to know how can i with cockpit expose a port of my vm to access my game server from the dns name :)
If anyone have an idea it's would be nice...
I have tried this but request are not routing to the vm
sudo iptables -t nat -A PREROUTING -p tcp --dport 25565 -j DNAT --to-destination 192.168.122.253:25565
sudo iptables -t nat -A POSTROUTING -p tcp -d 192.168.122.253 --dport 25565 -j SNAT --to-source mypublicip
sudo iptables -A FORWARD -p tcp -d 192.168.122.253 --dport 25565 -j ACCEPT
I have tried reverse proxy witch apache2 but in my case is not http or https so doesn't work...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, i have wanted to know how can i with cockpit expose a port of my vm to access my game server from the dns name :)
If anyone have an idea it's would be nice...
I have tried this but request are not routing to the vm
sudo iptables -t nat -A PREROUTING -p tcp --dport 25565 -j DNAT --to-destination 192.168.122.253:25565
sudo iptables -t nat -A POSTROUTING -p tcp -d 192.168.122.253 --dport 25565 -j SNAT --to-source mypublicip
sudo iptables -A FORWARD -p tcp -d 192.168.122.253 --dport 25565 -j ACCEPT
I have tried reverse proxy witch apache2 but in my case is not http or https so doesn't work...
Beta Was this translation helpful? Give feedback.
All reactions