Hi!
I'm trying to setup an socks proxy that listens on one of the lan interfaces and on one of the wireguard interfaces.
I tried several socks proxy softwares but I can't get it to work.
The proxies itself do work but the traffic is not going through the wireguard initerface.
For example with dante:
config:
errorlog: syslog
logoutput: /var/log/sockd.log
debug:3
internal: br-lan port = 1080
external: wgc0
clientmethod: none
socksmethod: none
user.privileged: root
user.notprivileged: nobody
client pass {
from: <clientip> to: 0.0.0.0/0
log: error connect disconnect
}
client block {
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 connect disconnect
}
socks block {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error
}
The proxy is working but a simple test with curl shows my wan ip.
And the wg interface shows tx/rx bytes = 0.
What is the trick here?
//edit
dante log shows it has bound itseslf to the wg interface:
sockd[21254]: debug: int_ifname2sockaddr(): interface wgc0 missing address on index 8 ... skipping
sockd[21254]: debug: socks_bind(): trying to bind address 10.x.x.x.x on fd 7. Retries is 0
sockd[21254]: debug: socks_bind(): bound address 10.x.x.x.55135 on fd 7
ping -I wgc0 8.8.8.8
works and the wgc0 interface packets are increasing after this.
So the wg interface is working too.
Is there are way to create a virtual interface just for the purpose to run some daemon on it?