Page 1 of 1

server pushes redirect-gateway

Posted: Fri Mar 18, 2011 6:30 am
by k-h
a server I'm connecting to pushes redirect-gateway to me.

I don't want to route all traffic through it only the remote subnet.

Actually that's just the start. I really want to only route all traffic to and from a certain port through the VPN. I can do that but it's hard if all the traffic is going through the tunnel. Can I disable the redirect-gateway? It's well done, as if they were using "redirect-gateway def1".

I'm running ubuntu lucid and I think I can make a port route table if I can figure out how to stop the redirect-gateway.

Re: server pushes redirect-gateway

Posted: Fri Mar 18, 2011 8:02 am
by maikcat
hi there,

the most easiest thing to do is to talk with openvpn admin so that
remove the redirect gateway..

alternative you can remove the default gateway route from your routing table
after the connection is established by using a script.

michael.

Re: server pushes redirect-gateway

Posted: Fri Mar 18, 2011 10:50 am
by janjust
add the statement

Code: Select all

route-nopull
to your client config to stop ALL routes from being pulled.

Re: server pushes redirect-gateway

Posted: Fri Mar 18, 2011 11:30 am
by maikcat
if you want to access the remote subnet you still need to pass
routes by hand...

in any case i believe a script is needed.


michael

Re: server pushes redirect-gateway

Posted: Sat Mar 19, 2011 12:02 pm
by Bebop
k-h wrote: if I can figure out how to stop the redirect-gateway
Solved:
janjust wrote:route-nopull