T
T
Thug2016-01-06 17:35:16
openvpn
Thug, 2016-01-06 17:35:16

How to turn traffic to only one host through VPN?

Help please , such a task : how to connect via VPN to only one host ?
Debian shorewall ( firewall ) system .
in the openvpn config, I added route - noexec so that the default route through the VPN server is not registered.
But how to turn traffic to only one host through VPN?
#######/etc/openvpn/client.conf########
client
dev tun
proto udp
remote myserverip 1194
resolv-retry infinite
nobind
user nobody
group nogroup
#persist-key
#persist-tun
#route -nopull
route-noexec
mute-replay-warnings
ca /etc/openvpn/ca.crt
cert /etc/openvpn/client1.crt
key /etc/openvpn/client1.key
ns-cert-type server
comp-lzo
verb 3
######################

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2016-01-07
@inkvizitor68sl

What the hell shorewall O_o
push "route XXXX 255.255.255.255" and let's go.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question