OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Running external socks5 proxy on wan
« previous next »
  • Print
Pages: [1]

Author Topic: Running external socks5 proxy on wan  (Read 4225 times)

moonman

  • Newbie
  • *
  • Posts: 22
  • Karma: 6
    • View Profile
Running external socks5 proxy on wan
« on: April 19, 2019, 01:54:01 am »
Hello,

I'm looking to run a socks5 proxy on the WAN interface for external use (for friends and family to bypass country firewall block)
Now, I am familiar with Linux (i.e. I have Arch Linux running), however I'm little kind of stuck with freebsd (and by extension opnsense)

Looks like there are packages such as nylon, ss5 and 3proxy, (I'm especially interested in ss5) however  none of these are available in the repositories. How would I add a repository from a freebsd, or how would I go about installing a port?
Logged

moonman

  • Newbie
  • *
  • Posts: 22
  • Karma: 6
    • View Profile
Re: Running external socks5 proxy on wan
« Reply #1 on: April 19, 2019, 08:07:07 pm »
Well, I found a crude way of installing a port, if anyone else is interseted in this in the future:

1. install wget
Code: [Select]
pkg install wget2.
Code: [Select]
cd ~ to get to your home directory
3. Download ports repo from github
Code: [Select]
wget https://github.com/freebsd/freebsd-ports/archive/master.tar.gz4.deflate
Code: [Select]
tar xvzf master.tar.gz5. Navigate to ss5 directory
Code: [Select]
cd freebsd-ports-master/net/ss56. compile
Code: [Select]
make7. Copy the package files into their right places
Code: [Select]
cd work/stage
cp -a ./* /

Feel free to comment if there's a better way, but this is what I could come up with with my limited knowledge of freebsd.
« Last Edit: April 19, 2019, 08:08:54 pm by moonman »
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Running external socks5 proxy on wan
« Reply #2 on: April 19, 2019, 08:15:11 pm »
too complex - opnsense-code tools ports and then you have the build ports tree under /usr/ from where you can build using make and make install
Logged

moonman

  • Newbie
  • *
  • Posts: 22
  • Karma: 6
    • View Profile
Re: Running external socks5 proxy on wan
« Reply #3 on: April 20, 2019, 01:48:16 am »
Well, this is definitely an easier way. I also didn't realise make install would work from the ports tree, like it does for regular sources. Thank you.

I'll list the steps for completeness:

1. As fabian mentioned, install tools and ports:
Code: [Select]
opnsense-code tools ports2. Navigate to /usr/ports/net/ss5
Code: [Select]
cd /usr/ports/net/ss53. build and install
Code: [Select]
make
make install
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Running external socks5 proxy on wan
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2