Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    FreeBSD package for microsocks

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    5 Posts 2 Posters 413 Views 2 Watching
    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.
    • opticalcO
      opticalc
      last edited by

      I need a socks proxy, and microsocks is a very simple setup, the freebsd package installed w/o a hitch, all it deps are already included with pfsense. Another cool thing is that if you use the -b flag and give it the pfsense local ip of one of the wireguard tunnels, then traffic egressing the proxy goes out that tunnel. I did have to set up a chroot for it for dns though, where the dns server is the IP on the other side of the /31 protonvpn tunnel. shellcmd has a daemon -f to run it at boot.

      Anyhow, this works well, except throughput is fairly poor. Normal VPN speedtests give me 44mbps, but if first going through microsocks its cut to 23mbps.

      So while it works, is there any way to improve this speed?

      1 Reply Last reply
      Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Is it limited by CPU? Check the output of top -HaSP whilst testing throughput.

        opticalcO 1 Reply Last reply
        Reply Quote 0
        • opticalcO
          opticalc @stephenw10
          last edited by opticalc

          @stephenw10 said in FreeBSD package for microsocks:

          top -HaSP

          heres the steady state:
          228db6f9-d582-4623-9eea-c3a43178c301-image.png
          and heres during a test on fast.com
          688660fb-922b-4077-aac6-45c3c6d00c6a-image.png

          1 Reply Last reply
          Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Yup so 0% idle on CPU0, it's limited by that.

            But note that microsocks is running on CPU0 and wireguard is using more of CPU0 than CPU1 so there's probably some more to be gained. But not that much.

            opticalcO 1 Reply Last reply
            Reply Quote 0
            • opticalcO
              opticalc @stephenw10
              last edited by

              @stephenw10
              ah, OK I see what you're saying, took me a bit to figure out those 2 screenshots. Well thanks here, this is exactly what I needed.

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy