Closed Roethenbach closed 1 year ago
Not at the moment, I've only ever done vice versa with -f
e.g. for hosting Jackett or transmission-daemon in vopono.
What would a good use case be? I don't think it'd be too hard to support, just some extra firewall rules.
You can also tunnel traffic over unix sockets using one process outside the network namespace and one within.
For example:
host_hostname=$HOSTNAME
host_port=9999
vpn_hostname=localhost
vpn_port=9999
socket_path=/tmp/vpn-tunnel
outside:
ncat --listen --keep-open --sh-exec "ncat --unixsock $socket_path" $host_hostname $host_port
inside:
ncat --listen --keep-open --sh-exec "ncat $vpn_hostname $vpn_port" --unixsock $socket_path
This should be possible with --allow-host-access
in 0.10.1 - please test it.
Note that from the network namespace you will need to use its IP address for the host - e.g. usually 10.200.1.1
I've tested this and it works
Fixed in 0.10.1 release with --allow-host-access
Is it possible to access a service on a local host from within a vopono host?