SDN PROXMOX HETZNER

stalker.qa

New Member
Sep 30, 2024
23
0
1
Good day. Can anyone tell me how to forward ports from SDN to a white Hetzner address? There is Internet, but the ports do not open.

Code:
auto dhcp
iface dhcp
    address 192.168.100.1/24
    post-up iptables -t nat -A POSTROUTING -s '192.168.100.0/24' -o vmbr0 -j SNAT --to-source PUBIP
    post-down iptables -t nat -D POSTROUTING -s '192.168.100.0/24' -o vmbr0 -j SNAT --to-source PUBIP
    post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
    post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
        post-up iptables -t nat -A PREROUTING -p tcp -d PUBIP --dport 22151 -i vmbr0 -j DNAT --to-destination 192.168.100.2:22151
    post-down iptables -t nat -D PREROUTING -p tcp -d PUBIP --dport 22151 -i vmbr0 -j DNAT --to-destination 192.168.100.2:22151
        bridge_ports none
    bridge_stp off
    bridge_fd 0
    ip-forward on


Please help
 
Last edited: