I have the following problem, I have a dedicated server in Hetzner with 1 public IP, I must install a Proxmox, a virtual machine with OPNSense to use as a router... and the other virtual machines connect through said router.
I have my /etc/network/interfaces as follows from Proxmox:
https://pastecode.io/s/2n22j919
download OPNSense create a new virtual machine, then in configuration use:
WAN: vtnet0 ip 192.168.1.1/24
For a WAN enter the new wan IPv4 upstream gateway address: 192.168.1.0
Do you want to use the gateway as the ipv4 name server too? AND
IPV6 DHCP: Y
DHCP FOR WAN: N
ok after this, I must do a pfctl -d so that the proxmox can see the opnsense...
I install a virtual machine with Windows 7, I add the data to the network card: 192.168.1.2 255.255.255 192.168.1.1
1.1.1.1
With this I can enter http://192.168.1.1 (OPNSense)
I change to port 9000 and set it to HTTP and disable HTTP_REFERER
With this I can now access OPNSense from outside.
Now... in OPNSense I open the port for example 7775 and run a python on Windows 7 with a hello world... when I want to enter from the outside... I can't but the mv can browse the internet.
But if I change the gateway to 192.168.1.0 in the Windows 7 virtual machine, it can browse the Internet, but I cannot access it from outside to port 7775.
What am I doing wrong?