Hello.
I'm trying to setup proxmox on my laptop so I can test it. I've managed to connect it to Wifi with static IP address and get NAT working but I can't get port forwarding to work:
I have a CT running Debian with apache2 attached to vmbr1. I can reach it using its internal IP address 10.0.3.2 but not using the forwarded port from the host: 192.168.1.100:7070
HOST /etc/network/interfaces:
CT /etc/network/interfaces:
CT /etc/resolv.conf:
the command I used to do the port forwarding:
iptables -t nat -A PREROUTING -p tcp -d 192.168.1.100 --dport 7070 -i wlp3s0 -j DNAT --to-destination 10.0.3.2:80
Whein I try to connect I get: ERR_CONNECTION_REFUSED
How can I solve the issue?
I'm trying to setup proxmox on my laptop so I can test it. I've managed to connect it to Wifi with static IP address and get NAT working but I can't get port forwarding to work:
I have a CT running Debian with apache2 attached to vmbr1. I can reach it using its internal IP address 10.0.3.2 but not using the forwarded port from the host: 192.168.1.100:7070
HOST /etc/network/interfaces:
auto vmbr1iface vmbr1 inet static address 10.0.3.1/24 bridge-ports none bridge-stp off bridge-fd 0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s '10.0.3.0/24' -o wlp3s0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '10.0.3.0/24' -o wlp3s0 -j MASQUERADECT /etc/network/interfaces:
auto eth0iface eth0 inet static address 10.0.3.2/24 gateway 10.0.3.1CT /etc/resolv.conf:
Code:
# --- BEGIN PVE ---
search 8.8.8.8
nameserver 8.8.4.4
# --- END PVE ---
the command I used to do the port forwarding:
iptables -t nat -A PREROUTING -p tcp -d 192.168.1.100 --dport 7070 -i wlp3s0 -j DNAT --to-destination 10.0.3.2:80
Whein I try to connect I get: ERR_CONNECTION_REFUSED
How can I solve the issue?
Last edited: