How to add swap memory to Netgate SG-3100



  • How do you add a swap file for memory in the Netgate SG-3100 ? I would of liked to have added more physical memory but you can not on this box I was messing around with the pfblocker geoip and it keeps saying I do not have enough memory when I try to block countries.


  • Rebel Alliance Global Moderator

    And wasn't that answered in your other thread like 3 months ago?
    https://forum.netgate.com/post/784925

    @dgall
    Adding a swap file for any Linux or FreeBSD host is easy.
    
        add this line to the file /etc/fstab
        md99 none swap sw,file=/pagefile.bin 0 0
    
        create a blank file of size 1 GB
        dd if=/dev/zero of=/pagefile.bin bs=4096 count=262144
    
        enable swap (or just reboot as a test):
        /sbin/swapon -a
    
        verify swap is enabled
        /usr/sbin/swapinfo
    
    
    

  • Moderator

    @dgall said in How to add swap memory to Netgate SG-3100:

    I was messing around with the pfblocker geoip and it keeps saying I do not have enough memory when I try to block countries.

    You don't need more memory for GeoIP. Just increase the pfSense > System > Advanced > Firewall & NAT > Firewall Maximum Table Entries > 2000000

    DNSBL on the other hand needs more memory depending on the number of domains added and if wildcard blocking is enabled (The TLD option).