Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to add swap memory to Netgate SG-3100

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    3 Posts 3 Posters 913 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dgall
      last edited by

      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.

      BBcan177B 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by johnpoz

        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
        
        
        

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 1
        • BBcan177B
          BBcan177 Moderator @dgall
          last edited by

          @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).

          "Experience is something you don't get until just after you need it."

          Website: http://pfBlockerNG.com
          Twitter: @BBcan177  #pfBlockerNG
          Reddit: https://www.reddit.com/r/pfBlockerNG/new/

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.