Routing to web user interface

halterpc

Member
Apr 7, 2015
1
0
21
Hi!
sorry for my english!


I have a server in Hetzner on which I installed Proxmox 3.4. I have just one public ip.


I want to make a routing port. That is:


- I want to access [ip published]: 10122
- I really want to enter [machine CT]: 22


All this I do it from the web user interface.


------------------------------------------------


That is, I want to do:


Code:
    post-up echo 1 > /proc/sys/net/ipv4/ip_forward
    post-up iptables -t nat -A POSTROUTING -s '10.21.21.0/24' -o vmbr0 -j MASQUERADE
    post-down iptables -t nat -D POSTROUTING -s '10.21.21.0/24' -o vmbr0 -j MASQUERADE


    post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 10122 -j DNAT --to 10.21.21.101:22
    post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 10122 -j DNAT --to 10.21.21.101:22

But from the web user interface