G
G
ganzales2019-07-03 23:57:29
linux
ganzales, 2019-07-03 23:57:29

SOCKS5 (dante) over VPN?

There is a server with Dante and OpenVPN installed. Individually, everything works well. But I need dante to send traffic to vpn tunnel
ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
7: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
    link/none
    inet 192.168.32.10 peer 192.168.32.9/32 scope global tun0
       valid_lft forever preferred_lft forever
36: [email protected]: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0
       valid_lft forever preferred_lft forever


/etc/sockd.conf
logoutput: /var/log/sockd.log
internal: eth0 port = 1080
external: tun0
socksmethod: username none
clientmethod: none
user.unprivileged: sockd
client pass {
    from: 0.0.0.0/0 to: 0.0.0.0/0
    log: connect error
}
socks pass {
    from: 0.0.0.0/0 to: 0.0.0.0/0
    log: error
}
socks pass {
    from: 0.0.0.0/0 to: 0.0.0.0/0
    log: error
}


In the browser I get
Connection timed out


in /var/log/sockd.log
Jul  3 20:47:01 (1562186821.174931) sockd[2417]: alert: mother[1/1]: shutting down
Jul  3 20:47:41 (1562186861.545567) sockd[2492]: info: Dante/server[1/1] v1.4.2 running
Jul  3 20:48:09 (1562186889.147633) sockd[2500]: info: pass(1): tcp/accept [: 192.168.1.3.65491 172.17.0.2.1080
Jul  3 20:48:09 (1562186889.392744) sockd[2500]: info: pass(1): tcp/accept [: 192.168.1.3.65493 172.17.0.2.1080
Jul  3 20:49:07 (1562186947.637752) sockd[2500]: info: pass(1): tcp/accept [: 192.168.1.3.49157 172.17.0.2.1080


How to configure Dante to proxy to tun0?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2019-07-04
@Viji

Try to register route table on your machine, point 0.0.0.0/0 to tun0. Also, does Dante run after or before OpenVPN?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question