Skip to content
Port forwarding
Got a problem with Viscosity or need help? Ask here!
Hey,
I use Viscosity in combination with CyberGhost VPN and have set up a port forwarding for SSH on my router and Mac. It all works as long as I don't connect the Mac to the VPN, but unfortunately it stops working as soon as I connect my Mac to the VPN. How can I fix this?
Kind regards,
Revali
I use Viscosity in combination with CyberGhost VPN and have set up a port forwarding for SSH on my router and Mac. It all works as long as I don't connect the Mac to the VPN, but unfortunately it stops working as soon as I connect my Mac to the VPN. How can I fix this?
Kind regards,
Revali
Hi Revali,
If you have setup port forwarding on your router (port forwarding a port from your router to your Mac), then you can try adding a route to your VPN connection to instruct that traffic to your router's internal IP address should go through your normal network connection. Please see:
https://www.sparklabs.com/support/kb/ar ... al-network
Cheers,
James
If you have setup port forwarding on your router (port forwarding a port from your router to your Mac), then you can try adding a route to your VPN connection to instruct that traffic to your router's internal IP address should go through your normal network connection. Please see:
https://www.sparklabs.com/support/kb/ar ... al-network
Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
Hey,
thanks, I already read the article, but unfortunately it doesn't really help me if the clients from which a connection to the SSH server is established have dynamic IP addresses from different subnets. As far as I found out this only works if the clients (not the SSH server on the Mac that is also running Viscosity) have a static IP.
Kind regards,
Revali
thanks, I already read the article, but unfortunately it doesn't really help me if the clients from which a connection to the SSH server is established have dynamic IP addresses from different subnets. As far as I found out this only works if the clients (not the SSH server on the Mac that is also running Viscosity) have a static IP.
Kind regards,
Revali
I'm afraid there isn't much you can do from a VPN perspective, as it's happening outside of the VPN. A couple of ideas:
1. SSH into your Mac via its VPN's IP address. If the IP address isn't publicly accessible, this will likely mean port forwarding on the OpenVPN server. If your VPN address isn't static you may need to consider setting up something like dynamic DNS.
2. Have your router perform NAT on the LAN interface for the port forwarded SSH connections only. This will make it look like they come from your router's IP address, and so it's easy to route outside of the VPN connection.
Cheers,
James
1. SSH into your Mac via its VPN's IP address. If the IP address isn't publicly accessible, this will likely mean port forwarding on the OpenVPN server. If your VPN address isn't static you may need to consider setting up something like dynamic DNS.
2. Have your router perform NAT on the LAN interface for the port forwarded SSH connections only. This will make it look like they come from your router's IP address, and so it's easy to route outside of the VPN connection.
Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
5 posts
Page 1 of 1