1.Download
2.compile
3.config
4.Run
1. wget ftp://ftp.inet.no/pub/socks/dante-1.4.2.tar.gz
2. yum install gcc (kenel headers & etc)
2.1 tar zxvf dante-1.4.2.tar.gz
cd dante-1.4.2
./configure
make && make install
3. vim /etc/sockd.conf
logoutput: syslog stdout /var/log/sockd.log
internal: 192.168.3.6 port = 1080
internal: 10.100.200.1 port = 1080
external: 192.168.3.6
socksmethod: none
clientmethod: none
client pass {
from: 10.100.200.38/32 to: 0.0.0.0/0
log: connect error
}socks pass {
from: 10.100.200.38/32 to: 0.0.0.0/0
log: connect error
}client pass {
from: 192.168.3.10/32 to: 0.0.0.0/0
log: connect error
}socks pass {
from: 192.168.3.10/32 to: 0.0.0.0/0
log: connect error
}client pass {
from: 10.100.200.6/32 to: 0.0.0.0/0
log: connect error
}socks pass {
from: 10.100.200.6/32 to: 0.0.0.0/0
log: connect error
}
4. Run with sockd -D ( D stands for daemon)