Netgate SG-1000 microFirewall

Author Topic: Best settings for VM on ESXi  (Read 453 times)

0 Members and 1 Guest are viewing this topic.

Offline GoodOmens

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Best settings for VM on ESXi
« on: June 16, 2017, 12:07:21 pm »
Hi

I've recently set up a ESXi lab consisting of a Xeon-D 1518 w/ 32 Gigs of ram and 4 NICs for a home w/ gigabit internet and want to try using it to install pfsense and use my ASUS as a WiFi/Switch only. 

I do a lot of bittorrent and will host some remote streaming (via either Emby or Plex) - what would be the best core/ram allocation for a vm machine?  Rest of my network is typical home network - handful of IoT, laptops, and phones (at any given time about 10 devices).

Packages I'll be running or OpenVPN (max of 1 client, me), Snort, and Squid (open to suggestions!) - Thanks!
« Last Edit: June 16, 2017, 12:12:15 pm by GoodOmens »

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 13113
  • Karma: +1149/-150
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Best settings for VM on ESXi
« Reply #1 on: June 16, 2017, 01:57:35 pm »
Snort and squid are pretty pointless for a "home"  Do you have experience with IPS/IDS - are you going to spend the time to tweak the rules of snort so your not flooded with false positives?

Do you have kids your trying to filter from p0rn or something - proxy not going to buy you much other than problems ;)

Its a VM - doesn't really need a whole lot.. Start with say Gig, move up from there if you run into problems.  But if your not running hungry packages like snort or proxy then you will find you don't need much of ram or space...

Torrent and remote streaming don't really play nice together to be honest.  your going to have 2 contenders for your upload pipe.. Is your gig internet symmetrical ie gig/gig up/down?  Your torrents could suck up that gig up in a heartbeat if not managed.

To me if you want to torrent - just get a seed box..  Let it do all your grabbing and seeding - them moving the files down to your network will be few seconds if you have gig down, etc.  Thats just me maybe ;)

- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- If I have helped you and want to help back, https://www.freebsdfoundation.org/donate/
- Please don't PM me for personal help, info you don't want public sure. Link to thread you would like me to look at ok, etc.
1x SG-2440 2.3.4_p1 (work)
1x 2.4.0-BETA Aug 16 07:00:51 VM running on esxi 6.5 (home)

Offline GoodOmens

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Best settings for VM on ESXi
« Reply #2 on: June 16, 2017, 08:25:23 pm »
Hey thanks for the reply, lots to think about.  Yes my connection is symmetrical gig.

In regards to Snort it's mainly just for toying around - there is nothing on my network I need to block but I'm just more curious where my traffic goes - maybe there is a better package for that?

For Squid - I don't want it for the cache ability but for the reverse proxy.  I want various subdomains (of my main domain) to go to different VM's - maybe that's not the right package?

Offline agbiront

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Best settings for VM on ESXi
« Reply #3 on: June 16, 2017, 09:14:48 pm »
I think you can use HAProxy or Squid for reverse proxy. I'm using Squid on my pfSense VM, and it just works. I have also configured a task to create and update the Let'sEncrypt certificates for my HTTPS webpages, you should take a look at the ACME package for that.

As for the VM config. 1 core and 2GB of RAM will probably be enough. Remember that you can oversize the RAM without penalties, there is no negative impact in doing so. But if  you don't require more than 1 vCPU, don't give it 2 "just in case". The penalty for having to schedule 2 vCPU when there is no need is measurable.

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 13113
  • Karma: +1149/-150
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Best settings for VM on ESXi
« Reply #4 on: June 17, 2017, 05:17:57 am »
Not sure why you think snort is going to tell you were your going ;)  Seems like someone has never used a IPS/IDS ;)  while its great to play with - its going to flood you with lots and lots of NOISE!!  There is going to be a shitton of false positives for sure out of the gate until you trim down the rules, etc.

You prob have better luck finding what kind of traffic stuff is generating by just logging your dns queries ;)  If your interested..
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- If I have helped you and want to help back, https://www.freebsdfoundation.org/donate/
- Please don't PM me for personal help, info you don't want public sure. Link to thread you would like me to look at ok, etc.
1x SG-2440 2.3.4_p1 (work)
1x 2.4.0-BETA Aug 16 07:00:51 VM running on esxi 6.5 (home)

Offline GoodOmens

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Best settings for VM on ESXi
« Reply #5 on: June 17, 2017, 06:57:04 am »
Not sure why you think snort is going to tell you were your going ;)  Seems like someone has never used a IPS/IDS ;)  while its great to play with - its going to flood you with lots and lots of NOISE!!  There is going to be a shitton of false positives for sure out of the gate until you trim down the rules, etc.

You prob have better luck finding what kind of traffic stuff is generating by just logging your dns queries ;)  If your interested..

Ak, K.  My Asus router has pretty graphics that logs how much each device and application is using traffic. I thought Snort could do that but it sounds like a bigger pain then its worth.