This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

VM setup for XG Firewall Home Edition

I am using ProxMox VE on an HP pavilion laptop with one internal NIC and a USB-NIC adapter.

In my ProxMox setup I have the internal NIC (eno1) bridged to vmbr0 and the USB-NIC (enx.....) bridged to vmbr1. In creating the VE for Sophos XG Firewall Home Edition I have 6 GB of memory, 64 GB of disk space and two Network Interfaces, net0 (vmbr0) and net1 (vmbr1) see attached screen shot of the VM configuration.

In the e-mail I got with my serial number it says:

1. Install the downloaded image on your preferred hardware or virtual environment (Note the installation will overwrite the previous operating system and all files).

2. Connect the WAN interface (port 2) on the device to your internet connection.

3. Connect a computer to the LAN interface (port 1) and access the setup screen at 172.16.16.16:4444 (Note: It may take a few minutes for the necessary services to start before the setup screen is ready)

I have done number one. but I have not figured out which interface is port 1 and which is port 2. I have tried plugging the internal NIC (eno1) into my router and the USB-NIC into my laptop I am using to manage the VM. That did not work so I tried it the other way around, still no luck. 

When I try to go to the IP address given I get "This site can't be reached". 

You really need to write some instructions for the home user who is clueless about networks and things related to firewalls.

Here is a screen shot of my ProxMox network setup:

Any and all help is greatly appreciated.



This thread was automatically locked due to age.
Parents
  • Hi there,

    The first thing I notice is that both you WAN IP and LAN IP on on the same subnet.... it might just be for testing but the firewall needs to be configured as a router so you would have to have the LAN on another subnet at least  eg. 192.168.2.X or 3.X.

    I assume you are going this as you are testing the firewall inside your existing network... this will work but know that you are creating a double NAT situation so some stuff is a lot harder to configure with double NAT. (eg...VOIP)

    Secondly I notice that you have configured your NICS on Promox as e-1000 network cards....did you do that because the other didnt work?   the default should be virtio as these use way less resources and work well.

    You are not alone being frustrated knowing which port is lan and which is wan...once you get access to the GUI you only get Port1 and Port2 as descriptions,   the easiest way to figure out what is what is to unplug one and configure the WAN first....you can use the console within proxmox and then use the menu options within Sophos to configure the WAN interface IP.

    Hope this helps

  • Thank you for your response. I am learning more and more about networking as I go about this project.

    TrevorSymonds said:
    The first thing I notice is that both you WAN IP and LAN IP on on the same subnet.... it might just be for testing but the firewall needs to be configured as a router so you would have to have the LAN on another subnet at least  eg. 192.168.2.X or 3.X.

    I have changed the static IP for the USB-NIC to 192.168.2.202. 

    TrevorSymonds said:
    I assume you are going this as you are testing the firewall inside your existing network... this will work but know that you are creating a double NAT situation so some stuff is a lot harder to configure with double NAT. (eg...VOIP)

    No VOIP or other complicated network issues, this is a simple home network.

    TrevorSymonds said:
    Secondly I notice that you have configured your NICS on Promox as e-1000 network cards....did you do that because the other didnt work?   the default should be virtio as these use way less resources and work well.

    I have changed the NICS to virtio, just a case of not knowing what the heck I am doing.

    TrevorSymonds said:
    You are not alone being frustrated knowing which port is lan and which is wan...once you get access to the GUI you only get Port1 and Port2 as descriptions,   the easiest way to figure out what is what is to unplug one and configure the WAN first....you can use the console within proxmox and then use the menu options within Sophos to configure the WAN interface IP.

    That gets into how do I get to the Sophos GUI? I have plugged the firewall directly into my other laptop and tried to go to 192.16.16.16:4444 as instructed in the e-mail that came with my serial number. Do I also need to disable my wireless card on the connected PC so it only can see the Firewall? I have not tried that yet.

  • I there ...I see your error..... you have giving the internal interface on proxmox the IP address 172.16.16.16  you must leave the IP address blank....as all IP allocation is done within Sophos when it boots.....in proxmox you only define an IP in proxmox when you want to access proxmox....

    What I means is you have given the proxmox SERVER the ip address 172.16.16.16 ...when sophos which is a VM on the SERVER boots it gives itsself the IP address of 172.16.16.16...but this conflicts as the IP address is already on the network..

    On proxmox server you should only have the address for the server nothing else..... each VM deals with its own IPs

     

    Here is a screenshot of my setup (network)

    You will see that the two network cards dont have IPs

     

     

  • Thank you for the sample network configuration that helped alot to understand what is going on. 

    I have made my network config on proxmox look the same.

    This did not solve my problem I still can not get to the GUI on sophos VM. I tried using both vmbr0 and vmbr1 as the one with out the IP address, neither one worked.

    I did go into the CLI on the sophos VM and got to the command line and did a "ip a | more" command. 

    In there I saw that both port1 and port2 are in a down state and neither one has an ip address, see screen shot

    When I startup the sophos VM I see the following:

    I am wondering if the error message about failing to access perfctr msr is something I should worry about?

    Should I try reinstalling the Sophos XG Firewall Home Edition or just forget the whole thing.

    Once again I want to thank you for spending all this time on my issue.

  • Hi Ray,

    what you are really saying is that the XG interfaces are not assigned to a Proxmox NIC.

    Ian

  • quick update... I did a reinstall and now when I go to the command line and do an "ip a | more" port1 has the ip address 172.16.16.16.

    Now I just need to figure out which nic is port1

    It does not seem to be the internal NIC so I am going to switch everything and try again.

  • One last update before I go to bed.

    I switched the IP to the internal NIC in the Proxmox network. after rebooting the PVE and starting up the sophos VM and switching the network cables it still did not work. So I logged on to the sophos VM and did a "ip a" and port1 did not have an IP address. I switched everything back and after rebooting PVE and starting the sophos VM, port1 still did not have an IP address. It seems that the only way to get an IP on port1 is to do a reinstall, at least that is the way it looks to me.

    Good Night

    The definition of insanity is doing the same thing over and over again expecting different results.

  • Can we have a screenshot of your sophos hardware tab?

     

    Mine looks like this:

    as you can see I have three virtual network cards, two are on the same network and the WAN network connects to my fibre line direclty.....  I had the same problem with you with port1 not being found... The way that I did it was to port them all on the same network first then I could work out which card port1 was binding to.

    Here is my proxmox network settings again:

    You can see that I have two network interfaces that are bridged  one called vmbr0 and one called vmbr1, when you look at the sophos network pic you see that net0 and net2 are bound to vmbr0, this is my LAN interface so port1 is connected to vmbr1.     When I installed sophos I could not ping 172.16.16.16 (computer was IP 172.16.16.2) so I set up persintant ping to 172.16.16.16  then I went onto the harware tab of sophos and clicked edit on the network device and changed the network bridge from vmbr1 to vmbr0...  i started seeing a response on the ping... then I new two things....one my LAN is on vmbr0  and after plugging the network cable in and out and watching the ping....I knew which cable was on the LAN .......  as there are only two cables and ports then I knew that the other cable was WAN and vmbr1 was also WAN.

     

  • Okay here is what my sophos hardware tab looks like after adding a third nic

    and here is my PVE network setup

    Also here is what my physical setup looks like, solid lines are wired and dashed line is wireless. I did not mark it but my router is at 192.168.1.1

    The PVE laptop also has a wireless NIC but I have not been able to get it to work so I left it out.

    I know that once I get it setup and configured that the PVE laptop will have the WAN plugged into my modem and the LAN will be plugged into my router where the modem plugs in now.

  • Ok thanks for that....I see another error/problem..... You have turned the firewall on...meaning you have a firewall in front of the firewall....so you will not every get to the GUI.

    You need to click on your sophos vm....then goto option in firewall and make sure that it is set to "NO"

     

    Here is mine:

    Its hard enough to set up sophos you definelty dont want this on!!!

  • I will do that... that is what you get for working with someone who has no clue what they are doing.

  • Firewall was set to no, did not need to change it.

Reply Children
  • Ok...mmh so when you click on hardware on the Sophos VM and look at the NICS.....if definelty DOES NOT say Firewall=1?

  • On the hardware tab it does say firewall=1 for the NICs but in sophos firwall>options it says no

  • I may have found it. in the PVE firewall>options it said yes. I changed it to no and am rebooting.

  • This is strange. both PVE>firewall>option and sophos>firewall>option are set to no. but even if I delete the NICs in sophos and put them back in they come back as firewall=1. 

  • found it... when you go into edit the network device on sophos there is a little check box that is labeled, firewall. as soon as I unchecked it the firewall=1 went away.

    going to try the ping test again.

  • You might have to restart sophos....when you change stuff on the VM nics.....sometimes it doesnt take till you shutdown the VM and restart it....

    But as long as the sophos VM doesnt say firewall=1 after reboot or after NIC change you should be OK

  • I really hate to say this but the ping test failed.

    I had all three network devices on sophos set to vmbr1. started the sophos VM and started a never ending ping to 172.16.16.16 on my control PC

    I then changed each network device from vmbr1 to vmbr0 one at a time and waited for at least three timeout messages on the ping. never got a successful ping reply.

    I will be sitting down to dinner soon and I will not be able to get back to this until tomorrow afternoon around 1:00 PM EDT.

    I can not thank you enough for all the help you have given me. And the knowledge you are imparting.

  • Go and take a break....you might think of something... one thing think that you can try is setting the IP on the CLI, meaning in the proxmox console... this will allow you to set the IP for the LAN interface to match you 192.168.1.x network....  another easy option is to set up a small linux VM with a desktop on proxmox and give it access to the same vmbr0 interface.... then you can connect using the included firefox.... then you dont even have to worry about network cards...as it will all be internal to proxmox....

    I have been running Sophos for about 7 years.....and proxmox for about 5.... never had a single failure or blip....runs great....so its well worth the effort if you can get it running.

  • Hi,

    just did my first installation from an ISO for the first time in many XG releases and discovered there is now a lot of functionality in the CLI that wasn't there last time I installed from an ISO>

    Ian

  • Some questions on your suggestions.

    TrevorSymonds said:
    one thing think that you can try is setting the IP on the CLI, meaning in the proxmox console... this will allow you to set the IP for the LAN interface to match you 192.168.1.x network.

    Do you mean set the eno1 to a static IP address in the /etc/network/interfaces file? Also should it be the same IP as the bridge vmbr0 or different?

    TrevorSymonds said:
    another easy option is to set up a small linux VM with a desktop on proxmox and give it access to the same vmbr0 interface.... then you can connect using the included firefox.... then you dont even have to worry about network cards...as it will all be internal to proxmox.

    I now have an ubuntu VM using the vmbr0 bridge as it's NIC. It took forever to install...

    Not sure what you mean by

    TrevorSymonds said:
    then you can connect using the included firefox
    as I would still need my control PC to get to the Ubuntu VM console. Is there a way to bring the Ubuntu console up on the PVE PC?

    adding a third machine is a little confusing.

    Please remember I am running this on an old laptop and it is stressing my CPU running any VM under proxmox.  I keep getting messages about my core temperature going above the threshold and being throttled back. just do not want it to catch on fire.

    I may have to buy a used desktop at a garage sale or swap meet and put this on hold until then.