i want to route all traffic trought a socks5 proxy (from a provider or a free proxy). How can i do that?
And how can i route all traffic -> VPN (from a provider) -> Proxy -> Internet
I want to cut all connections if the vpn connection disconnects. How can i do that? i want to prevent that my real ip is published if the vpn goes down.
how can i route all Traffic trought Proxy? How to make a Killswitch?
Re: how can i route all Traffic trought Proxy? How to make a Killswitch?
There might be other solutions around but this works for me for ages:I want to cut all connections if the vpn connection disconnects. How can i do that?
1) delete defaultroute on your vpn client machine
2) add static host routes for every single vpn endpoint
Example:
Code: Select all
ip route add your.vpn.server.ip/32 via ip.of.gate.way dev eth0
Keep in mind that you are not be able to resolve anything unless you are connected to vpn. To get around this you may need to:
- replace fqhn in openvpn configuration by their according IPs
or:
- edit /etc/hosts and add according entry
This way full internet access is only available while vpn is successfully connected. As soon as vpn is off or fails to connect there will be no access (including DNS) but to hosts having host routes (which are required to connect to tunnel).
Re: how can i route all Traffic trought Proxy? How to make a Killswitch?
please can you explain me this part: via ip.of.gate.way
for what stand ip.of.gate.way
where do i get this?
for what stand ip.of.gate.way
where do i get this?
Re: how can i route all Traffic trought Proxy? How to make a Killswitch?
your previous default gateway IP
Re: how can i route all Traffic trought Proxy? How to make a Killswitch?
thank you, for VPN it works good.
Now i need the same with Socks5 Proxy. And in combination of vpn and Socks5. vpn -> proxy -> internet
please can anyone help? Thank you.
Now i need the same with Socks5 Proxy. And in combination of vpn and Socks5. vpn -> proxy -> internet
please can anyone help? Thank you.