SOCKS Proxy: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
make | make | ||
make install | make install | ||
</pre> | |||
Start dante | |||
<pre> | |||
/usr/local/sbin/sockd & | |||
</pre> | </pre> | ||
Line 59: | Line 64: | ||
touch /var/run/sockd.pid | touch /var/run/sockd.pid | ||
chmod 664 /var/run/sockd.pid | chmod 664 /var/run/sockd.pid | ||
</pre> | |||
Start at boot. | |||
<pre> | |||
vi /etc/rc.local | |||
</pre> | |||
Add the line | |||
<pre> | |||
/usr/local/sbin/sockd & | |||
</pre> | </pre> |
Revision as of 00:43, 1 May 2019
Prerequisite
apt -y install libwrap0-dev
Download
cd /usr/src wget http://www.inet.no/dante/files/dante-1.4.2.tar.gz
Extract
tar xvf dante-1.4.2.tar.gz rm -f dante-1.4.2.tar.gz cd dante-1.4.2
Build
./configure make make install
Start dante
/usr/local/sbin/sockd &
Configuration
vi /etc/danted.conf
logoutput: /var/log/socks.log internal: eth0 port = 1080 external: tun0 socksmethod: username none clientmethod: none user.privileged: proxy user.notprivileged: nobody user.libwrap: nobody client pass { from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0 log: connect disconnect error } socks pass { from: 0.0.0.0/0 to: 0.0.0.0/0 protocol: tcp udp log: connect disconnect error }
Create PID file
touch /var/run/sockd.pid chmod 664 /var/run/sockd.pid
Start at boot.
vi /etc/rc.local
Add the line
/usr/local/sbin/sockd &