Skip to main content
added 12 characters in body
Source Link
Anthon
  • 81.4k
  • 42
  • 174
  • 228

Is it possible to route a computer's SSH service through a VPN connection but allow ALL other data to exit through the WAN address? What sort of iptables magic needs to be done to accomplish this? SSH

SSH data --> goes through VPN 
ALL other data --> goes through default route

Is it possible to route a computer's SSH service through a VPN connection but allow ALL other data to exit through the WAN address? What sort of iptables magic needs to be done to accomplish this? SSH data --> goes through VPN ALL other data --> goes through default route

Is it possible to route a computer's SSH service through a VPN connection but allow ALL other data to exit through the WAN address? What sort of iptables magic needs to be done to accomplish this?

SSH data goes through VPN 
ALL other data goes through default route

Source Link

Route only ssh traffic through VPN

Is it possible to route a computer's SSH service through a VPN connection but allow ALL other data to exit through the WAN address? What sort of iptables magic needs to be done to accomplish this? SSH data --> goes through VPN ALL other data --> goes through default route