Hello
I have a problem with my network configuration.
I have a web server where I run Virtualmin with domains and websites. When I test the websites via the browser, it work but when I test the websites via curl via ssh, I get for port 80 and port 443 a connection refused while the ports are allowed, opened and forwarded to the web server.
I took following network , I assigned vmbr1 and vmbr2 to the pfsense vm (for WAN and LAN) and I assigned vmbr2 to the web server.
Anyone who can help me out pls?
Config:
I took this example for my proxmox network config:
auto lo
iface lo inet loopback
auto ens33
iface ens33 inet static
address publicip/24
gateway gateway of public ip
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A PREROUTING -i ens33 -p tcp -m multiport ! --dport 22,8006 -j DNAT --to 10.0.0.2
post-up iptables -t nat -A PREROUTING -i ens33 -p udp -j DNAT --to 10.0.0.2
auto vmbr0
iface vmbr0 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1/30
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/30' -o ens33 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/30' -o ens33 -j MASQUERADE
auto vmbr2
iface vmbr2 inet static
address 192.168.55.2/24
bridge-ports none
bridge-stp off
bridge-fd 0
I have a problem with my network configuration.
I have a web server where I run Virtualmin with domains and websites. When I test the websites via the browser, it work but when I test the websites via curl via ssh, I get for port 80 and port 443 a connection refused while the ports are allowed, opened and forwarded to the web server.
I took following network , I assigned vmbr1 and vmbr2 to the pfsense vm (for WAN and LAN) and I assigned vmbr2 to the web server.
Anyone who can help me out pls?
Config:
I took this example for my proxmox network config:
auto lo
iface lo inet loopback
auto ens33
iface ens33 inet static
address publicip/24
gateway gateway of public ip
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A PREROUTING -i ens33 -p tcp -m multiport ! --dport 22,8006 -j DNAT --to 10.0.0.2
post-up iptables -t nat -A PREROUTING -i ens33 -p udp -j DNAT --to 10.0.0.2
auto vmbr0
iface vmbr0 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1/30
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/30' -o ens33 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/30' -o ens33 -j MASQUERADE
auto vmbr2
iface vmbr2 inet static
address 192.168.55.2/24
bridge-ports none
bridge-stp off
bridge-fd 0
Last edited: