Hello there,
I have problem to port forwarding port 443/https through from VM to Host, i do forwarding setup in /etc/network/interface, there no problems in port 80, i can access the public host ip, but when i try to connect through port 443 is unable to connect, i check the connection by :
The response is OK, but when i'm browse from outside it seems unable to access. I'm already setupthe firewall to open port from VM and host.
This is my /etc/network/interface settings :
Thanks in advance for all knidness.
Best regards.
I have problem to port forwarding port 443/https through from VM to Host, i do forwarding setup in /etc/network/interface, there no problems in port 80, i can access the public host ip, but when i try to connect through port 443 is unable to connect, i check the connection by :
Code:
curl -kvv https://myfqdn
The response is OK, but when i'm browse from outside it seems unable to access. I'm already setupthe firewall to open port from VM and host.
This is my /etc/network/interface settings :
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual
iface eth3 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.7.5
netmask 255.255.255.0
gateway 192.168.7.1
bridge-ports eth0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
auto vmbr1
iface vmbr1 inet static
address 10.10.11.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
# Adding Custom Configuration
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.11.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.11.0/24' -o vmbr0 -j MASQUERADE
# HTTP
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 80 -j DNAT --to 10.10.11.2:80
post-down iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 80 -j DNAT --to 10.10.11.2:80
# HTTPS
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 10.10.11.2:443
post-down iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 10.10.11.2:443
Thanks in advance for all knidness.
Best regards.